diff --git a/changelog.txt b/changelog.txt index 26b74e9..1e19d96 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ next ---- - added missing "textdomain" line to localization files +- updated localization template & Spanish translation v1.0 diff --git a/chat.lua b/chat.lua index 98a159a..72396d2 100644 --- a/chat.lua +++ b/chat.lua @@ -154,7 +154,7 @@ end -- @chatparam [string1] [string2] ... -- @treturn boolean registerChatCommand("list", { - params = S("type") .. " [options] [" .. S("string1") .. "] [" .. S("string2") .. "] ...", + params = S("type") .. " [" .. S("options") .. "] [" .. S("string1") .. "] [" .. S("string2") .. "] ...", description = help_string .. options_string .. types_string, func = function(player, params) local params = string.split(params, " ") @@ -169,8 +169,8 @@ registerChatCommand("list", { if listitems.enable_singleword then for _, kt in ipairs(aux.known_types) do registerChatCommand("list" .. kt, { - params = "[options] [" .. S("string1") .. "] [" .. S("string2") .. "] ...", - description = S("List registered @1", kt) .. "\n\n\t" .. S("Options:") .. options_string, + params = "[" .. S("options") .. "] [" .. S("string1") .. "] [" .. S("string2") .. "] ...", + description = S("List registered @1", S(kt)) .. "\n\n\t" .. S("Options:") .. options_string, func = function(player, params) local params = string.split(params, " ") params = table.concat(params, " ") diff --git a/locale/listitems.es.tr b/locale/listitems.es.tr index 38c7bb8..409ba89 100644 --- a/locale/listitems.es.tr +++ b/locale/listitems.es.tr @@ -4,16 +4,26 @@ ## Help output description +List registered @1=Listar registro de @1 List registered items or entities=Listar los artículos o los entidades registrados Display descriptions=Mostrar descripciones Don't search descriptions=No analizar descripciones Registered types:=Tipos registrados: +Options:=Opciones: ## Help output parameters type=tipo +options=opciones string1=cadena1 string2=cadena2 +## Types +items=artículos +entities=entidades +nodes=nodos +ores=minerales +tools=herramientas + ## Player used unrecognized switch Error: Unknown option:=Error: Opción desconocida: Error: Must specify list type=Error: Debes de especificar el tipo de lista diff --git a/locale/template.txt b/locale/template.txt index 96d2240..a99ff6f 100644 --- a/locale/template.txt +++ b/locale/template.txt @@ -13,9 +13,18 @@ Options:= ## Help output parameters type= +options= string1= string2= +## Types +items= +entities= +nodes= +ores= +tools= +mobs= + ## Error output Error: Unknown option:= Error: Must specify list type=