Quantcast

Reworked localization for easier handling through CurseForge

p3lim [12-27-10 - 21:51]
Reworked localization for easier handling through CurseForge
Filename
Broker_Equipment.lua
Localization.lua
diff --git a/Broker_Equipment.lua b/Broker_Equipment.lua
index b4277fd..dcfe81f 100644
--- a/Broker_Equipment.lua
+++ b/Broker_Equipment.lua
@@ -14,7 +14,7 @@ local pendingName
 local pendingIcon

 local menu = {}
-local locale = select(2, ...).L
+local localization = select(2, ...).L
 local parent = CreateFrame('Frame')

 local function EquipmentLocated(name)
@@ -96,10 +96,10 @@ end

 local function OnTooltipShow(self)
 	self:AddLine('|cff0090ffBroker Equipment|r')
-	self:AddLine(locale[1])
-	self:AddLine(locale[2])
-	self:AddLine(locale[3])
-	self:AddLine(locale[4])
+	self:AddLine(localization['Left-click'])
+	self:AddLine(localization['Right-click'])
+	self:AddLine(localization['Shift-click'])
+	self:AddLine(localization['Ctrl-click'])
 end

 local function OnClick(self, button)
diff --git a/Localization.lua b/Localization.lua
index 204653d..c287a09 100644
--- a/Localization.lua
+++ b/Localization.lua
@@ -5,48 +5,48 @@

 local _, ns = ...
 ns.L = GetLocale() == 'deDE' and {
-	'Links-Klick um Set zu wechseln',
-	'Rechts-Klocl um den Ausrüstungsmanager zu öffnen',
-	'Shift + Links-Klick um Set zu aktualisieren',
-	'Strg + Links-Klick um Set zu löschen',
+	['Ctrl-click'] = 'Strg + Linksklick, um Set zu l\195\182schen.',
+	['Left-click'] = 'Linksklick, um Set zu wechseln.',
+	['Right-click'] = 'Rechtsklick \195\182ffnet den Ausr\195\188stungsmanager',
+	['Shift-click'] = 'Shift + Linksklick, um Set zu aktualisieren.',
 } or GetLocale() == 'frFR' and {
-	'Clic gauche pour changer d\'équipement',
-	'Clic droit pour ouvrir le gestionnaire d\'équipement',
-	'Maj-clic pour mettre à jour le set',
-	'Ctrl-clic pour supprimer le set',
+	['Ctrl-click'] = 'Ctrl-clic pour supprimer le set',
+	['Left-click'] = 'Clic-gauche pour changer de set',
+	['Right-click'] = 'Clic-droit pour ouvrir le gestionnaire d\'\195\169quipement',
+	['Shift-click'] = 'Shift-clic pour mettre \195\160 jour le set',
 } or GetLocale() == 'zhCN' and {
-	'左键点击切换套装',
-	'右键打开套装管理器',
-	'Shift点击覆盖套装',
-	'Ctrl点击删除套装',
+	['Ctrl-click'] = 'Ctrl-click to delete set',
+	['Left-click'] = 'Left-click to change your set',
+	['Right-click'] = 'Right-click to open GearManager',
+	['Shift-click'] = 'Shift-click to update set',
 } or GetLocale() == 'zhTW' and {
-	'左鍵點擊切換套裝',
-	'右鍵點擊打開套裝管理器',
-	'Shift點擊覆蓋套裝',
-	'Ctrl點擊刪除套裝',
+	['Ctrl-click'] = 'Ctrl+\233\187\158\230\147\138\228\187\165\229\136\170\233\153\164\229\165\151\232\163\157',
+	['Left-click'] = '\229\183\166\233\141\181\230\155\180\230\143\155\232\163\157\229\130\153',
+	['Right-click'] = '\229\143\179\233\141\181\233\150\139\229\149\159\232\163\157\229\130\153\231\174\161\231\144\134\229\147\161',
+	['Shift-click'] = 'Shift+\233\187\158\230\147\138\228\187\165\230\155\180\230\150\176\229\165\151\232\163\157',
 } or GetLocale() == 'koKR' and {
-	'좌-클릭 세트 변경',
-	'우-클릭 장비 관리창 열기',
-	'Shift-클릭 하면 세트 업데이트',
-	'Ctrl-클릭 하면 세트 삭제',
+	['Ctrl-click'] = 'Ctrl-\237\129\180\235\166\173 \236\132\184\237\138\184 \236\130\173\236\160\156',
+	['Left-click'] = '\236\153\188\236\170\189-\237\129\180\235\166\173 \236\132\184\237\138\184 \235\179\128\234\178\189',
+	['Right-click'] = '\236\152\164\235\165\184\236\170\189-\237\129\180\235\166\173\236\139\156 \236\186\144\235\166\173\237\132\176\236\176\189 \236\151\180\234\184\176',
+	['Shift-click'] = 'Shift-\237\129\180\235\166\173 \236\132\184\237\138\184 \236\151\133\235\141\176\236\157\180\237\138\184',
 } or GetLocale() == 'esES' and {
-	'Click izquierdo para cambiar tu set',
-	'Click derecho para abrir el Administrador de Equipo',
-	'Shift-click para modificar set',
-	'Ctrl-click para eliminar set',
+	['Ctrl-click'] = 'Ctrl-click para eliminar el conjunto',
+	['Left-click'] = 'Click izquierdo para cambiar tu conjunto',
+	['Right-click'] = 'Click derecho para abrir el Gestor de equipamiento',
+	['Shift-click'] = 'Shift-click para actualizar el conjunto',
 } or GetLocale() == 'esMX' and {
-	'Click izquierdo para cambiar tu set',
-	'Click derecho para abrir el Administrador de Equipo',
-	'Shift-click para modificar set',
-	'Ctrl-click para eliminar set',
+	['Ctrl-click'] = 'Ctrl+clic para eliminar este equipamiento',
+	['Left-click'] = 'Clic izquierdo para cambiar el equipamiento',
+	['Right-click'] = 'Clic derecho para abrir el Gestor de equipamiento',
+	['Shift-click'] = 'May\195\186s+clic para modificar este equipamiento',
 } or GetLocale() == 'ruRU' and {
-	'Левый клик, чтобы изменить комплект',
-	'Правый клик, чтобы открыть менеджер экипировки',
-	'Shift-клик, чтобы обновить комплект',
-	'Ctrl-клик, чтобы удалить комплект',
+	['Ctrl-click'] = 'Ctrl-click to delete set',
+	['Left-click'] = 'Left-click to change your set',
+	['Right-click'] = 'Right-click to open GearManager',
+	['Shift-click'] = 'Shift-click to update set',
 } or {
-	'Left-click to change your set',
-	'Right-click to open GearManager',
-	'Shift-click to update set',
-	'Ctrl-click to delete set',
+	['Ctrl-click'] = 'Ctrl-click to delete set',
+	['Left-click'] = 'Left-click to change your set',
+	['Right-click'] = 'Right-click to open GearManager',
+	['Shift-click'] = 'Shift-click to update set',
 }