Content deleted Content added
Supporting label parameter, and adding a "?" fallback flag for variant / label flags not found in FlagTranslations |
Supporting 2 letter codes |
||
Line 11:
-- Searching in the translation table.
-- 2 letter code search
if #territory.args[1] == 2 then
for english,locale in pairs(translations.twoLetter) do
if territory.args[1] == locale then
commonsName = english
link = locale
end -- FIXME this link is problematic, especially in non-English
end
end
-- 3 letter code search
if #territory.args[1] == 3 then
|