Add french translations, revise others

This commit is contained in:
Jean-Patrick Guerrero 2019-02-21 16:59:07 +01:00
parent 7219a6096b
commit cdc8e410b6
7 changed files with 107 additions and 365 deletions

@ -392,16 +392,17 @@ local function get_recipe_fs(data, iY)
local rows = ceil(maxn(recipe.items) / width) local rows = ceil(maxn(recipe.items) / width)
local rightest, btn_size, s_btn_size = 0, 1.1 local rightest, btn_size, s_btn_size = 0, 1.1
fs[#fs + 1] = fmt("button[%f,%f;%f,%f;%s;%s %u %s %u]", local btn_lab = data.show_usages and
ESC(S("Usage @1 of @2", data.rnum, #data.recipes)) or
ESC(S("Recipe @1 of @2", data.rnum, #data.recipes))
fs[#fs + 1] = fmt(FMT.button,
sfinv_only and 5.8 or data.iX - 2.6, sfinv_only and 5.8 or data.iX - 2.6,
sfinv_only and 7.9 or iY + 3.3, sfinv_only and 7.9 or iY + 3.3,
2.2, 2.2,
1, 1,
"alternate", "alternate",
data.show_usages and ESC(S("Usage")) or ESC(S("Recipe")), btn_lab)
data.rnum,
ESC(S("of")),
#data.recipes)
if width > GRID_LIMIT or rows > GRID_LIMIT then if width > GRID_LIMIT or rows > GRID_LIMIT then
fs[#fs + 1] = fmt(FMT.label, fs[#fs + 1] = fmt(FMT.label,
@ -577,7 +578,7 @@ local function make_formspec(name)
ESC(S("Next page"))) ESC(S("Next page")))
fs[#fs + 1] = fmt("label[%f,%f;%s / %u]", fs[#fs + 1] = fmt("label[%f,%f;%s / %u]",
sfinv_only and 5.7 or data.iX - 2.2, sfinv_only and 6.3 or data.iX - 2.2,
0.22, 0.22,
colorize("yellow", data.pagenum), colorize("yellow", data.pagenum),
data.pagemax) data.pagemax)
@ -585,7 +586,7 @@ local function make_formspec(name)
fs[#fs + 1] = fmt([[ fs[#fs + 1] = fmt([[
image_button[%f,0.12;0.8,0.8;craftguide_prev_icon.png;prev;] image_button[%f,0.12;0.8,0.8;craftguide_prev_icon.png;prev;]
image_button[%f,0.12;0.8,0.8;craftguide_next_icon.png;next;] ]], image_button[%f,0.12;0.8,0.8;craftguide_next_icon.png;next;] ]],
sfinv_only and 6.6 or data.iX - 3.1, sfinv_only and 5.5 or data.iX - 3.1,
sfinv_only and 7.3 or (data.iX - 1.2) - (data.iX >= 11 and 0.08 or 0)) sfinv_only and 7.3 or (data.iX - 1.2) - (data.iX >= 11 and 0.08 or 0))
fs[#fs + 1] = fmt("field[0.3,0.32;2.5,1;filter;;%s]", ESC(data.filter)) fs[#fs + 1] = fmt("field[0.3,0.32;2.5,1;filter;;%s]", ESC(data.filter))
@ -924,7 +925,7 @@ else
on_construct = function(pos) on_construct = function(pos)
local meta = M.get_meta(pos) local meta = M.get_meta(pos)
meta:set_string("infotext", S("Crafting Guide Sign")) meta:set_string("infotext", "Crafting Guide Sign")
end, end,
on_rightclick = function(pos, node, user, itemstack) on_rightclick = function(pos, node, user, itemstack)

@ -1,90 +1,25 @@
# German translation for craftguide mod. # textdomain: craftguide
# Copyright (C) 2018
# This file is distributed under the same license as the craftguide package.
# codexp <codexp@gmx.net>, 2018.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: 1.27\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-03-23 00:17+0100\n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: German\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: init.lua Craft Guide=Rezeptbuch
msgid "Unknown Item (@1)" Crafting Guide=Rezeptbuch
msgstr "Unbekannter Gegenstand (@1)" Crafting Guide Sign=Rezepttafel
Search=Suche
#: init.lua Reset=Zurücksetzen
msgid "Any item belonging to the group(s)" Previous page=Vorherige Seite
msgstr "Beliebiger Gegenstand aus der Gruppe" Next page=Nächste Seite
Usage @1 of @2=Verwendung @1 von @2
#: init.lua Recipe @1 of @2=Rezept @1 von @2
msgid "Cooking time" Burning time: @1=Brennzeit: @1
msgstr "Kochzeit" Cooking time: @1=Kochzeit: @1
Any item belonging to the group(s): @1=Beliebiger Gegenstand aus der Gruppe: @1
#: init.lua Recipe is too big to be displayed (@1x@2)=Rezept ist zu groß für die Anzeige (@1x@2)
msgid "Burning time" Shapeless=
msgstr "Brennzeit" Cooking=Kochen
Increase window size=Fenster vergrößern
#: init.lua Decrease window size=Fenster verkleinern
msgid "Alternate" No item to show=Nichts anzuzeigen
msgstr "Andere" Collect items to reveal more recipes=
Show recipe(s) of the pointed node=
#: init.lua No node pointed=
msgid "Recipe @1 of @2" You don't know a recipe for this node=
msgstr "Rezept @1 von @2" No recipe for this node=
#: init.lua
msgid ""
"Recipe is too big to\n"
"be displayed (@1x@2)"
msgstr ""
"Rezept ist zu groß\n"
"für die Anzeige (@1x@2)"
#: init.lua
msgid "Search"
msgstr "Suche"
#: init.lua
msgid "Reset"
msgstr "Zurücksetzen"
#: init.lua
msgid "Increase window size"
msgstr "Fenster vergrößern"
#: init.lua
msgid "Decrease window size"
msgstr "Fenster verkleinern"
#: init.lua
msgid "Previous page"
msgstr "Vorherige Seite"
#: init.lua
msgid "Next page"
msgstr "Nächste Seite"
#: init.lua
msgid "No item to show"
msgstr "Nichts anzuzeigen"
#: init.lua
msgid "Crafting Guide"
msgstr "Rezeptbuch"
#: init.lua
msgid "Crafting Guide Sign"
msgstr "Rezepttafel"
#: init.lua
msgid "Shows a list of available crafting recipes, cooking recipes and fuels"
msgstr "Zeigt eine Liste von verfügbaren Rezepten, Kochrezepten und Brennmaterialien"

25
locale/craftguide.fr.tr Normal file

@ -0,0 +1,25 @@
# textdomain: craftguide
Craft Guide=Guide de recettes
Crafting Guide=Guide de recettes
Crafting Guide Sign=Guide de recettes (panneau)
Search=Rechercher
Reset=Réinitialiser
Previous page=Page précédente
Next page=Page suivante
Usage @1 of @2=Usage @1 de @2
Recipe @1 of @2=Recette @1 de @2
Burning time: @1=Temps de combustion : @1
Cooking time: @1=Temps de cuisson : @1
Any item belonging to the group(s): @1=Tout item appartenant au(x) groupe(s) : @1
Recipe is too big to be displayed (@1x@2)=La recette est trop grande pour être affichée (@1x@2)
Shapeless=Sans forme
Cooking=Cuisson
Increase window size=Agrandir la fenêtre
Decrease window size=Réduire la fenêtre
No item to show=Aucun item à afficher
Collect items to reveal more recipes=Collecte des items pour révéler plus de recettes
Show recipe(s) of the pointed node=Affiche les recettes du bloc visé
No node pointed=Aucun bloc visé
You don't know a recipe for this node=Tu ne connais aucune recette pour ce bloc
No recipe for this node=Aucune recette pour ce bloc

@ -1,91 +0,0 @@
# 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: craftguide\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-03-23 18:35+0100\n"
"PO-Revision-Date: 2018-04-18 02:02+0800\n"
"Language-Team: muhdnurhidayat <mnh48mail@gmail.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 2.0.6\n"
"Last-Translator: MuhdNurHidayat (MNH48) <mnh48mail@gmail.com>\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"Language: ms\n"
#: init.lua
msgid "Unknown Item (@1)"
msgstr "Item Tidak Diketahui (@1)"
#: init.lua
msgid "Any item belonging to the group(s)"
msgstr "Sebarang item dari kumpulan"
#: init.lua
msgid "Cooking time"
msgstr "Tempoh memasak"
#: init.lua
msgid "Burning time"
msgstr "Tempoh pembakaran"
#: init.lua
msgid "Alternate"
msgstr "Resipi lain"
#: init.lua
msgid "Recipe @1 of @2"
msgstr "Resipi @1 dari @2"
#: init.lua
msgid ""
"Recipe is too big to\n"
"be displayed (@1x@2)"
msgstr ""
"Resipi terlalu besar\n"
"untuk paparan (@1x@2)"
#: init.lua
msgid "Search"
msgstr "Cari"
#: init.lua
msgid "Reset"
msgstr "Set semula"
#: init.lua
msgid "Increase window size"
msgstr "Besarkan saiz tetingkap"
#: init.lua
msgid "Decrease window size"
msgstr "Kecilkan saiz tetingkap"
#: init.lua
msgid "Previous page"
msgstr "Halaman sebelumnya"
#: init.lua
msgid "Next page"
msgstr "Halaman seterusnya"
#: init.lua
msgid "No item to show"
msgstr "Tiada item untuk dipaparkan"
#: init.lua
msgid "Crafting Guide"
msgstr "Panduan Pertukangan"
#: init.lua
msgid "Crafting Guide Sign"
msgstr "Papan Tanda Panduan Pertukangan"
#: init.lua
msgid "Shows a list of available crafting recipes, cooking recipes and fuels"
msgstr "Menunjukkan senarai resipi pertukangan, resipi memasak dan bahan api yang ada"

@ -1,90 +1,25 @@
# Russian translation for craftguide mod. # textdomain: craftguide
# Copyright (C) 2018
# This file is distributed under the same license as the craftguide package.
# codexp <codexp@gmx.net>, 2018.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: 1.27\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-03-23 00:17+0100\n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: Russian\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: init.lua Craft Guide=книга рецептов крафта
msgid "Unknown Item (@1)" Crafting Guide=книга рецептов крафта
msgstr "Неизвестный элемент (@1)" Crafting Guide Sign=
Search=Поиск
#: init.lua Reset=Сброс
msgid "Any item belonging to the group(s)" Previous page=Предыдущая страница
msgstr "Любой элемент из группы" Next page=Следущая страница
Usage @1 of @2=использование @1 из @2
#: init.lua Recipe @1 of @2=Рецепт @1 из @2
msgid "Cooking time" Burning time: @1=Время горения: @1
msgstr "Время преготовления" Cooking time: @1=Время преготовления: @1
Any item belonging to the group(s): @1=Любой элемент из группы: @1
#: init.lua Recipe is too big to be displayed (@1x@2)=Рецепт слишком большой для показа (@1x@2)
msgid "Burning time" Shapeless=
msgstr "Время горения" Cooking=
Increase window size=Увеличить окно
#: init.lua Decrease window size=Уменьшить окно
msgid "Alternate" No item to show=Нет элемента для показа
msgstr "Другой" Collect items to reveal more recipes=
Show recipe(s) of the pointed node=
#: init.lua No node pointed=
msgid "Recipe @1 of @2" You don't know a recipe for this node=
msgstr "Рецепт @1 из @2" No recipe for this node=
#: init.lua
msgid ""
"Recipe is too big to\n"
"be displayed (@1x@2)"
msgstr ""
"Рецепт слишком большой\n"
"для показа (@1x@2)"
#: init.lua
msgid "Search"
msgstr "Поиск"
#: init.lua
msgid "Reset"
msgstr "Сброс"
#: init.lua
msgid "Increase window size"
msgstr "Увеличить окно"
#: init.lua
msgid "Decrease window size"
msgstr "Уменьшить окно"
#: init.lua
msgid "Previous page"
msgstr "Предыдущая страница"
#: init.lua
msgid "Next page"
msgstr "Следущая страница"
#: init.lua
msgid "No item to show"
msgstr "Нет элемента для показа"
#: init.lua
msgid "Crafting Guide"
msgstr "книга рецептов крафта"
#: init.lua
msgid "Crafting Guide Sign"
msgstr "табличка рецептов крафта"
#: init.lua
msgid "Shows a list of available crafting recipes, cooking recipes and fuels"
msgstr "Показывает список рецептов крафта, преготовления и топливо"

25
locale/template Normal file

@ -0,0 +1,25 @@
# textdomain: craftguide
Craft Guide=
Crafting Guide=
Crafting Guide Sign=
Search=
Reset=
Previous page=
Next page=
Usage @1 of @2=
Recipe @1 of @2=
Burning time: @1=
Cooking time: @1=
Any item belonging to the group(s): @1=
Recipe is too big to be displayed (@1x@2)=
Shapeless=
Cooking=
Increase window size=
Decrease window size=
No item to show=
Collect items to reveal more recipes=
Show recipe(s) of the pointed node=
No node pointed=
You don't know a recipe for this node=
No recipe for this node=

@ -1,88 +0,0 @@
# 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: 2018-03-23 18:35+0100\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 "Unknown Item (@1)"
msgstr ""
#: init.lua
msgid "Any item belonging to the group(s)"
msgstr ""
#: init.lua
msgid "Cooking time"
msgstr ""
#: init.lua
msgid "Burning time"
msgstr ""
#: init.lua
msgid "Alternate"
msgstr ""
#: init.lua
msgid "Recipe @1 of @2"
msgstr ""
#: init.lua
msgid ""
"Recipe is too big to\n"
"be displayed (@1x@2)"
msgstr ""
#: init.lua
msgid "Search"
msgstr ""
#: init.lua
msgid "Reset"
msgstr ""
#: init.lua
msgid "Increase window size"
msgstr ""
#: init.lua
msgid "Decrease window size"
msgstr ""
#: init.lua
msgid "Previous page"
msgstr ""
#: init.lua
msgid "Next page"
msgstr ""
#: init.lua
msgid "No item to show"
msgstr ""
#: init.lua
msgid "Crafting Guide"
msgstr ""
#: init.lua
msgid "Crafting Guide Sign"
msgstr ""
#: init.lua
msgid "Shows a list of available crafting recipes, cooking recipes and fuels"
msgstr ""