Adding magic localization table, deDE locale strings from decimad
[WoW-TourGuide.git] / Locale.lua
blob26968779843b91a72236b94b610ab0a51423a78f
2 local localized
4 local engrish = {
5 PART_GSUB = "%s%(Part %d+%)",
6 PART_FIND = "(.+)%s%(Part %d+%)",
8 -- Mapping.lua
9 COORD_MATCH = "%(([%d.]+),%s?([%d.]+)%)",
13 if GetLocale() == "deDE" then localized = {
14 PART_GSUB = "%s%(Teil %d+%)",
15 PART_FIND = "(.+)%s%(Teil %d+%)",
16 ["(.*) is now your home."] = "(.*) ist jetzt Euer Zuhause.",
17 ["Quest accepted: (.*)"] = "Quest angenommen: (.*)",
18 ["^You .*Hitem:(%d+).*(%[.+%])"] = "^Ihr .*Hitem:(%d+).*(%[.+%])",
19 } end
22 -- Metatable majicks... makes localized table fallback to engrish, or fallback to the index requested.
23 -- This ensures we ALWAYS get a value back, even if it's the index we requested originally
24 TOURGUIDE_LOCALE = localized and setmetatable(localized, {__index = function(t,i) return engrish[i] or i end})
25 or setmetatable(engrish, {__index = function(t,i) return i end})