Add a translation system.

Add zhCN localization by Qcat.
If you want to help with localizing shootyepgp in other languages, create a fork and update the localization.lua file.
This commit is contained in:
Road-block
2017-12-23 18:14:33 +02:00
parent 985ccf68ed
commit 98560d192c
9 changed files with 538 additions and 190 deletions
+3 -2
View File
@@ -1,3 +1,4 @@
local L = AceLibrary("AceLocale-2.2"):new("shootyepgp")
function sepgp:v2tov3()
local count = 0
for i = 1, GetNumGuildMembers(1) do
@@ -14,9 +15,9 @@ function sepgp:v2tov3()
sepgp:update_epgp_v3(epv2,gpv2,i,name,officernote)
end
end
self:defaultPrint(string.format("Updated %d members to v3 storage.",count))
self:defaultPrint(string.format(L["Updated %d members to v3 storage."],count))
sepgp_dbver = 3
end
-- GLOBALS: sepgp_saychannel,sepgp_groupbyclass,sepgp_raidonly,sepgp_decay,sepgp_reservechannel,sepgp_main,sepgp_progress,sepgp_discount,sepgp_log,sepgp_dbver,sepgp_looted
-- GLOBALS: sepgp,sepgp_prices,sepgp_standings,sepgp_bids,sepgp_loot,sepgp_reserves,sepgp_logs
-- GLOBALS: sepgp,sepgp_prices,sepgp_standings,sepgp_bids,sepgp_loot,sepgp_reserves,sepgp_logs