Related to this:
On Sun, August 2, 2009 2:05 pm, valhallasw@svn.wikimedia.org 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?
-Merlijn
2009/8/3 Merlijn van Deen valhallasw@arctus.nl:
Related to this:
On Sun, August 2, 2009 2:05 pm, valhallasw@svn.wikimedia.org 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 :)