That's not my quote, Aason! LOL anyway...
Yes, once again, Phanx is correct about the first line in my example code. I left out the table part because it didn't seem required to illustrate. Here is an example of that first line as I use it in FeedTillers:
Lua Code:
-- both of these are variables, and can be named anything
-- I could have written local JoeBob, Clyde = ...
-- but the names I chose are more meaningful
-- ADDON is a string derived from FeedTillers.toc
-- L is a table that I use for localization
local ADDON, L = ...
local LOCALE = GetLocale()
if LOCALE == "esES" then
L["CLICK_SORT"] = "Clic para alternar entre ordenar por nombre de PNJ o nombre de comida."
L["SHIFT_DOWN"] = "Mayús-clic para ocultar a los Labradores que ya ha alimentado hoy."
L["ToC/Description"] = "Mostrar cuál comida le gusta cada miembro de los Labradores, y si ha completado su misión diaria \"Un plato para...\""
elseif LOCALE == "esMX" then
L["CLICK_SORT"] = "Clic para alternar entre ordenar por nombre de PNJ o nombre de comida."
L["SHIFT_DOWN"] = "Mayús-clic para ocultar a los Labradores que ya ha alimentado hoy."
L["ToC/Description"] = "Mostrar cuál comida le gusta cada miembro de los Labradores, y si ha completado su misión diaria \"Un plato para...\""
elseif LOCALE == "itIT" then
L["CLICK_SORT"] = "Click sul plugin per elencare i Coltivatori per il nome o per il loro oggetto"
L["SHIFT_DOWN"] = "Tieni premuto il tasto <Shift> per nascondere i Contivatori giŕ sfamati"
L["ToC/Description"] = "Indica quale Coltivatore, che cibo gli piace, e se lo hai giŕ sfamato oggi con la quest \"Un piatto per...\""
elseif LOCALE == "ptBR" then
-- L["CLICK_SORT"] = ""
-- L["SHIFT_DOWN"] = ""
-- L["ToC/Description"] = ""
elseif LOCALE == "frFR" then
-- L["CLICK_SORT"] = ""
-- L["SHIFT_DOWN"] = ""
-- L["ToC/Description"] = ""
elseif LOCALE == "deDE" then
-- L["CLICK_SORT"] = ""
-- L["SHIFT_DOWN"] = ""
-- L["ToC/Description"] = ""
elseif LOCALE == "ruRU" then
-- L["CLICK_SORT"] = ""
-- L["SHIFT_DOWN"] = ""
-- L["ToC/Description"] = ""
elseif LOCALE == "zhCN" then
--@localization(locale="zhCN", format="lua_additive_table)@
elseif LOCALE == "zhTW" then
-- L["CLICK_SORT"] = ""
-- L["SHIFT_DOWN"] = ""
-- L["ToC/Description"] = ""
else
L["CLICK_SORT"] = "Click the plugin to sort by Tiller name or item name"
L["SHIFT_DOWN"] = "Hold the <Shift> key and click to hide already fed Tillers"
end
Please note that line 45 in the above code refers to Curseforge's and WoWAce's Localization app
keyword substitutions.