From 2b586549cfed87b6f4bc6a1b608f94ef2e276f05 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 13 Mar 2019 22:52:14 +0100 Subject: [PATCH] Add translation templates for 3 mods --- mods/ENTITIES/mcl_falling_nodes/init.lua | 5 +- .../mcl_falling_nodes/locale/template.txt | 3 ++ .../awards/locale/{de.txt => awards.de.tr} | 0 mods/HUD/hbarmor/locale/de.txt | 2 - mods/HUD/hbarmor/locale/hbarmor.de.tr | 2 + .../hbarmor/locale/{it.txt => hbarmor.it.tr} | 4 +- mods/HUD/hbarmor/locale/template.txt | 4 +- mods/HUD/mcl_achievements/locale/template.txt | 49 +++++++++++++++++++ 8 files changed, 61 insertions(+), 8 deletions(-) create mode 100644 mods/ENTITIES/mcl_falling_nodes/locale/template.txt rename mods/HUD/awards/locale/{de.txt => awards.de.tr} (100%) delete mode 100644 mods/HUD/hbarmor/locale/de.txt create mode 100644 mods/HUD/hbarmor/locale/hbarmor.de.tr rename mods/HUD/hbarmor/locale/{it.txt => hbarmor.it.tr} (65%) create mode 100644 mods/HUD/mcl_achievements/locale/template.txt diff --git a/mods/ENTITIES/mcl_falling_nodes/init.lua b/mods/ENTITIES/mcl_falling_nodes/init.lua index 753f7c8c..35355c79 100644 --- a/mods/ENTITIES/mcl_falling_nodes/init.lua +++ b/mods/ENTITIES/mcl_falling_nodes/init.lua @@ -1,3 +1,4 @@ +local S = minetest.get_translator("mcl_falling_nodes") local dmes = minetest.get_modpath("mcl_death_messages") ~= nil local get_falling_depth = function(self) @@ -48,9 +49,9 @@ local deal_falling_damage = function(self, dtime) -- TODO: Reduce damage if wearing a helmet local msg if minetest.get_item_group(self.node.name, "anvil") ~= 0 then - msg = "%s was smashed by a falling anvil." + msg = S("%s was smashed by a falling anvil.") else - msg = "%s was smashed by a falling block." + msg = S("%s was smashed by a falling block.") end if dmes then mcl_death_messages.player_damage(v, string.format(msg, v:get_player_name())) diff --git a/mods/ENTITIES/mcl_falling_nodes/locale/template.txt b/mods/ENTITIES/mcl_falling_nodes/locale/template.txt new file mode 100644 index 00000000..040742c6 --- /dev/null +++ b/mods/ENTITIES/mcl_falling_nodes/locale/template.txt @@ -0,0 +1,3 @@ +# textdomain: mcl_falling_nodes +%s was smashed by a falling anvil.= +%s was smashed by a falling block.= diff --git a/mods/HUD/awards/locale/de.txt b/mods/HUD/awards/locale/awards.de.tr similarity index 100% rename from mods/HUD/awards/locale/de.txt rename to mods/HUD/awards/locale/awards.de.tr diff --git a/mods/HUD/hbarmor/locale/de.txt b/mods/HUD/hbarmor/locale/de.txt deleted file mode 100644 index 5a6bacdc..00000000 --- a/mods/HUD/hbarmor/locale/de.txt +++ /dev/null @@ -1,2 +0,0 @@ -Armor = Panzerung -%s: %d%% = %s: %d%% diff --git a/mods/HUD/hbarmor/locale/hbarmor.de.tr b/mods/HUD/hbarmor/locale/hbarmor.de.tr new file mode 100644 index 00000000..d1be8698 --- /dev/null +++ b/mods/HUD/hbarmor/locale/hbarmor.de.tr @@ -0,0 +1,2 @@ +Armor=Panzerung +%s: %d%%=%s: %d%% diff --git a/mods/HUD/hbarmor/locale/it.txt b/mods/HUD/hbarmor/locale/hbarmor.it.tr similarity index 65% rename from mods/HUD/hbarmor/locale/it.txt rename to mods/HUD/hbarmor/locale/hbarmor.it.tr index a2f704b2..f9c8f99e 100644 --- a/mods/HUD/hbarmor/locale/it.txt +++ b/mods/HUD/hbarmor/locale/hbarmor.it.tr @@ -1,4 +1,4 @@ -Armor = Armatura +Armor=Armatura # Format string for displaying the armor. E.g. "Armor: 100%" -%s: %d%% = +%s: %d%%=%s: %d%% diff --git a/mods/HUD/hbarmor/locale/template.txt b/mods/HUD/hbarmor/locale/template.txt index d898abe4..09bc54ce 100644 --- a/mods/HUD/hbarmor/locale/template.txt +++ b/mods/HUD/hbarmor/locale/template.txt @@ -1,4 +1,4 @@ -Armor = +Armor= # Format string for displaying the armor. E.g. "Armor: 100%" -%s: %d%% = +%s: %d%%= diff --git a/mods/HUD/mcl_achievements/locale/template.txt b/mods/HUD/mcl_achievements/locale/template.txt new file mode 100644 index 00000000..3b630162 --- /dev/null +++ b/mods/HUD/mcl_achievements/locale/template.txt @@ -0,0 +1,49 @@ +# textdomain: mcl_achievements +Aquire Hardware= +Bake Bread= +Benchmarking= +Cow Tipper= +Craft a bookshelf.= +Craft a cake using wheat, sugar, milk and an egg.= +Craft a crafting table from 4 wooden planks.= +Craft a stone pickaxe using sticks and cobblestone.= +Craft a wooden sword using wooden planks and sticks on a crafting table.= +DIAMONDS!= +Delicious Fish= +Dispense With This= +Eat a cooked porkchop.= +Eat a cooked rabbit.= +Get really desperate and eat rotten flesh.= +Getting Wood= +Getting an Upgrade= +Hit a skeleton, wither skeleton or stray by bow and arrow from a distance of at least 20 meters.= +Hot Topic= +Into Fire= +Into the Nether= +Iron Belly= +Librarian= +Mine emerald ore.= +On A Rail= +Pick up a blaze rod from the floor.= +Pick up a diamond from the floor.= +Pick up a wood item from the ground.@nHint: Punch a tree trunk until it pops out as an item.= +Pick up leather from the floor.@nHint: Cows and some other animals have a chance to drop leather, when killed.= +Place a dispenser.= +Place a flower pot.= +Pork Chop= +Pot Planter= +Rabbit Season= +Sniper Duel= +Take a cooked fish from a furnace.@nHint: Use a fishing rod to catch a fish and cook it in a furnace.= +Take an iron ingot from a furnace's output slot.@nHint: To smelt an iron ingot, put a fuel (like coal) and iron ore into a furnace.= +The Haggler= +The Lie= +Time to Farm!= +Time to Mine!= +Time to Strike!= +Travel by minecart for at least 1000 meters from your starting point in a single ride.= +Use 8 cobblestones to craft a furnace.= +Use a crafting table to craft a wooden hoe from wooden planks and sticks.= +Use a crafting table to craft a wooden pickaxe from wooden planks and sticks.= +Use obsidian and a fire starter to construct a Nether portal.= +Use wheat to craft a bread.=