more accurate translatable strings

based on kaeza's i18n work : https://github.com/kaeza/moreores/tree/i18n
add updatepo.sh (with sorting)
all language.txt files converted to language.po file (mainly fuzzy strings)
This commit is contained in:
fat115 2017-08-04 19:02:35 +02:00
parent 84a9198a62
commit 2c41c61092
17 changed files with 1011 additions and 161 deletions

View File

@ -1,2 +1,3 @@
default
intllib?
mg?

View File

@ -15,12 +15,9 @@ if minetest.registered_items["default:tin_ingot"] then
default_tin = true
end
local S
if minetest.get_modpath("intllib") then
S = intllib.Getter()
else
S = function(s) return s end
end
-- Load support for intllib.
local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP.."/intllib.lua")
local modpath = minetest.get_modpath("moreores")
@ -92,7 +89,7 @@ local function get_recipe(c, name)
end
end
local function add_ore(modname, description, mineral_name, oredef)
local function add_ore(modname, descriptions, mineral_name, oredef)
local img_base = modname .. "_" .. mineral_name
local toolimg_base = modname .. "_tool_"..mineral_name
local tool_base = modname .. ":"
@ -104,7 +101,7 @@ local function add_ore(modname, description, mineral_name, oredef)
if oredef.makes.ore then
minetest.register_node(modname .. ":mineral_" .. mineral_name, {
description = S("%s Ore"):format(S(description)),
description = descriptions.ore,
tiles = {"default_stone.png^" .. modname .. "_mineral_" .. mineral_name .. ".png"},
groups = {cracky = 3},
sounds = default_stone_sounds,
@ -115,7 +112,7 @@ local function add_ore(modname, description, mineral_name, oredef)
if oredef.makes.block then
local block_item = item_base .. "_block"
minetest.register_node(block_item, {
description = S("%s Block"):format(S(description)),
description = descriptions.block,
tiles = { img_base .. "_block.png" },
groups = {snappy = 1, bendy = 2, cracky = 1, melty = 2, level= 2},
sounds = default_metal_sounds,
@ -137,7 +134,7 @@ local function add_ore(modname, description, mineral_name, oredef)
if oredef.makes.lump then
minetest.register_craftitem(lump_item, {
description = S("%s Lump"):format(S(description)),
description = descriptions.lump,
inventory_image = img_base .. "_lump.png",
})
minetest.register_alias(mineral_name .. "_lump", lump_item)
@ -152,7 +149,7 @@ local function add_ore(modname, description, mineral_name, oredef)
if oredef.makes.ingot then
minetest.register_craftitem(ingot, {
description = S("%s Ingot"):format(S(description)),
description = descriptions.ingot,
inventory_image = img_base .. "_ingot.png",
})
minetest.register_alias(mineral_name .. "_ingot", ingot)
@ -180,7 +177,7 @@ local function add_ore(modname, description, mineral_name, oredef)
for tool_name, tooldef in pairs(oredef.tools) do
local tdef = {
description = "",
description = descriptions[tool_name],
inventory_image = toolimg_base .. tool_name .. ".png",
tool_capabilities = {
max_drop_level = 3,
@ -192,30 +189,25 @@ local function add_ore(modname, description, mineral_name, oredef)
if tool_name == "sword" then
tdef.tool_capabilities.full_punch_interval = oredef.full_punch_interval
tdef.tool_capabilities.damage_groups = oredef.damage_groups
tdef.description = S("%s Sword"):format(S(description))
end
if tool_name == "pick" then
tdef.tool_capabilities.full_punch_interval = oredef.full_punch_interval
tdef.tool_capabilities.damage_groups = oredef.damage_groups
tdef.description = S("%s Pickaxe"):format(S(description))
end
if tool_name == "axe" then
tdef.tool_capabilities.full_punch_interval = oredef.full_punch_interval
tdef.tool_capabilities.damage_groups = oredef.damage_groups
tdef.description = S("%s Axe"):format(S(description))
end
if tool_name == "shovel" then
tdef.full_punch_interval = oredef.full_punch_interval
tdef.tool_capabilities.damage_groups = oredef.damage_groups
tdef.description = S("%s Shovel"):format(S(description))
tdef.wield_image = toolimg_base .. tool_name .. ".png^[transformR90"
end
if tool_name == "hoe" then
tdef.description = S("%s Hoe"):format(S(description))
local uses = tooldef.uses
tooldef.uses = nil
tdef.on_use = function(itemstack, user, pointed_thing)
@ -238,16 +230,27 @@ end
-- Add everything:
local modname = "moreores"
local oredefs = {
silver = {
description = "Silver",
local oredefs = {}
oredefs.silver = {
descriptions = {
ore = S("Silver Ore"),
lump = S("Silver Lump"),
ingot = S("Silver Ingot"),
block = S("Silver Block"),
pick = S("Silver Pickaxe"),
shovel = S("Silver Shovel"),
axe = S("Silver Axe"),
hoe = S("Silver Hoe"),
sword = S("Silver Sword"),
},
makes = {ore = true, block = true, lump = true, ingot = true, chest = true},
oredef = {clust_scarcity = moreores.silver_chunk_size * moreores.silver_chunk_size * moreores.silver_chunk_size,
clust_num_ores = moreores.silver_ore_per_chunk,
clust_size = moreores.silver_chunk_size,
y_min = moreores.silver_min_depth,
y_max = moreores.silver_max_depth
},
},
tools = {
pick = {
cracky = {times = {[1] = 2.60, [2] = 1.00, [3] = 0.60}, uses = 100, maxlevel= 1}
@ -270,16 +273,27 @@ local oredefs = {
},
full_punch_interval = 1.0,
damage_groups = {fleshy = 6},
},
mithril = {
description = "Mithril",
}
oredefs.mithril = {
descriptions = {
ore = S("Mythril Ore"),
lump = S("Mythril Lump"),
ingot = S("Mythril Ingot"),
block = S("Mythril Block"),
pick = S("Mythril Pickaxe"),
shovel = S("Mythril Shovel"),
axe = S("Mythril Axe"),
hoe = S("Mythril Hoe"),
sword = S("Mythril Sword"),
},
makes = {ore = true, block = true, lump = true, ingot = true, chest = false},
oredef = {clust_scarcity = moreores.mithril_chunk_size * moreores.mithril_chunk_size * moreores.mithril_chunk_size,
clust_num_ores = moreores.mithril_ore_per_chunk,
clust_size = moreores.mithril_chunk_size,
y_min = moreores.mithril_min_depth,
y_max = moreores.mithril_max_depth
},
},
tools = {
pick = {
cracky = {times = {[1] = 2.25, [2] = 0.55, [3] = 0.35}, uses = 200, maxlevel= 2}
@ -302,12 +316,16 @@ local oredefs = {
},
full_punch_interval = 0.45,
damage_groups = {fleshy = 9},
}
}
if not default_tin then
oredefs.tin = {
description = "Tin",
oredefs.tin = {
descriptions = {
ore = S("Tin Ore"),
lump = S("Tin Lump"),
ingot = S("Tin Ingot"),
block = S("Tin Block"),
},
makes = {ore = true, block = true, lump = true, ingot = true, chest = false},
oredef = {clust_scarcity = moreores.tin_chunk_size * moreores.tin_chunk_size * moreores.tin_chunk_size,
clust_num_ores = moreores.tin_ore_per_chunk,
@ -316,11 +334,11 @@ if not default_tin then
y_max = moreores.tin_max_depth
},
tools = {},
}
}
end
for orename,def in pairs(oredefs) do
add_ore(modname, def.description, orename, def)
add_ore(modname, def.descriptions, orename, def)
end
-- Copper rail (special node):

45
intllib.lua Normal file
View File

@ -0,0 +1,45 @@
-- Fallback functions for when `intllib` is not installed.
-- Code released under Unlicense <http://unlicense.org>.
-- Get the latest version of this file at:
-- https://raw.githubusercontent.com/minetest-mods/intllib/master/lib/intllib.lua
local function format(str, ...)
local args = { ... }
local function repl(escape, open, num, close)
if escape == "" then
local replacement = tostring(args[tonumber(num)])
if open == "" then
replacement = replacement..close
end
return replacement
else
return "@"..open..num..close
end
end
return (str:gsub("(@?)@(%(?)(%d+)(%)?)", repl))
end
local gettext, ngettext
if minetest.get_modpath("intllib") then
if intllib.make_gettext_pair then
-- New method using gettext.
gettext, ngettext = intllib.make_gettext_pair()
else
-- Old method using text files.
gettext = intllib.Getter()
end
end
-- Fill in missing functions.
gettext = gettext or function(msgid, ...)
return format(msgid, ...)
end
ngettext = ngettext or function(msgid, msgid_plural, n, ...)
return format(n==1 and msgid or msgid_plural, ...)
end
return gettext, ngettext

136
locale/de.po Normal file
View File

@ -0,0 +1,136 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-08-04 18:11+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Xanthin\n"
"Language-Team: German\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: init.lua
#, fuzzy
msgid "Silver Ore"
msgstr "Silbererz"
#: init.lua
#, fuzzy
msgid "Silver Lump"
msgstr "Silberklumpen"
#: init.lua
#, fuzzy
msgid "Silver Ingot"
msgstr "Silberbarren"
#: init.lua
#, fuzzy
msgid "Silver Block"
msgstr "Silberblock"
#: init.lua
#, fuzzy
msgid "Silver Pickaxe"
msgstr "Silberspitzhacke"
#: init.lua
#, fuzzy
msgid "Silver Shovel"
msgstr "Silberschaufel"
#: init.lua
#, fuzzy
msgid "Silver Axe"
msgstr "Silberaxt"
#: init.lua
#, fuzzy
msgid "Silver Hoe"
msgstr "Silberhacke"
#: init.lua
#, fuzzy
msgid "Silver Sword"
msgstr "Silberschwert"
#: init.lua
#, fuzzy
msgid "Mythril Ore"
msgstr "Mithrilerz"
#: init.lua
#, fuzzy
msgid "Mythril Lump"
msgstr "Mithrilklumpen"
#: init.lua
#, fuzzy
msgid "Mythril Ingot"
msgstr "Mithrilbarren"
#: init.lua
#, fuzzy
msgid "Mythril Block"
msgstr "Mithrilblock"
#: init.lua
#, fuzzy
msgid "Mythril Pickaxe"
msgstr "Mithrilspitzhacke"
#: init.lua
#, fuzzy
msgid "Mythril Shovel"
msgstr "Mithrilschaufel"
#: init.lua
#, fuzzy
msgid "Mythril Axe"
msgstr "Mithrilaxt"
#: init.lua
#, fuzzy
msgid "Mythril Hoe"
msgstr "Mithrilhacke"
#: init.lua
#, fuzzy
msgid "Mythril Sword"
msgstr "Mithrilschwert"
#: init.lua
#, fuzzy
msgid "Tin Ore"
msgstr "Zinnerz"
#: init.lua
#, fuzzy
msgid "Tin Lump"
msgstr "Zinnklumpen"
#: init.lua
#, fuzzy
msgid "Tin Ingot"
msgstr "Zinnbarren"
#: init.lua
#, fuzzy
msgid "Tin Block"
msgstr "Zinnblock"
#: init.lua
msgid "Copper Rail"
msgstr "Kupferschiene"
#: init.lua
msgid "[moreores] loaded."
msgstr "[moreores] geladen."

View File

@ -1,22 +0,0 @@
# Translation by Xanthin
[moreores] loaded. = [moreores] geladen.
%s Ore = %serz
%s Lump = %sklumpen
%s Ingot = %sbarren
%s Block = %sblock
%s Pickaxe = %sspitzhacke
%s Shovel = %sschaufel
%s Axe = %saxt
%s Sword = %sschwert
%s Hoe = %shacke
Copper = Kupfer
Tin = Zinn
Bronze = Bronze
Silver = Silber
Gold = Gold
Mithril = Mithril
Copper Rail = Kupferschiene

114
locale/es.po Normal file
View File

@ -0,0 +1,114 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-08-04 18:11+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: kaeza\n"
"Language-Team: Spanish\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: init.lua
msgid "Silver Ore"
msgstr "Plata"
#: init.lua
msgid "Silver Lump"
msgstr "Pepita de plata"
#: init.lua
msgid "Silver Ingot"
msgstr "Lingote de plata"
#: init.lua
msgid "Silver Block"
msgstr "Bloque de plata"
#: init.lua
msgid "Silver Pickaxe"
msgstr "Pico de plata"
#: init.lua
msgid "Silver Shovel"
msgstr "Pala de plata"
#: init.lua
msgid "Silver Axe"
msgstr "Hacha de plata"
#: init.lua
msgid "Silver Hoe"
msgstr "Azada de plata"
#: init.lua
msgid "Silver Sword"
msgstr "Espada de plata"
#: init.lua
msgid "Mythril Ore"
msgstr "Mitrilo"
#: init.lua
msgid "Mythril Lump"
msgstr "Pepita de mitrilo"
#: init.lua
msgid "Mythril Ingot"
msgstr "Lingote de mitrilo"
#: init.lua
msgid "Mythril Block"
msgstr "Bloque de mitrilo"
#: init.lua
msgid "Mythril Pickaxe"
msgstr "Pico de mitrilo"
#: init.lua
msgid "Mythril Shovel"
msgstr "Pala de mitrilo"
#: init.lua
msgid "Mythril Axe"
msgstr "Hacha de mitrilo"
#: init.lua
msgid "Mythril Hoe"
msgstr "Azada de mitrilo"
#: init.lua
msgid "Mythril Sword"
msgstr "Espada de mitrilo"
#: init.lua
msgid "Tin Ore"
msgstr "Estaño"
#: init.lua
msgid "Tin Lump"
msgstr "Pepita de estaño"
#: init.lua
msgid "Tin Ingot"
msgstr "Lingote de estaño"
#: init.lua
msgid "Tin Block"
msgstr "Bloque de estaño"
#: init.lua
msgid "Copper Rail"
msgstr "Riel de cobre"
#: init.lua
msgid "[moreores] loaded."
msgstr "[moreores] cargado."

View File

@ -1,21 +0,0 @@
# Translation by kaeza
[moreores] loaded. = [moreores] cargado.
%s Ore = Mineral de %s
%s Lump = Pepita de %s
%s Ingot = Lingote de %s
%s Block = Bloque de %s
%s Pickaxe = Pico de %s
%s Shovel = Pala de %s
%s Axe = Hacha de %s
%s Sword = Espada de %s
Copper = cobre
Tin = estaño
Bronze = bronce
Silver = plata
Gold = oro
Mithril = mitrilo
Copper Rail = Riel de Cobre

115
locale/fr.po Normal file
View File

@ -0,0 +1,115 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-08-04 18:17+0200\n"
"PO-Revision-Date: 2017-08-04 18:23+0200\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.12\n"
"Last-Translator: fat115 <fat115@framasoft.org>\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"Language: fr\n"
#: init.lua
msgid "Silver Ore"
msgstr "Minerai d'argent"
#: init.lua
msgid "Silver Lump"
msgstr "Roche d'argent"
#: init.lua
msgid "Silver Ingot"
msgstr "Lingot d'argent"
#: init.lua
msgid "Silver Block"
msgstr "Bloc d'argent"
#: init.lua
msgid "Silver Pickaxe"
msgstr "Pioche en argent"
#: init.lua
msgid "Silver Shovel"
msgstr "Pelle en argent"
#: init.lua
msgid "Silver Axe"
msgstr "Hache en argent"
#: init.lua
msgid "Silver Hoe"
msgstr "Houe en argent"
#: init.lua
msgid "Silver Sword"
msgstr "Épée en argent"
#: init.lua
msgid "Mythril Ore"
msgstr "Minerai de Mithril"
#: init.lua
msgid "Mythril Lump"
msgstr "Roche de Mithril"
#: init.lua
msgid "Mythril Ingot"
msgstr "Lingot de Mithril"
#: init.lua
msgid "Mythril Block"
msgstr "Bloc de Mithril"
#: init.lua
msgid "Mythril Pickaxe"
msgstr "Pioche en Mithril"
#: init.lua
msgid "Mythril Shovel"
msgstr "Pelle en Mithril"
#: init.lua
msgid "Mythril Axe"
msgstr "Hache en Mithril"
#: init.lua
msgid "Mythril Hoe"
msgstr "Houe en Mithril"
#: init.lua
msgid "Mythril Sword"
msgstr "Épée en Mithril"
#: init.lua
msgid "Tin Ore"
msgstr "Minerai d'étain"
#: init.lua
msgid "Tin Lump"
msgstr "Roche d'étain"
#: init.lua
msgid "Tin Ingot"
msgstr "Lingot d'étain"
#: init.lua
msgid "Tin Block"
msgstr "Bloc d'étain"
#: init.lua
msgid "Copper Rail"
msgstr "Rail en cuivre"
#: init.lua
msgid "[moreores] loaded."
msgstr "[moreores] chargé."

View File

@ -1,21 +0,0 @@
# Translation by Calinou
[moreores] loaded. = [moreores] a été chargé.
%s Ore = Minerai en %s
%s Lump = Roche en %s
%s Ingot = Lingot en %s
%s Block = Bloc en %s
%s Pickaxe = Pioche en %s
%s Shovel = Pelle en %s
%s Axe = Hache en %s
%s Sword = Épée en %s
Copper = cuivre
Tin = étain
Bronze = bronze
Silver = argent
Gold = or
Mithril = mithril
Copper Rail = Rail en cuivre

141
locale/it.po Normal file
View File

@ -0,0 +1,141 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-08-04 18:11+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Pagliaccio\n"
"Language-Team: Italian\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: init.lua
#, fuzzy
msgid "Silver Ore"
msgstr "Minerale di argento"
#: init.lua
#, fuzzy
msgid "Silver Lump"
msgstr "Argento grezzo"
#: init.lua
#, fuzzy
msgid "Silver Ingot"
msgstr "Lingotto di argento"
#: init.lua
#, fuzzy
msgid "Silver Block"
msgstr "Blocco di argento"
#: init.lua
#, fuzzy
msgid "Silver Pickaxe"
msgstr "Piccone di argento"
#: init.lua
#, fuzzy
msgid "Silver Shovel"
msgstr "Badile di argento"
#: init.lua
#, fuzzy
msgid "Silver Axe"
msgstr "Ascia di argento"
#: init.lua
#, fuzzy
msgid "Silver Hoe"
msgstr "Zappa di argento"
#: init.lua
#, fuzzy
msgid "Silver Sword"
msgstr "Spada di argento"
#: init.lua
#, fuzzy
msgid "Mythril Ore"
msgstr "Minerale di mithril"
#: init.lua
#, fuzzy
msgid "Mythril Lump"
msgstr "Mithril grezzo"
#: init.lua
#, fuzzy
msgid "Mythril Ingot"
msgstr "Lingotto di mithril"
#: init.lua
#, fuzzy
msgid "Mythril Block"
msgstr "Blocco di mithril"
#: init.lua
#, fuzzy
msgid "Mythril Pickaxe"
msgstr "Piccone di mithril"
#: init.lua
#, fuzzy
msgid "Mythril Shovel"
msgstr "Badile di mithril"
#: init.lua
#, fuzzy
msgid "Mythril Axe"
msgstr "Ascia di mithril"
#: init.lua
#, fuzzy
msgid "Mythril Hoe"
msgstr "Zappa di mithril"
#: init.lua
#, fuzzy
msgid "Mythril Sword"
msgstr "Spada di mithril"
#: init.lua
#, fuzzy
msgid "Silver Sword"
msgstr "Spada di argento"
#: init.lua
#, fuzzy
msgid "Tin Ore"
msgstr "Minerale di stagno"
#: init.lua
#, fuzzy
msgid "Tin Lump"
msgstr "Stagno grezzo"
#: init.lua
#, fuzzy
msgid "Tin Ingot"
msgstr "Lingotto di stagno"
#: init.lua
#, fuzzy
msgid "Tin Block"
msgstr "Blocco di stagno"
#: init.lua
msgid "Copper Rail"
msgstr "Binario di rame"
#: init.lua
msgid "[moreores] loaded."
msgstr "[moreores] caricato."

View File

@ -1,21 +0,0 @@
# Translation by Pagliaccio
[moreores] loaded. = [moreores] caricato.
%s Ore = Minerale di %s
%s Lump = %s grezzo
%s Ingot = Lingotto di %s
%s Block = Blocco di %s
%s Pickaxe = Piccone di %s
%s Shovel = Badile di %s
%s Axe = Ascia di %s
%s Sword = Spada di %s
Copper = Rame
Tin = Stagno
Bronze = Bronzo
Silver = Argento
Gold = Oro
Mithril = Mithril
Copper Rail = Binario di rame

137
locale/pt_BR.po Normal file
View File

@ -0,0 +1,137 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-08-04 18:11+0200\n"
"PO-Revision-Date: 2017-08-04 18:46+0200\n"
"Last-Translator: Caiorrs <caiorrs@gmail.com>\n"
"Language-Team: Brazilian Portuguese\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.12\n"
#: init.lua
#, fuzzy
msgid "Silver Ore"
msgstr "Minério de Prata"
#: init.lua
#, fuzzy
msgid "Silver Lump"
msgstr "Pepita de Prata"
#: init.lua
#, fuzzy
msgid "Silver Ingot"
msgstr "Lingote de Prata"
#: init.lua
#, fuzzy
msgid "Silver Block"
msgstr "Bloco de Prata"
#: init.lua
#, fuzzy
msgid "Silver Pickaxe"
msgstr "Picareta de Prata"
#: init.lua
#, fuzzy
msgid "Silver Shovel"
msgstr "Pá de Prata"
#: init.lua
#, fuzzy
msgid "Silver Axe"
msgstr "Machado de Prata"
#: init.lua
#, fuzzy
msgid "Silver Hoe"
msgstr "Enxada de Prata"
#: init.lua
#, fuzzy
msgid "Silver Sword"
msgstr "Espada de Prata"
#: init.lua
#, fuzzy
msgid "Mythril Ore"
msgstr "Minério de Mitrilo"
#: init.lua
#, fuzzy
msgid "Mythril Lump"
msgstr "Pepita de Mitrilo"
#: init.lua
#, fuzzy
msgid "Mythril Ingot"
msgstr "Lingote de Mitrilo"
#: init.lua
#, fuzzy
msgid "Mythril Block"
msgstr "Bloco de Mitrilo"
#: init.lua
#, fuzzy
msgid "Mythril Pickaxe"
msgstr "Picareta de Mitrilo"
#: init.lua
#, fuzzy
msgid "Mythril Shovel"
msgstr "Pá de Mitrilo"
#: init.lua
#, fuzzy
msgid "Mythril Axe"
msgstr "Machado de Mitrilo"
#: init.lua
#, fuzzy
msgid "Mythril Hoe"
msgstr "Enxada de Mitrilo"
#: init.lua
#, fuzzy
msgid "Mythril Sword"
msgstr "Espada de Mitrilo"
#: init.lua
#, fuzzy
msgid "Tin Ore"
msgstr "Minério de Estanho"
#: init.lua
#, fuzzy
msgid "Tin Lump"
msgstr "Pepita de Estanho"
#: init.lua
#, fuzzy
msgid "Tin Ingot"
msgstr "Lingote de Estanho"
#: init.lua
#, fuzzy
msgid "Tin Block"
msgstr "Bloco de Estanho"
#: init.lua
#, fuzzy
msgid "Copper Rail"
msgstr "Trilho de Cobre"
#: init.lua
msgid "[moreores] loaded."
msgstr "[moreores] carregado."

View File

@ -1,21 +0,0 @@
# Translation by github.com/caiorrs
[moreores] loaded. = [moreores] carregado.
%s Ore = Minério de %s
%s Lump = Pepita de %s
%s Ingot = Lingote de %s
%s Block = Bloco de %s
%s Pickaxe = Picareta de %s
%s Shovel = Pá de %s
%s Axe = Machado de %s
%s Sword = Espada de %s
Copper = Cobre
Tin = Estanho
Bronze = Bronze
Silver = Prata
Gold = Ouro
Mithril = Mitrilo
Copper Rail = Trilho de Cobre

114
locale/template.pot Normal file
View File

@ -0,0 +1,114 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-08-04 18:11+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: init.lua
msgid "Silver Ore"
msgstr ""
#: init.lua
msgid "Silver Lump"
msgstr ""
#: init.lua
msgid "Silver Ingot"
msgstr ""
#: init.lua
msgid "Silver Block"
msgstr ""
#: init.lua
msgid "Silver Pickaxe"
msgstr ""
#: init.lua
msgid "Silver Shovel"
msgstr ""
#: init.lua
msgid "Silver Axe"
msgstr ""
#: init.lua
msgid "Silver Hoe"
msgstr ""
#: init.lua
msgid "Silver Sword"
msgstr ""
#: init.lua
msgid "Mythril Ore"
msgstr ""
#: init.lua
msgid "Mythril Lump"
msgstr ""
#: init.lua
msgid "Mythril Ingot"
msgstr ""
#: init.lua
msgid "Mythril Block"
msgstr ""
#: init.lua
msgid "Mythril Pickaxe"
msgstr ""
#: init.lua
msgid "Mythril Shovel"
msgstr ""
#: init.lua
msgid "Mythril Axe"
msgstr ""
#: init.lua
msgid "Mythril Hoe"
msgstr ""
#: init.lua
msgid "Mythril Sword"
msgstr ""
#: init.lua
msgid "Tin Ore"
msgstr ""
#: init.lua
msgid "Tin Lump"
msgstr ""
#: init.lua
msgid "Tin Ingot"
msgstr ""
#: init.lua
msgid "Tin Block"
msgstr ""
#: init.lua
msgid "Copper Rail"
msgstr ""
#: init.lua
msgid "[moreores] loaded."
msgstr ""

136
locale/tr.po Normal file
View File

@ -0,0 +1,136 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-08-04 18:11+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Mahmutelmas06 <mahmutelmas06@hotmail.com>\n"
"Language-Team: Turkish\n"
"Language: tr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: init.lua
#, fuzzy
msgid "Silver Ore"
msgstr "Gümüş madeni"
#: init.lua
#, fuzzy
msgid "Silver Lump"
msgstr "Gümüş yığını"
#: init.lua
#, fuzzy
msgid "Silver Ingot"
msgstr "Gümüş klesi"
#: init.lua
#, fuzzy
msgid "Silver Block"
msgstr "Gümüş blok"
#: init.lua
#, fuzzy
msgid "Silver Pickaxe"
msgstr "Gümüş kazma"
#: init.lua
#, fuzzy
msgid "Silver Shovel"
msgstr "Gümüş kürek"
#: init.lua
#, fuzzy
msgid "Silver Axe"
msgstr "Gümüş balta"
#: init.lua
#, fuzzy
msgid "Silver Hoe"
msgstr "Gümüş çapa"
#: init.lua
#, fuzzy
msgid "Silver Sword"
msgstr "Gümüş kılıç"
#: init.lua
#, fuzzy
msgid "Mythril Ore"
msgstr "Mithril madeni"
#: init.lua
#, fuzzy
msgid "Mythril Lump"
msgstr "Mithril yığını"
#: init.lua
#, fuzzy
msgid "Mythril Ingot"
msgstr "Mithril külçesi"
#: init.lua
#, fuzzy
msgid "Mythril Block"
msgstr "Mithril blok"
#: init.lua
#, fuzzy
msgid "Mythril Pickaxe"
msgstr "Mithril kazma"
#: init.lua
#, fuzzy
msgid "Mythril Shovel"
msgstr "Mithril kürek"
#: init.lua
#, fuzzy
msgid "Mythril Axe"
msgstr "Mithril balta"
#: init.lua
#, fuzzy
msgid "Mythril Hoe"
msgstr "Mithril çapa"
#: init.lua
#, fuzzy
msgid "Mythril Sword"
msgstr "Mithril kılıç"
#: init.lua
#, fuzzy
msgid "Tin Ore"
msgstr "Kalay madeni"
#: init.lua
#, fuzzy
msgid "Tin Lump"
msgstr "Kalay yığını"
#: init.lua
#, fuzzy
msgid "Tin Ingot"
msgstr "Kalay klesi"
#: init.lua
#, fuzzy
msgid "Tin Block"
msgstr "Kalay blok"
#: init.lua
msgid "Copper Rail"
msgstr "Bakr ray"
#: init.lua
msgid "[moreores] loaded."
msgstr "[moreores] yklendi."

View File

@ -1,25 +0,0 @@
# Translation by Mahmutelmas06
# mahmutelmas06@hotmail.com
# Türkçe Çeviri
# Turkish translation
# Language 2 letter iso code is "tr"
[moreores] loaded. = [moreores] yüklendi.
%s Ore = %s madeni
%s Lump = %s yığını
%s Ingot = %s külçesi
%s Block = %s blok
%s Pickaxe = %s kazma
%s Shovel = %s kürek
%s Axe = %s balta
%s Sword = %s kılıç
Copper = Bakır
Tin = Kalay
Bronze = Bronz
Silver = Gümüş
Gold = Altın
Mithril = Mithril
Copper Rail = Bakır ray

24
tools/updatepo.sh Executable file
View File

@ -0,0 +1,24 @@
#! /bin/bash
# To create a new translation:
# msginit --locale=ll_CC -o locale/ll_CC.po -i locale/template.pot
cd "$(dirname "${BASH_SOURCE[0]}")/..";
# Extract translatable strings.
xgettext --from-code=UTF-8 \
--language=Lua \
--sort-by-file \
--keyword=S \
--keyword=NS:1,2 \
--keyword=N_ \
--add-comments='Translators:' \
--add-location=file \
-o locale/template.pot \
$(find . -name '*.lua')
# Update translations.
find locale -name '*.po' | while read -r file; do
echo $file
msgmerge --update $file locale/template.pot;
done