diff options
author | Wuzzy <almikes@aol.com> | 2016-08-06 16:34:16 +0200 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2016-08-06 16:34:16 +0200 |
commit | 8ffc8e9323723b8b96b6a0495ac9be8d0d701f9b (patch) | |
tree | eab8f80bddb874e2e4950ececb323f181fc8b9e2 /register.lua | |
parent | bb19ab97feb6481f0f7f9dd35ab3f2946b2f0a9c (diff) |
Fix translation strings for recipe alternations
Diffstat (limited to 'register.lua')
-rw-r--r-- | register.lua | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/register.lua b/register.lua index fdc39a3..8cc9123 100644 --- a/register.lua +++ b/register.lua @@ -195,8 +195,8 @@ local function stack_image_button(x, y, w, h, buttonname_prefix, item) end local recipe_text = { - recipe = "Recipe", - usage = "Usage", + recipe = "Recipe %d of %d", + usage = "Usage %d of %d", } local no_recipe_text = { recipe = "No recipes", @@ -310,9 +310,8 @@ unified_inventory.register_page("craftguide", { end if alternates and alternates > 1 then - formspec = formspec.."label[5.5,"..(formspecy + 1.6)..";"..S(recipe_text[dir]).." " - ..tostring(alternate).." of " - ..tostring(alternates).."]" + formspec = formspec.."label[5.5,"..(formspecy + 1.6)..";" + ..string.format(S(recipe_text[dir]), alternate, alternates).."]" .."button[5.5,"..(formspecy + 2)..";2,1;alternate;" .. S("Alternate") .. "]" end return {formspec = formspec} |