From 2991230b698a6560eb1bc929dd2e1ba3871f3208 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 20 Mar 2019 10:43:31 +0100 Subject: [PATCH] Add more German --- init.lua | 12 ++++++------ locale/ltool.de.tr | 5 +++++ locale/template.txt | 6 ++++++ 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/init.lua b/init.lua index 8200901..edd0f58 100644 --- a/init.lua +++ b/init.lua @@ -409,13 +409,13 @@ function ltool.tab_database(index, playername) local leditbuttons, lplantbuttons if minetest.get_player_privs(playername).ledit then - leditbuttons = "button[3,7.5;3,1;database_rename;"..S(F("Rename tree")).."]".. - "button[6,7.5;3,1;database_delete;"..S(F("Delete tree")).."]" + leditbuttons = "button[3,7.5;3,1;database_rename;"..F(S("Rename tree")).."]".. + "button[6,7.5;3,1;database_delete;"..F(S("Delete tree")).."]" else - leditbuttons = "label[0.2,7.2;"..S(F("Read-only mode. You need the “ledit” privilege to edit trees.")).."]" + leditbuttons = "label[0.2,7.2;"..F(S("Read-only mode. You need the “ledit” privilege to edit trees.")).."]" end if minetest.get_player_privs(playername).lplant then - lplantbuttons = "button[0,8.5;3,1;sapling;"..S(F("Generate sapling")).."]" + lplantbuttons = "button[0,8.5;3,1;sapling;"..F(S("Generate sapling")).."]" else lplantbuttons = "" end @@ -435,10 +435,10 @@ end --[[ This creates the "Plant" tab part of the main formspec ]] function ltool.tab_plant(tree, fields, has_lplant_priv) if(tree ~= nil) then - local seltree = "label[0,-0.2;"..S(F("Selected tree: @1", tree.name)).."]" + local seltree = "label[0,-0.2;"..F(S("Selected tree: @1", tree.name)).."]" if not has_lplant_priv then return seltree.. - "label[0,0.3;"..S(F("Planting of trees is not allowed. You need to have the “lplant” privilege.")).."]" + "label[0,0.3;"..F(S("Planting of trees is not allowed. You need to have the “lplant” privilege.")).."]" end if(fields==nil) then fields = {} diff --git a/locale/ltool.de.tr b/locale/ltool.de.tr index e8cbd0a..46c7071 100644 --- a/locale/ltool.de.tr +++ b/locale/ltool.de.tr @@ -148,3 +148,8 @@ Invent your own trees and plant them=Erfinden Sie Ihre eignene Bäume und pflanz Copy tree to editor=Baum zum Editor kopieren Reload database=Datenbank neu laden The tree database is empty.=Die Baumdatenbank ist leer. +Rename tree=Baum umbenennen +Delete tree=Baum löschen +Selected tree: @1=Gewählter Baum: @1 +Read-only mode. You need the “ledit” privilege to edit trees.=Nur-Lesen-Modus. Sie brauchen das „ledit“-Privileg zum Bearbeiten. +Planting of trees is not allowed. You need to have the “lplant” privilege.=Bäumepflanzen ist nicht erlaubt. Sie brauchen das „lplant“-Privileg. diff --git a/locale/template.txt b/locale/template.txt index 478a1e3..377326c 100644 --- a/locale/template.txt +++ b/locale/template.txt @@ -148,3 +148,9 @@ Invent your own trees and plant them= Copy tree to editor= Reload database= The tree database is empty.= +Rename tree= +Delete tree= +Generate sapling= +Selected tree: @1= +Read-only mode. You need the “ledit” privilege to edit trees.= +Planting of trees is not allowed. You need to have the “lplant” privilege.=