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

       Web browser: ---
             Bug #: 35752
           Summary: Add parser function to verify that a string is a valid
                    language code
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: i18n
          Severity: enhancement
          Priority: Unprioritized
         Component: ParserFunctions
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified
   Mobile Platform: ---


It would be nice to avoid huge switches like on [[:m:Template:Other languages]]
or [[:wm2012:Template:AddLanguageCategory]], and in general to maintain
language codes centrally and ensure proper input of other parser functions such
as #language.

Note that the example template can't be replaced by the tools in the Translate
extension where the source language is not English.
Still, it can be argued that this feature is not worth a function and we should
find a better way to do the things it would be used in. Compare bug 28596.

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

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

Reply via email to