https://bugzilla.wikimedia.org/show_bug.cgi?id=34680

--- Comment #2 from Jarek Tuszynski <jaroslaw.w.tuszyn...@saic.com> 2012-02-24 
12:37:20 UTC ---
Currently {{#babel}} function does not differentiate between upper and lower
case codes. However at least on on commons and EN Wikipedia we seem to have
many  existing user templates which only differ by the capitalization, for
example [[commons:template:User BG-3]] gives 'This user is able to contribute
at an advanced level to bitmap graphics (JPEG, PNG,...)." message and is
unrelated to [[commons:template:User bg-3]] about user knowledge of Bulgarian
language. 
See [[commons:
User_talk:JarektBot#.22bitmap_graphics.22_and_.22audio_file.22_became_bulgarian_and_afrikaans]]
and [[w:en:User:Jarekt/b ]]for more examples. As a result every box in
{{Babel|BG-3|AF-1|ANI-3|VI|win|bot|CID|align=left}}
{{#babel:BG-3|AF-1|ANI-3|VI|win|bot|CID}} would get rendered differently. 

In many cases the clash can be avoided if Babel extension would pay attention
to capitalization. May be the ideal approach would be to use 3 step procedure:
1) treat lower case codes as language code, 
2) if the code uses any  capital letters than check if there is a match to
existing template first
3) if no local template exist that matches the capitalization than convert the
code to lower case and try matching to the language codes again.

In some cases the clashes can not be avoided since local templates
commons:template:User bot or commons:template:User win use lower case and clash
with Ho-Chunk and Bongo languages. However in those cases local template can be
renamed to commons:template:User Bot or commons:template:User Win to keep them
separate.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to