Module:Flags/LocaleData: Difference between revisions
Appearance
Content deleted Content added
Doh |
Changing order of parameters in order to allow multiple keys e.g. GB UK pointing to a same flag value |
||
Line 7: | Line 7: | ||
-- Examples for demo purposes. Remove them when you copy this module to your project. |
-- Examples for demo purposes. Remove them when you copy this module to your project. |
||
m.fullName[" |
m.fullName["Afganistan"] = "Afghanistan" |
||
m.fullName[ |
m.fullName["中華人民共和國"] = "China" |
||
m.fullName[" |
m.fullName["Regne Unit"] = "United Kingdom" |
||
m.fullName[" |
m.fullName["Illes Balears"] = "the Balearic Islands" |
||
m.fullName["Pueblos Indígenas de Colombia"] = "Native Peoples of Colombia" |
|||
-- You don't want to touch this either! |
-- You don't want to touch this either! |
Revision as of 03:07, 25 June 2013
Use in non-English projects
Non-English projects must copy this module together with Template:Flags, Module:Flags and Module:Flags/MasterData, and then add the corresponding translations.
This is a manual task, but perhaps one day these translations can be provided automatically by Wikidata. See bug 47930.
Table of flags
Format of entries:
m.fullName["Your Translation"] = "Name of flag in Commons"
Example:
m.fullName["Illes Balears"] = "the Balearic Islands"
- Translate the field in the left to your language.
- Note that the translated string will also be the link to the article.
- Sounds obvious, but you only need to add here the flags with names different than the ones in English.
- Don't touch the field in the right (name of flag in Commons) unless you really know what you are doing!
If you are missing flags in Module:Flags/MasterData please request / contribute them there instead of listing them here only, for the benefit of all projects.
Thank you for using Template:Flags!
-- Instructions for translators can be found at the /doc page.
-- You don't want to touch this. :)
local m = {}
m.fullName = {}
-- Examples for demo purposes. Remove them when you copy this module to your project.
m.fullName["Afganistan"] = "Afghanistan"
m.fullName["中華人民共和國"] = "China"
m.fullName["Regne Unit"] = "United Kingdom"
m.fullName["Illes Balears"] = "the Balearic Islands"
m.fullName["Pueblos Indígenas de Colombia"] = "Native Peoples of Colombia"
-- You don't want to touch this either!
return m