From 211c02abce3d61af944b309ada4daaf4beceac1c Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Thu, 10 Dec 2020 01:24:11 +0100 Subject: [PATCH] Add strings to locale --- init.lua | 12 ++++++------ locale/craftguide.fr.tr | 3 +++ locale/template | 3 +++ 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/init.lua b/init.lua index 55de07f..1117a12 100644 --- a/init.lua +++ b/init.lua @@ -883,15 +883,15 @@ local function craft_stack(player, pname, data, _f) if inv:room_for_item("main", stack) then inv:add_item("main", stack) - msg(pname, sprintf("%s added to your inventory!", message)) + msg(pname, sprintf(S"%s added to your inventory", message)) else - local dir = player:get_look_dir() - local ppos = player:get_pos() - ppos.y = ppos.y + 1.625 + local dir = player:get_look_dir() + local ppos = player:get_pos() + ppos.y = ppos.y + 1.625 local look_at = vec_add(ppos, vec_mul(dir, 1)) core.add_item(look_at, stack) - msg(pname, sprintf("%s crafted!", message)) + msg(pname, sprintf(S"%s crafted", message)) end end @@ -1365,7 +1365,7 @@ local function get_export_fs(fs, data, panel, is_recipe, is_usage, max_stacks_rc "craftguide_export.png", "craftguide_export.png"), fmt("image_button", _ROWS + 7.35, _H + 0.2, 0.45, 0.45, "", sprintf("export_%s", name), ""), - sprintf("tooltip[export_%s;%s]", name, ES"Craft this item")) + sprintf("tooltip[export_%s;%s]", name, ES"Craft this stack")) if not show_export then return end diff --git a/locale/craftguide.fr.tr b/locale/craftguide.fr.tr index 5fb26ad..105a7e2 100644 --- a/locale/craftguide.fr.tr +++ b/locale/craftguide.fr.tr @@ -62,3 +62,6 @@ Unmark this item=Enlever des favoris. Cannot mark this item. Limit of bookmarks reached.=Impossible de mettre cet item en favori. Limite des favoris atteinte. Only drop if using one of these tools: @1=Tombe seulement si détruit avec un de ces outils : @1 Only drop if using this tool: @1=Tombe seulement si détruit avec cet outil : @1 +Craft this stack=Fabriquer cet objet +@1 added to your inventory=@1 ajouté(s) à votre inventaire +@1 crafted=@1 fabriqué(s) diff --git a/locale/template b/locale/template index 9700521..d51aa59 100644 --- a/locale/template +++ b/locale/template @@ -62,3 +62,6 @@ Unmark this item= Cannot mark this item. Limit of bookmarks reached.= Only drop if using one of these tools: @1= Only drop if using this tool: @1= +Craft this stack= +@1 added to your inventory= +@1 crafted=