Add german translations for all mods

This commit is contained in:
Xanthin
2014-04-16 19:10:00 +02:00
committed by ShadowNinja
parent db20250371
commit 39c41a06f4
33 changed files with 437 additions and 65 deletions

View File

@ -1,3 +1,5 @@
default
technic
technic_chests
technic_chests
intllib?

View File

@ -16,6 +16,14 @@ local modpath = minetest.get_modpath(minetest.get_current_modname())
dofile(modpath.."/support.lua")
dofile(modpath.."/technic.lua")
-- Boilerplate to support localized strings if intllib mod is installed.
local S
if intllib then
S = intllib.Getter()
else
S = function(s) return s end
end
local function get_meta_type(name, metaname)
local def = wrench.registered_nodes[name]
if not def or not def.metas or not def.metas[metaname] then
@ -60,7 +68,7 @@ for name, info in pairs(wrench.registered_nodes) do
newdef[key] = value
end
newdef.stack_max = 1
newdef.description = newdef.description.." with items"
newdef.description = S("%s with items"):format(newdef.description)
newdef.groups = {}
newdef.groups.not_in_creative_inventory = 1
newdef.on_construct = nil
@ -71,7 +79,7 @@ for name, info in pairs(wrench.registered_nodes) do
end
minetest.register_tool("wrench:wrench", {
description = "Wrench",
description = S("Wrench"),
inventory_image = "technic_wrench.png",
tool_capabilities = {
full_punch_interval = 0.9,

7
wrench/locale/de.txt Normal file
View File

@ -0,0 +1,7 @@
# German Translation for technic_wrench
# Deutsche Übersetzung von technic_wrench
# by Xanthin
Wrench = Schraubenschluessel
%s with items = %s mit Gegenstaenden

View File

@ -0,0 +1,5 @@
# technic_wrench translation template
Wrench =
%s with items =