2009/8/3 Merlijn van Deen <[email protected]>:
> Related to this:
>
> On Sun, August 2, 2009 2:05 pm, [email protected] wrote:
>> Fixed incorrect translations (using wrong number of %s-es)
> (...)
>>      'ca':u'Robot: Afegint [[Categoria:%s]]',
>> -    'cs':u'Robot pÅ™idal kategorii [[Kategorie:%s|%s]]',
>> +    'cs':u'Robot pÅ™idal [[Kategorie:%s]]',
>>      'da':u'Robot: Tilføjer [[Kategori:%s]]',
>
> I think it would be better to use named substitution
> (i.e. u'Robot: Afegint [[Categoria:%(cat)s]]', which makes it possible to
> have 'cs':u'Robot přidal kategorii [[Kategorie:%(cat)s|%(cat)s]]'),
> but I am not sure how big the effect will be on existing scripts. Would it
> be OK to introduce a possibly breaking change, or should some sort of
> wrapper be thought of?

I don't know any scripts using directly our (internal) localized
messages.  I'm OK with such a breaking change, as long as you use
meaningful variable name for substitutions :)

-- 
Nicolas Dumazet — NicDumZ [ nɪk.d̪ymz ]

_______________________________________________
Pywikipedia-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Reply via email to