From 1413f760bc46bebed71783af8c5696367a4de1a7 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 5 Aug 2016 19:18:21 +0200 Subject: Update German translation --- locale/de.txt | 73 +++++++++++++++++++++++++++++++---------------------------- 1 file changed, 39 insertions(+), 34 deletions(-) (limited to 'locale') diff --git a/locale/de.txt b/locale/de.txt index d678b68..fcd355f 100644 --- a/locale/de.txt +++ b/locale/de.txt @@ -1,71 +1,76 @@ # Translation mostly by Xanthin ### bags.lua ### -Bags = Rucksaecke -Bag 1 = Rucksack 1 -Bag 2 = Rucksack 2 -Bag 3 = Rucksack 3 -Bag 4 = Rucksack 4 -Small Bag = Rucksack (klein) -Medium Bag = Rucksack (mittel) -Large Bag = Rucksack (gross) +Bags = Taschen +Bag 1 = Tasche 1 +Bag 2 = Tasche 2 +Bag 3 = Tasche 3 +Bag 4 = Tasche 4 +Small Bag = Kleine Tasche +Medium Bag = Mittelgroße Tasche +Large Bag = Große Tasche ### inernal.lua ### First page = Erste Seite -Back three pages = Drei Seiten zurueckblaettern -Back one page = Eine Seiten zurueckblaettern -Forward one page = Eine Seiten vorblaettern -Forward three pages = Drei Seiten vorblaettern +Back three pages = Drei Seiten zurueckblättern +Back one page = Eine Seite zurueckblättern +Forward one page = Eine Seite vorblättern +Forward three pages = Drei Seiten vorblättern Last page = Letzte Seite No matching items = Keine passenden Gegenstände Page = Seite %s of %s = %s von %s -Filter = Suche +Filter = Filter Search = Suchen ### register.lua ### Can use the creative inventory = Kann das Kreativinventar nutzen Home position set to: %s = Ausgangsposition nach: %s gesetzt -Time of day set to 6am = Tageszeit auf 6 Uhr morgens geaendert -You don't have the settime privilege! = Du hast nicht das "settime" Privileg! -Time of day set to 9pm = Tageszeit auf 9 Uhr abends geaendert -This button has been disabled outside of creative mode to prevent accidental inventory trashing. Use the trash slot instead. = Diese Funktion ist ausserhalb des Kreativmodus deaktiviert um ein versehentliches Loeschen des ganzen Inventars zu verhindern.\nNutze stattdessen das Muellfeld. +Time of day set to 6am = Tageszeit auf 6 Uhr geändert +You don't have the settime privilege! = Du hast nicht das „settime“-Privileg! +Time of day set to 9pm = Tageszeit auf 21 Uhr geändert +This button has been disabled outside of creative mode to prevent accidental inventory trashing. Use the trash slot instead. = Diese Funktion ist außerhalb des Kreativmodus deaktiviert, um ein versehentliches Löschen des ganzen Inventars zu verhindern.\nNutze stattdessen das Müllfeld. Inventory Cleared! = Inventar geleert! -Crafting = Bauen -Trash: = Muell: -Refill: = Nachfuellen: -Crafting Guide = Bauanleitung +Crafting = Fertigung +Trash: = Müll: +Refill: = Nachfüllen: +Crafting Guide = Fertigungsführer Method: = Methode: Result: %s = Ergebnis: %s crafting = Bauen -shapeless crafting = Formloses Bauen +shapeless crafting = Formlose Fertigung cooking = Kochen alloy cooking = Legierung Kochen -Copy to craft grid: = Kopiere ins Baufeld: +Copy to craft grid: = Ins Fertigungsraster kopieren: All = Alles Recipe %s of %s = Rezept %s von %s Alternate = Alternative -Crafting Grid = +Crafting Grid = Fertigungsraster +Set time to day = Zur Tageszeit wechseln +Set time to night = Zur Nachtzeit wechseln +Set home position = Heimatposition setzen +Go home = Nach Hause gehen +Clear inventory = Inventar leeren ### waypoints.lua ### White = Weiß Yellow = Gelb Red = Rot -Green = Gruen +Green = Grün Blue = Blau Waypoints = Markierungen Waypoint active = Markierung aktiv Waypoint inactive = Markierung inaktiv -World position = Welt Position -Name = -HUD text color = -Edit waypoint name = Name der Markierung aendern +World position = Weltposition +Name = Name +HUD text color = HUD-Textfarbe +Edit waypoint name = Name der Markierung ändern Rename waypoint = Markierung umbenennen -Change color of waypoint display = Farbe der Darstellung der Markierung aendern +Change color of waypoint display = Farbe der Darstellung der Markierung ändern Set waypoint to current location = Setze Markierung zur derzeitigen Position Make waypoint visible = Markierung sichtbar machen Make waypoint invisible = Markierung verstecken -Disable display of waypoint coordinates = -Enable display of waypoint coordinates = -Finish editing = -Select Waypoint #%d = +Disable display of waypoint coordinates = Anzeige der Wegpunktkoordinaten deaktivieren +Enable display of waypoint coordinates = Anzeige der Wegpunktkoordinaten aktivieren +Finish editing = Bearbeitung abschließen +Select Waypoint #%d = Wegpunkt Nr. %d auswählen -- cgit v1.2.3 From 115e0bfaf47dfa16a1ebabe63df4366fef12957d Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 5 Aug 2016 19:34:40 +0200 Subject: Collect missing strings for translation --- bags.lua | 16 ++++++++-------- locale/template.txt | 12 ++++++++++++ register.lua | 14 +++++++------- 3 files changed, 27 insertions(+), 15 deletions(-) (limited to 'locale') diff --git a/bags.lua b/bags.lua index 0dd391b..9b16c96 100644 --- a/bags.lua +++ b/bags.lua @@ -10,10 +10,10 @@ unified_inventory.register_page("bags", { local player_name = player:get_player_name() local formspec = "background[0.06,0.99;7.92,7.52;ui_bags_main_form.png]" formspec = formspec.."label[0,0;"..S("Bags").."]" - formspec = formspec.."button[0,2;2,0.5;bag1;Bag 1]" - formspec = formspec.."button[2,2;2,0.5;bag2;Bag 2]" - formspec = formspec.."button[4,2;2,0.5;bag3;Bag 3]" - formspec = formspec.."button[6,2;2,0.5;bag4;Bag 4]" + formspec = formspec.."button[0,2;2,0.5;bag1;"..S("Bag 1").."]" + formspec = formspec.."button[2,2;2,0.5;bag2;"..S("Bag 2").."]" + formspec = formspec.."button[4,2;2,0.5;bag3;"..S("Bag 3").."]" + formspec = formspec.."button[6,2;2,0.5;bag4;"..S("Bag 4").."]" formspec = formspec.."listcolors[#00000000;#00000000]" formspec = formspec.."list[detached:"..minetest.formspec_escape(player_name).."_bags;bag1;0.5,1;1,1;]" formspec = formspec.."list[detached:"..minetest.formspec_escape(player_name).."_bags;bag2;2.5,1;1,1;]" @@ -36,7 +36,7 @@ unified_inventory.register_button("bags", { local stack = player:get_inventory():get_stack("bag1", 1) local image = stack:get_definition().inventory_image local formspec = "image[7,0;1,1;"..image.."]" - formspec = formspec.."label[0,0;Bag 1]" + formspec = formspec.."label[0,0;"..S("Bag 1").."]" formspec = formspec.."listcolors[#00000000;#00000000]" formspec = formspec.."list[current_player;bag1contents;0,1;8,3;]" formspec = formspec.."listring[current_name;bag1contents]" @@ -57,7 +57,7 @@ unified_inventory.register_button("bags", { local stack = player:get_inventory():get_stack("bag2", 1) local image = stack:get_definition().inventory_image local formspec = "image[7,0;1,1;"..image.."]" - formspec = formspec.."label[0,0;Bag 2]" + formspec = formspec.."label[0,0;"..S("Bag 2").."]" formspec = formspec.."listcolors[#00000000;#00000000]" formspec = formspec.."list[current_player;bag2contents;0,1;8,3;]" formspec = formspec.."listring[current_name;bag2contents]" @@ -78,7 +78,7 @@ unified_inventory.register_button("bags", { local stack = player:get_inventory():get_stack("bag3", 1) local image = stack:get_definition().inventory_image local formspec = "image[7,0;1,1;"..image.."]" - formspec = formspec.."label[0,0;Bag 3]" + formspec = formspec.."label[0,0;"..S("Bag 3").."]" formspec = formspec.."listcolors[#00000000;#00000000]" formspec = formspec.."list[current_player;bag3contents;0,1;8,3;]" formspec = formspec.."listring[current_name;bag3contents]" @@ -99,7 +99,7 @@ unified_inventory.register_button("bags", { local stack = player:get_inventory():get_stack("bag4", 1) local image = stack:get_definition().inventory_image local formspec = "image[7,0;1,1;"..image.."]" - formspec = formspec.."label[0,0;Bag 4]" + formspec = formspec.."label[0,0;"..S("Bag 4").."]" formspec = formspec.."listcolors[#00000000;#00000000]" formspec = formspec.."list[current_player;bag4contents;0,1;8,3;]" formspec = formspec.."listring[current_name;bag4contents]" diff --git a/locale/template.txt b/locale/template.txt index ae382e3..d73b631 100644 --- a/locale/template.txt +++ b/locale/template.txt @@ -26,6 +26,7 @@ Search = ### register.lua ### Can use the creative inventory = +Forces Unified Inventory to be displayed in Full mode if Lite mode is configured globally = Home position set to: %s = Time of day set to 6am = You don't have the settime priviledge! = @@ -47,6 +48,17 @@ All = Recipe %s of %s = Alternate = Crafting Grid = +Recipe = +Usage = +No recipes = +No usages = +Result = +Ingredient = +Set time to day = +Set time to night = +Set home position = +Go home = +Clear inventory = ### waypoints.lua ### White = diff --git a/register.lua b/register.lua index 7042849..fdc39a3 100644 --- a/register.lua +++ b/register.lua @@ -1,12 +1,12 @@ local S = unified_inventory.gettext minetest.register_privilege("creative", { - description = "Can use the creative inventory", + description = S("Can use the creative inventory"), give_to_singleplayer = false, }) minetest.register_privilege("ui_full", { - description = "Forces UI to display in Full mode when Lite mode is configured globally", + description = S("Forces Unified Inventory to be displayed in Full mode if Lite mode is configured globally"), give_to_singleplayer = false, }) @@ -135,7 +135,7 @@ unified_inventory.register_button("clear_inv", { return end player:get_inventory():set_list("main", {}) - minetest.chat_send_player(player_name, 'Inventory Cleared!') + minetest.chat_send_player(player_name, S('Inventory cleared!')) minetest.sound_play("trash_all", {to_player=player_name, gain = 1.0}) end, @@ -150,7 +150,7 @@ unified_inventory.register_page("craft", { local player_name = player:get_player_name() local formspec = "background[2,"..formspecy..";6,3;ui_crafting_form.png]" formspec = formspec.."background[0,"..(formspecy + 3.5)..";8,4;ui_main_inventory.png]" - formspec = formspec.."label[0,"..formheadery..";Crafting]" + formspec = formspec.."label[0,"..formheadery..";" ..S("Crafting").."]" formspec = formspec.."listcolors[#00000000;#00000000]" formspec = formspec.."list[current_player;craftpreview;6,"..formspecy..";1,1;]" formspec = formspec.."list[current_player;craft;2,"..formspecy..";3,3;]" @@ -242,13 +242,13 @@ unified_inventory.register_page("craftguide", { formspec = formspec.."background[0.5,"..(formspecy + 0.2)..";8,3;ui_craftguide_form.png]" formspec = formspec.."textarea["..craftresultx..","..craftresulty - ..";10,1;;"..minetest.formspec_escape(role_text[dir]..": "..item_name)..";]" + ..";10,1;;"..minetest.formspec_escape(S(role_text[dir])..": "..item_name)..";]" formspec = formspec..stack_image_button(0, formspecy, 1.1, 1.1, "item_button_" .. rdir .. "_", ItemStack(item_name)) if not craft then formspec = formspec.."label[5.5,"..(formspecy + 2.35)..";" - ..minetest.formspec_escape(no_recipe_text[dir]).."]" + ..minetest.formspec_escape(S(no_recipe_text[dir])).."]" local no_pos = dir == "recipe" and 4.5 or 6.5 local item_pos = dir == "recipe" and 6.5 or 4.5 formspec = formspec.."image["..no_pos..","..formspecy..";1.1,1.1;ui_no.png]" @@ -310,7 +310,7 @@ unified_inventory.register_page("craftguide", { end if alternates and alternates > 1 then - formspec = formspec.."label[5.5,"..(formspecy + 1.6)..";"..recipe_text[dir].." " + formspec = formspec.."label[5.5,"..(formspecy + 1.6)..";"..S(recipe_text[dir]).." " ..tostring(alternate).." of " ..tostring(alternates).."]" .."button[5.5,"..(formspecy + 2)..";2,1;alternate;" .. S("Alternate") .. "]" -- cgit v1.2.3 From 8f14d4170652eb96f9245185a2e37dbb1393ee36 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 6 Aug 2016 16:25:01 +0200 Subject: Collect more missing strings for translation --- api.lua | 8 ++++---- locale/template.txt | 5 +++++ 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'locale') diff --git a/api.lua b/api.lua index 872ce32..c4e76c6 100644 --- a/api.lua +++ b/api.lua @@ -158,7 +158,7 @@ end unified_inventory.register_craft_type("normal", { - description = "Crafting", + description = S("Crafting"), icon = "ui_craftgrid_icon.png", width = 3, height = 3, @@ -174,7 +174,7 @@ unified_inventory.register_craft_type("normal", { unified_inventory.register_craft_type("shapeless", { - description = "Mixing", + description = S("Mixing"), icon = "ui_craftgrid_icon.png", width = 3, height = 3, @@ -189,7 +189,7 @@ unified_inventory.register_craft_type("shapeless", { unified_inventory.register_craft_type("cooking", { - description = "Cooking", + description = S("Cooking"), icon = "default_furnace_front.png", width = 1, height = 1, @@ -197,7 +197,7 @@ unified_inventory.register_craft_type("cooking", { unified_inventory.register_craft_type("digging", { - description = "Digging", + description = S("Digging"), icon = "default_tool_steelpick.png", width = 1, height = 1, diff --git a/locale/template.txt b/locale/template.txt index d73b631..8525ff3 100644 --- a/locale/template.txt +++ b/locale/template.txt @@ -34,6 +34,9 @@ Time of day set to 9pm = This button has been disabled outside of creative mode to prevent accidental inventory trashing.\nUse the trash slot instead. = Inventory Cleared! = Crafting = +Digging = +Cooking = +Mixing = Trash: = Refill: = Crafting Guide = @@ -59,6 +62,8 @@ Set time to night = Set home position = Go home = Clear inventory = +Give me: = +To craft grid: = ### waypoints.lua ### White = -- cgit v1.2.3 From 7c822a79be1db80423f00bf0ea96275c45a26584 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 6 Aug 2016 16:25:52 +0200 Subject: Update German --- locale/de.txt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'locale') diff --git a/locale/de.txt b/locale/de.txt index fcd355f..97305e0 100644 --- a/locale/de.txt +++ b/locale/de.txt @@ -25,13 +25,16 @@ Search = Suchen ### register.lua ### Can use the creative inventory = Kann das Kreativinventar nutzen -Home position set to: %s = Ausgangsposition nach: %s gesetzt +Home position set to: %s = Heimatposition nach: %s gesetzt Time of day set to 6am = Tageszeit auf 6 Uhr geändert You don't have the settime privilege! = Du hast nicht das „settime“-Privileg! Time of day set to 9pm = Tageszeit auf 21 Uhr geändert This button has been disabled outside of creative mode to prevent accidental inventory trashing. Use the trash slot instead. = Diese Funktion ist außerhalb des Kreativmodus deaktiviert, um ein versehentliches Löschen des ganzen Inventars zu verhindern.\nNutze stattdessen das Müllfeld. Inventory Cleared! = Inventar geleert! Crafting = Fertigung +Digging = Graben +Cooking = Kochen +Mixing = Mischen Trash: = Müll: Refill: = Nachfüllen: Crafting Guide = Fertigungsführer @@ -46,11 +49,19 @@ All = Alles Recipe %s of %s = Rezept %s von %s Alternate = Alternative Crafting Grid = Fertigungsraster +Recipe = Rezept +Usage = Verwendung +No recipes = Keine Rezepte +No usages = Keine Verwendungen +Result = Ergebnis +Ingredient = Zutat Set time to day = Zur Tageszeit wechseln Set time to night = Zur Nachtzeit wechseln Set home position = Heimatposition setzen Go home = Nach Hause gehen Clear inventory = Inventar leeren +Give me: = Gib mir: +To craft grid: = Ins Fertigungsraster: ### waypoints.lua ### White = Weiß -- cgit v1.2.3 From bb19ab97feb6481f0f7f9dd35ab3f2946b2f0a9c Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 6 Aug 2016 16:26:30 +0200 Subject: Fix minor typo in English --- locale/de.txt | 2 +- locale/es.txt | 2 +- locale/fr.txt | 2 +- locale/pl.txt | 2 +- locale/ru.txt | 2 +- locale/template.txt | 2 +- locale/tr.txt | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) (limited to 'locale') diff --git a/locale/de.txt b/locale/de.txt index 97305e0..56bdda2 100644 --- a/locale/de.txt +++ b/locale/de.txt @@ -30,7 +30,7 @@ Time of day set to 6am = Tageszeit auf 6 Uhr geändert You don't have the settime privilege! = Du hast nicht das „settime“-Privileg! Time of day set to 9pm = Tageszeit auf 21 Uhr geändert This button has been disabled outside of creative mode to prevent accidental inventory trashing. Use the trash slot instead. = Diese Funktion ist außerhalb des Kreativmodus deaktiviert, um ein versehentliches Löschen des ganzen Inventars zu verhindern.\nNutze stattdessen das Müllfeld. -Inventory Cleared! = Inventar geleert! +Inventory cleared! = Inventar geleert! Crafting = Fertigung Digging = Graben Cooking = Kochen diff --git a/locale/es.txt b/locale/es.txt index 9382c79..26508fb 100644 --- a/locale/es.txt +++ b/locale/es.txt @@ -31,7 +31,7 @@ Time of day set to 6am = Hora del día cambiada a 6AM You don't have the settime priviledge! = ¡No tienes el privilegio `settime'! Time of day set to 9pm = Hora del día cambiada a 9PM This button has been disabled outside of creative mode to prevent accidental inventory trashing. Use the trash slot instead. = Éste botón ha sido deshabilitado para prevenir la destrucción accidental del inventario.\nUsa la ranura para basura en su lugar. -Inventory Cleared! = ¡Inventario limpio! +Inventory cleared! = ¡Inventario limpio! Crafting = Elaboración Trash: = Basura: Refill: = Rellenar: diff --git a/locale/fr.txt b/locale/fr.txt index 01e975e..e4923a0 100644 --- a/locale/fr.txt +++ b/locale/fr.txt @@ -31,7 +31,7 @@ Time of day set to 6am = Heure fixée à 6h You don't have the settime priviledge! = Vous n'avez pas le privilège 'settime' ! Time of day set to 9pm = Heure fixée à 21h This button has been disabled outside of creative mode to prevent accidental inventory trashing.\nUse the trash slot instead. = Ce bouton a été désactivé en dehors du mode créatif pour éviter des saccages dans l'inventaire.\nUtilisez plutôt la case poubelle. -Inventory Cleared! = Inventaire vidé ! +Inventory cleared! = Inventaire vidé ! Crafting = Création Trash: = Poubelle : Refill: = Remplir : diff --git a/locale/pl.txt b/locale/pl.txt index 33003d8..6173a5f 100644 --- a/locale/pl.txt +++ b/locale/pl.txt @@ -30,7 +30,7 @@ Time of day set to 6am = Czas ustawiony na 6:00 You don't have the settime priviledge! = Nie masz uprawnien do zmiany czasu (settime)! Time of day set to 9pm = Czas ustawiony na 21:00 This button has been disabled outside of creative mode to prevent accidental inventory trashing.\nUse the trash slot instead. = -Inventory Cleared! = +Inventory cleared! = Crafting = Trash: = Smietnik: Refill: = Uzupelnianie: diff --git a/locale/ru.txt b/locale/ru.txt index 1948155..821f2b1 100644 --- a/locale/ru.txt +++ b/locale/ru.txt @@ -31,7 +31,7 @@ Time of day set to 6am = Установлено время 6 утра You don't have the settime priviledge! = Вам не разрешено устанавливать время! Time of day set to 9pm = Установлено время 9 вечера This button has been disabled outside of creative mode to prevent accidental inventory trashing.\nUse the trash slot instead. = Эта кнопка отключена вне творческого режима, чтобы предотвратить случайное уничтожение предметов.\nИспользуйте слот корзины вместо нее. -Inventory Cleared! = Инвентарь очищен! +Inventory cleared! = Инвентарь очищен! Crafting = Крафт Trash: = Корзина: Refill: = Размножить: diff --git a/locale/template.txt b/locale/template.txt index 8525ff3..77b8907 100644 --- a/locale/template.txt +++ b/locale/template.txt @@ -32,7 +32,7 @@ Time of day set to 6am = You don't have the settime priviledge! = Time of day set to 9pm = This button has been disabled outside of creative mode to prevent accidental inventory trashing.\nUse the trash slot instead. = -Inventory Cleared! = +Inventory cleared! = Crafting = Digging = Cooking = diff --git a/locale/tr.txt b/locale/tr.txt index c1d3207..138e66c 100644 --- a/locale/tr.txt +++ b/locale/tr.txt @@ -31,7 +31,7 @@ Time of day set to 6am = Saat 06:00 olarak ayarlandı You don't have the settime priviledge = Saati düzenleme yetkiniz yok! Time of day set to 9pm = Saat 19:00 olarak ayarlandı This button has been disabled outside of creative mode to prevent accidental inventory trashing.\nUse the trash slot instead. = Yaratıcı modu dışında iken bu tuş kullanılamaz. -Inventory Cleared! = Envanter temizlendi! +Inventory cleared! = Envanter temizlendi! Crafting = Üretim Trash: = Çöp Refill: = Doldur -- cgit v1.2.3 From 8ffc8e9323723b8b96b6a0495ac9be8d0d701f9b Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 6 Aug 2016 16:34:16 +0200 Subject: Fix translation strings for recipe alternations --- locale/de.txt | 5 ++--- locale/template.txt | 5 ++--- register.lua | 9 ++++----- 3 files changed, 8 insertions(+), 11 deletions(-) (limited to 'locale') diff --git a/locale/de.txt b/locale/de.txt index 56bdda2..346ff40 100644 --- a/locale/de.txt +++ b/locale/de.txt @@ -46,11 +46,10 @@ cooking = Kochen alloy cooking = Legierung Kochen Copy to craft grid: = Ins Fertigungsraster kopieren: All = Alles -Recipe %s of %s = Rezept %s von %s Alternate = Alternative Crafting Grid = Fertigungsraster -Recipe = Rezept -Usage = Verwendung +Recipe %d of %d = Rezept %d von %d +Usage %d of %d = Verwendung %d von %d No recipes = Keine Rezepte No usages = Keine Verwendungen Result = Ergebnis diff --git a/locale/template.txt b/locale/template.txt index 77b8907..4f1eb2e 100644 --- a/locale/template.txt +++ b/locale/template.txt @@ -48,11 +48,10 @@ cooking = alloy cooking = Copy to craft grid: = All = -Recipe %s of %s = Alternate = Crafting Grid = -Recipe = -Usage = +Recipe %d of %d = +Usage %d of %d = No recipes = No usages = Result = diff --git a/register.lua b/register.lua index fdc39a3..8cc9123 100644 --- a/register.lua +++ b/register.lua @@ -195,8 +195,8 @@ local function stack_image_button(x, y, w, h, buttonname_prefix, item) end local recipe_text = { - recipe = "Recipe", - usage = "Usage", + recipe = "Recipe %d of %d", + usage = "Usage %d of %d", } local no_recipe_text = { recipe = "No recipes", @@ -310,9 +310,8 @@ unified_inventory.register_page("craftguide", { end if alternates and alternates > 1 then - formspec = formspec.."label[5.5,"..(formspecy + 1.6)..";"..S(recipe_text[dir]).." " - ..tostring(alternate).." of " - ..tostring(alternates).."]" + formspec = formspec.."label[5.5,"..(formspecy + 1.6)..";" + ..string.format(S(recipe_text[dir]), alternate, alternates).."]" .."button[5.5,"..(formspecy + 2)..";2,1;alternate;" .. S("Alternate") .. "]" end return {formspec = formspec} -- cgit v1.2.3 From 2a18e7357d809b3c6f6fe1b160c2251945b9afcb Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 6 Aug 2016 16:43:27 +0200 Subject: Make default waypoint names translatable --- locale/de.txt | 1 + locale/template.txt | 1 + waypoints.lua | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) (limited to 'locale') diff --git a/locale/de.txt b/locale/de.txt index 346ff40..437e2c9 100644 --- a/locale/de.txt +++ b/locale/de.txt @@ -69,6 +69,7 @@ Red = Rot Green = Grün Blue = Blau Waypoints = Markierungen +Waypoint %d = Wegpunkt Nr. %d Waypoint active = Markierung aktiv Waypoint inactive = Markierung inaktiv World position = Weltposition diff --git a/locale/template.txt b/locale/template.txt index 4f1eb2e..a741acf 100644 --- a/locale/template.txt +++ b/locale/template.txt @@ -71,6 +71,7 @@ Red = Green = Blue = Waypoints = +Waypoint %d = Waypoint active = Waypoint inactive = World position = diff --git a/waypoints.lua b/waypoints.lua index a8e4762..5e6081f 100644 --- a/waypoints.lua +++ b/waypoints.lua @@ -40,7 +40,7 @@ unified_inventory.register_page("waypoints", { local i = waypoints.selected or 1 local waypoint = waypoints[i] or {} local temp = waypoints_temp[player_name][i] or {} - local default_name = "Waypoint "..i + local default_name = string.format(S("Waypoint %d"), i) -- Main buttons: formspec = formspec .. -- cgit v1.2.3 From 534c7bd92c663e08f96523e1c352f0b851622cc7 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 6 Aug 2016 16:45:13 +0200 Subject: Fix German translation for “waypoints” MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locale/de.txt | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'locale') diff --git a/locale/de.txt b/locale/de.txt index 437e2c9..1ef1d39 100644 --- a/locale/de.txt +++ b/locale/de.txt @@ -68,19 +68,19 @@ Yellow = Gelb Red = Rot Green = Grün Blue = Blau -Waypoints = Markierungen +Waypoints = Wegpunkte Waypoint %d = Wegpunkt Nr. %d -Waypoint active = Markierung aktiv -Waypoint inactive = Markierung inaktiv +Waypoint active = Wegpunkt aktiv +Waypoint inactive = Wegpunkt inaktiv World position = Weltposition Name = Name HUD text color = HUD-Textfarbe -Edit waypoint name = Name der Markierung ändern -Rename waypoint = Markierung umbenennen -Change color of waypoint display = Farbe der Darstellung der Markierung ändern -Set waypoint to current location = Setze Markierung zur derzeitigen Position -Make waypoint visible = Markierung sichtbar machen -Make waypoint invisible = Markierung verstecken +Edit waypoint name = Name des Wegpunkts ändern +Rename waypoint = Wegpunkt umbenennen +Change color of waypoint display = Farbe der Darstellung der Wegpunkte ändern +Set waypoint to current location = Setze Wegpunkt zur derzeitigen Position +Make waypoint visible = Wegpunkt sichtbar machen +Make waypoint invisible = Wegpunkt verstecken Disable display of waypoint coordinates = Anzeige der Wegpunktkoordinaten deaktivieren Enable display of waypoint coordinates = Anzeige der Wegpunktkoordinaten aktivieren Finish editing = Bearbeitung abschließen -- cgit v1.2.3