From 8e9ea34ae87f545660538bbd0a4472cc3122b978 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Thu, 15 Sep 2022 10:56:01 +0200 Subject: [PATCH] Elaborate the use of NS() --- register.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/register.lua b/register.lua index 1fb58b6..1f72bfe 100644 --- a/register.lua +++ b/register.lua @@ -243,6 +243,9 @@ local function stack_image_button(x, y, w, h, buttonname_prefix, item) return button end +-- The recipe text contains parameters, hence they can yet not be translated. +-- Instead, use a dummy translation call so that it can be picked up by the +-- static parsing of the translation string update script local recipe_text = { recipe = NS("Recipe @1 of @2"), usage = NS("Usage @1 of @2"),