Compare commits

...

2 Enmetoj

Author SHA1 Message Date
Jaidyn Ann 977e97c885 Update Esperanto translation (again!) 2024-08-01 10:19:36 -05:00
Jaidyn Ann 341eead963 Make sorting-method names translatable 2024-08-01 10:19:22 -05:00
4 changed files with 7 additions and 1 deletions

View File

@ -6,7 +6,9 @@ Settings=Agordoj
Go home=Iri hejmen Go home=Iri hejmen
Digging=Fosado Digging=Fosado
Digging (by chance)=Fosado (laŭŝance) Digging (by chance)=Fosado (laŭŝance)
Alphabetical=Laŭnome
Sort items by name (A-Z)=Ordigi portaĵojn laŭnome (AZ) Sort items by name (A-Z)=Ordigi portaĵojn laŭnome (AZ)
Numerical=Laŭkvante
Sort items by number of items per stack=Ordigi portaĵojn laŭ kvanto Sort items by number of items per stack=Ordigi portaĵojn laŭ kvanto
All=Ĉio All=Ĉio
Nodes=Monderoj Nodes=Monderoj

View File

@ -6,7 +6,9 @@ Settings=
Go home= Go home=
Digging= Digging=
Digging (by chance)= Digging (by chance)=
Alphabetical=
Sort items by name (A-Z)= Sort items by name (A-Z)=
Numerical=
Sort items by number of items per stack= Sort items by number of items per stack=
All= All=
Nodes= Nodes=

View File

@ -446,6 +446,7 @@ function i4.add_sorting_method(name, def)
insert(i4.sorting_methods, def) insert(i4.sorting_methods, def)
end end
-- S("Alphabetical")
i4.add_sorting_method("alphabetical", { i4.add_sorting_method("alphabetical", {
description = S("Sort items by name (A-Z)"), description = S("Sort items by name (A-Z)"),
func = function(list, data) func = function(list, data)
@ -454,6 +455,7 @@ i4.add_sorting_method("alphabetical", {
end end
}) })
-- S("Numerical")
i4.add_sorting_method("numerical", { i4.add_sorting_method("numerical", {
description = S("Sort items by number of items per stack"), description = S("Sort items by number of items per stack"),
func = function(list, data) func = function(list, data)

View File

@ -674,7 +674,7 @@ local function settings_footer_fs(player, data, fs)
local desc = i4.sorting_methods[data.sort].description local desc = i4.sorting_methods[data.sort].description
if desc then if desc then
tooltip(5.3, 10.6, 2.4, 0.5, ESC(desc)) tooltip(5.3, 10.6, 2.4, 0.5, S(desc))
end end
fs("tooltip[cb_inv_compress;%s;#32333899;#fff]", fs("tooltip[cb_inv_compress;%s;#32333899;#fff]",