diff --git a/init.lua b/init.lua index 3a095aa..d921808 100644 --- a/init.lua +++ b/init.lua @@ -392,16 +392,17 @@ local function get_recipe_fs(data, iY) local rows = ceil(maxn(recipe.items) / width) 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 7.9 or iY + 3.3, 2.2, 1, "alternate", - data.show_usages and ESC(S("Usage")) or ESC(S("Recipe")), - data.rnum, - ESC(S("of")), - #data.recipes) + btn_lab) if width > GRID_LIMIT or rows > GRID_LIMIT then fs[#fs + 1] = fmt(FMT.label, @@ -577,7 +578,7 @@ local function make_formspec(name) ESC(S("Next page"))) 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, colorize("yellow", data.pagenum), data.pagemax) @@ -585,7 +586,7 @@ local function make_formspec(name) 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_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)) 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) local meta = M.get_meta(pos) - meta:set_string("infotext", S("Crafting Guide Sign")) + meta:set_string("infotext", "Crafting Guide Sign") end, on_rightclick = function(pos, node, user, itemstack) diff --git a/locale/craftguide.de.tr b/locale/craftguide.de.tr index 8e5a8de..b630835 100644 --- a/locale/craftguide.de.tr +++ b/locale/craftguide.de.tr @@ -1,90 +1,25 @@ -# German translation for craftguide mod. -# Copyright (C) 2018 -# This file is distributed under the same license as the craftguide package. -# codexp , 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" +# textdomain: craftguide -#: init.lua -msgid "Unknown Item (@1)" -msgstr "Unbekannter Gegenstand (@1)" - -#: init.lua -msgid "Any item belonging to the group(s)" -msgstr "Beliebiger Gegenstand aus der Gruppe" - -#: init.lua -msgid "Cooking time" -msgstr "Kochzeit" - -#: init.lua -msgid "Burning time" -msgstr "Brennzeit" - -#: init.lua -msgid "Alternate" -msgstr "Andere" - -#: init.lua -msgid "Recipe @1 of @2" -msgstr "Rezept @1 von @2" - -#: 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" +Craft Guide=Rezeptbuch +Crafting Guide=Rezeptbuch +Crafting Guide Sign=Rezepttafel +Search=Suche +Reset=Zurücksetzen +Previous page=Vorherige Seite +Next page=Nächste Seite +Usage @1 of @2=Verwendung @1 von @2 +Recipe @1 of @2=Rezept @1 von @2 +Burning time: @1=Brennzeit: @1 +Cooking time: @1=Kochzeit: @1 +Any item belonging to the group(s): @1=Beliebiger Gegenstand aus der Gruppe: @1 +Recipe is too big to be displayed (@1x@2)=Rezept ist zu groß für die Anzeige (@1x@2) +Shapeless= +Cooking=Kochen +Increase window size=Fenster vergrößern +Decrease window size=Fenster verkleinern +No item to show=Nichts anzuzeigen +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= diff --git a/locale/craftguide.fr.tr b/locale/craftguide.fr.tr new file mode 100644 index 0000000..2bdbf9d --- /dev/null +++ b/locale/craftguide.fr.tr @@ -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 diff --git a/locale/craftguide.ms.tr b/locale/craftguide.ms.tr deleted file mode 100644 index 56a1c20..0000000 --- a/locale/craftguide.ms.tr +++ /dev/null @@ -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 , 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 \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) \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" diff --git a/locale/craftguide.ru.tr b/locale/craftguide.ru.tr index e99d0c6..cd92378 100644 --- a/locale/craftguide.ru.tr +++ b/locale/craftguide.ru.tr @@ -1,90 +1,25 @@ -# Russian translation for craftguide mod. -# Copyright (C) 2018 -# This file is distributed under the same license as the craftguide package. -# codexp , 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" +# textdomain: craftguide -#: init.lua -msgid "Unknown Item (@1)" -msgstr "Неизвестный элемент (@1)" - -#: 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 "Рецепт @1 из @2" - -#: 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 "Показывает список рецептов крафта, преготовления и топливо" +Craft Guide=книга рецептов крафта +Crafting Guide=книга рецептов крафта +Crafting Guide Sign= +Search=Поиск +Reset=Сброс +Previous page=Предыдущая страница +Next page=Следущая страница +Usage @1 of @2=использование @1 из @2 +Recipe @1 of @2=Рецепт @1 из @2 +Burning time: @1=Время горения: @1 +Cooking time: @1=Время преготовления: @1 +Any item belonging to the group(s): @1=Любой элемент из группы: @1 +Recipe is too big to be displayed (@1x@2)=Рецепт слишком большой для показа (@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= diff --git a/locale/template b/locale/template new file mode 100644 index 0000000..d051c27 --- /dev/null +++ b/locale/template @@ -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= diff --git a/locale/template.pot b/locale/template.pot deleted file mode 100644 index 8f8470d..0000000 --- a/locale/template.pot +++ /dev/null @@ -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 , 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 \n" -"Language-Team: LANGUAGE \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 ""