Let the packager generate the localization strings automatically
Adrian L Lange [09-16-14 - 12:58]
Let the packager generate the localization strings automatically
diff --git a/Localization.lua b/Localization.lua
index 8bad8c8..5a12ff9 100644
--- a/Localization.lua
+++ b/Localization.lua
@@ -18,3 +18,26 @@ end})
L['ALT key'] = ALT_KEY
L['CTRL key'] = CTRL_KEY
L['SHIFT key'] = SHIFT_KEY
+
+local locale = GetLocale()
+if(locale == 'deDE') then
+ --@localization(locale="deDE", format="lua_additive_table")@
+elseif(locale == 'esES') then
+ --@localization(locale="esES", format="lua_additive_table")@
+elseif(locale == 'esMX') then
+ --@localization(locale="esMX", format="lua_additive_table")@
+elseif(locale == 'frFR') then
+ --@localization(locale="frFR", format="lua_additive_table")@
+elseif(locale == 'itIT') then
+ --@localization(locale="itIT", format="lua_additive_table")@
+elseif(locale == 'koKR') then
+ --@localization(locale="koKR", format="lua_additive_table")@
+elseif(locale == 'ptBR') then
+ --@localization(locale="ptBR", format="lua_additive_table")@
+elseif(locale == 'ruRU') then
+ --@localization(locale="ruRU", format="lua_additive_table")@
+elseif(locale == 'zhCN') then
+ --@localization(locale="zhCN", format="lua_additive_table")@
+elseif(locale == 'zhTW') then
+ --@localization(locale="zhTW", format="lua_additive_table")@
+end