From 015e49f32a8bd9a42e655aaaa98fd4694c9eb8ff Mon Sep 17 00:00:00 2001 From: 1F616EMO Date: Sun, 17 May 2026 09:34:48 +0800 Subject: Avoid translation across the first line of item descriptions Fixes :get_short_description() chopping translation escape sequences in half by separating the first line and the rest of item descriptions into two translatable strings. The number of line breaks are preserved. Workaround or fix of https://github.com/luanti-org/luanti/issues/12566. --- .../locale/advtrains_luaautomation.de.po | 43 ++++++++++++++++------ .../locale/advtrains_luaautomation.fr.po | 42 +++++++++++++++------ .../locale/advtrains_luaautomation.pot | 31 +++++++++++++--- .../locale/advtrains_luaautomation.zh_CN.po | 40 ++++++++++++++------ .../locale/advtrains_luaautomation.zh_TW.po | 40 ++++++++++++++------ advtrains_luaautomation/pcnaming.lua | 3 +- 6 files changed, 149 insertions(+), 50 deletions(-) (limited to 'advtrains_luaautomation') diff --git a/advtrains_luaautomation/locale/advtrains_luaautomation.de.po b/advtrains_luaautomation/locale/advtrains_luaautomation.de.po index 40a41f7..2cbb079 100644 --- a/advtrains_luaautomation/locale/advtrains_luaautomation.de.po +++ b/advtrains_luaautomation/locale/advtrains_luaautomation.de.po @@ -2,15 +2,15 @@ msgid "" msgstr "" "Project-Id-Version: advtrains\n" "Report-Msgid-Bugs-To: advtrains-discuss@lists.sr.ht\n" -"POT-Creation-Date: 2026-03-29 19:43+0200\n" -"PO-Revision-Date: 2025-06-11 23:13+0200\n" +"POT-Creation-Date: 2026-05-17 09:19+0800\n" +"PO-Revision-Date: 2026-05-17 09:29+0800\n" "Last-Translator: Y. Wang \n" "Language-Team: German\n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 3.2.2\n" +"X-Generator: Poedit 3.8\n" #: active_common.lua msgid "Clear Local Environment" @@ -88,6 +88,11 @@ msgstr "" "Umgebung '@1' erstellt. Nutze '/env_setup @2' um Initialisierungscode zu " "definieren, oder beginne, LuaATC-Komponenten einzubauen!" +#: chatcmds.lua +#, fuzzy +msgid "Default environment set to '@1'." +msgstr "Meldungen von '@1' abonniert." + #: chatcmds.lua msgid "Delete Env." msgstr "Umg. löschen" @@ -124,6 +129,10 @@ msgstr "" msgid "Name required!" msgstr "Name benötigt!" +#: chatcmds.lua +msgid "No avaliable environemnt! Create one with /env_create." +msgstr "" + #: chatcmds.lua msgid "No subscribers!" msgstr "Keine Abonnenten!" @@ -148,6 +157,11 @@ msgstr "" "UMGEBUNG @1 WIRKLICH LÖSCHEN? Geben Sie YES (in Großbuchstaben) ein. Um " "abzubrechen einfach das Formular schließen." +#: chatcmds.lua +#, fuzzy +msgid "Set or get your default LuaATC environment." +msgstr "Meldungen aus LuaATC-Umgebung abonnieren" + #: chatcmds.lua msgid "Set up and modify AdvTrains LuaAutomation environment" msgstr "LuaATC-Umgebung einstellen und bearbeiten" @@ -168,6 +182,15 @@ msgstr "Erfolgreich abgemeldet!" msgid "Unubscribe to the log of an Advtrains LuaATC environment" msgstr "Meldungen aus LuaATC-Umgebung nicht mehr empfangen" +#: chatcmds.lua +msgid "You're not online!" +msgstr "" + +#: chatcmds.lua +#, fuzzy +msgid "Your default environment is '@1'." +msgstr "Meldungen von '@1' abonniert." + #: environment.lua #, fuzzy msgid "LuaATC component" @@ -190,14 +213,12 @@ msgid "LuaATC Operation Panel" msgstr "LuaATC-Steuerpanel" #: pcnaming.lua -msgid "" -"Passive Component Naming Tool\n" -"\n" -"Right-click to name a passive component." -msgstr "" -"PC-Benennungswerkzeug\n" -"\n" -"Rechtsklick zur Benennung der passiven Komponente." +msgid "Passive Component Naming Tool" +msgstr "PC-Benennungswerkzeug" + +#: pcnaming.lua +msgid "Right-click to name a passive component." +msgstr "Rechtsklick zur Benennung der passiven Komponente." #: pcnaming.lua msgid "Set name of component (empty to clear)" diff --git a/advtrains_luaautomation/locale/advtrains_luaautomation.fr.po b/advtrains_luaautomation/locale/advtrains_luaautomation.fr.po index 8bb6988..aa83e34 100644 --- a/advtrains_luaautomation/locale/advtrains_luaautomation.fr.po +++ b/advtrains_luaautomation/locale/advtrains_luaautomation.fr.po @@ -2,15 +2,15 @@ msgid "" msgstr "" "Project-Id-Version: advtrains\n" "Report-Msgid-Bugs-To: advtrains-discuss@lists.sr.ht\n" -"POT-Creation-Date: 2026-03-29 19:43+0200\n" -"PO-Revision-Date: 2025-03-25 15:06+0100\n" +"POT-Creation-Date: 2026-05-17 09:19+0800\n" +"PO-Revision-Date: 2026-05-17 09:29+0800\n" "Last-Translator: Tanavit \n" "Language-Team: French\n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.4.2\n" +"X-Generator: Poedit 3.8\n" #: active_common.lua msgid "Clear Local Environment" @@ -85,6 +85,11 @@ msgid "" "initialization code, or start building LuaATC components!" msgstr "" +#: chatcmds.lua +#, fuzzy +msgid "Default environment set to '@1'." +msgstr "Composant LuaATC assigné à l'environnement '@1'" + #: chatcmds.lua msgid "Delete Env." msgstr "" @@ -119,6 +124,10 @@ msgstr "" msgid "Name required!" msgstr "" +#: chatcmds.lua +msgid "No avaliable environemnt! Create one with /env_create." +msgstr "" + #: chatcmds.lua msgid "No subscribers!" msgstr "" @@ -141,6 +150,10 @@ msgid "" "quit form to cancel." msgstr "" +#: chatcmds.lua +msgid "Set or get your default LuaATC environment." +msgstr "" + #: chatcmds.lua msgid "Set up and modify AdvTrains LuaAutomation environment" msgstr "" @@ -162,6 +175,15 @@ msgstr "" msgid "Unubscribe to the log of an Advtrains LuaATC environment" msgstr "" +#: chatcmds.lua +msgid "You're not online!" +msgstr "" + +#: chatcmds.lua +#, fuzzy +msgid "Your default environment is '@1'." +msgstr "Composant LuaATC assigné à l'environnement '@1'" + #: environment.lua #, fuzzy msgid "LuaATC component" @@ -184,14 +206,12 @@ msgid "LuaATC Operation Panel" msgstr "Panneau de commande de LuaATC" #: pcnaming.lua -msgid "" -"Passive Component Naming Tool\n" -"\n" -"Right-click to name a passive component." -msgstr "" -"Outil de nommage de composant passif\n" -"\n" -"Clic-Droit pour nommer un composant passif." +msgid "Passive Component Naming Tool" +msgstr "Outil de nommage de composant passif" + +#: pcnaming.lua +msgid "Right-click to name a passive component." +msgstr "Clic-Droit pour nommer un composant passif." #: pcnaming.lua msgid "Set name of component (empty to clear)" diff --git a/advtrains_luaautomation/locale/advtrains_luaautomation.pot b/advtrains_luaautomation/locale/advtrains_luaautomation.pot index 5c19f64..b9dcc71 100644 --- a/advtrains_luaautomation/locale/advtrains_luaautomation.pot +++ b/advtrains_luaautomation/locale/advtrains_luaautomation.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: advtrains_luaautomation\n" "Report-Msgid-Bugs-To: advtrains-discuss@lists.sr.ht\n" -"POT-Creation-Date: 2026-03-29 19:43+0200\n" +"POT-Creation-Date: 2026-05-17 09:19+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -155,6 +155,26 @@ msgstr "" msgid "No subscribers!" msgstr "" +#: chatcmds.lua +msgid "Set or get your default LuaATC environment." +msgstr "" + +#: chatcmds.lua +msgid "You're not online!" +msgstr "" + +#: chatcmds.lua +msgid "Your default environment is '@1'." +msgstr "" + +#: chatcmds.lua +msgid "No avaliable environemnt! Create one with /env_create." +msgstr "" + +#: chatcmds.lua +msgid "Default environment set to '@1'." +msgstr "" + #: chatcmds.lua msgid "Environment deleted!" msgstr "" @@ -184,10 +204,11 @@ msgid "LuaATC Operation Panel" msgstr "" #: pcnaming.lua -msgid "" -"Passive Component Naming Tool\n" -"\n" -"Right-click to name a passive component." +msgid "Passive Component Naming Tool" +msgstr "" + +#: pcnaming.lua +msgid "Right-click to name a passive component." msgstr "" #: pcnaming.lua diff --git a/advtrains_luaautomation/locale/advtrains_luaautomation.zh_CN.po b/advtrains_luaautomation/locale/advtrains_luaautomation.zh_CN.po index 2503f4b..ad38174 100644 --- a/advtrains_luaautomation/locale/advtrains_luaautomation.zh_CN.po +++ b/advtrains_luaautomation/locale/advtrains_luaautomation.zh_CN.po @@ -2,15 +2,15 @@ msgid "" msgstr "" "Project-Id-Version: advtrains\n" "Report-Msgid-Bugs-To: advtrains-discuss@lists.sr.ht\n" -"POT-Creation-Date: 2026-03-29 19:43+0200\n" -"PO-Revision-Date: 2023-10-09 11:24+0200\n" +"POT-Creation-Date: 2026-05-17 09:19+0800\n" +"PO-Revision-Date: 2026-05-17 09:29+0800\n" "Last-Translator: Y. Wang \n" "Language-Team: Chinese (Simplified)\n" "Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 3.3.2\n" +"X-Generator: Poedit 3.8\n" #: active_common.lua msgid "Clear Local Environment" @@ -85,6 +85,10 @@ msgid "" "initialization code, or start building LuaATC components!" msgstr "" +#: chatcmds.lua +msgid "Default environment set to '@1'." +msgstr "" + #: chatcmds.lua msgid "Delete Env." msgstr "" @@ -119,6 +123,10 @@ msgstr "" msgid "Name required!" msgstr "" +#: chatcmds.lua +msgid "No avaliable environemnt! Create one with /env_create." +msgstr "" + #: chatcmds.lua msgid "No subscribers!" msgstr "" @@ -141,6 +149,10 @@ msgid "" "quit form to cancel." msgstr "" +#: chatcmds.lua +msgid "Set or get your default LuaATC environment." +msgstr "" + #: chatcmds.lua msgid "Set up and modify AdvTrains LuaAutomation environment" msgstr "" @@ -161,6 +173,14 @@ msgstr "" msgid "Unubscribe to the log of an Advtrains LuaATC environment" msgstr "" +#: chatcmds.lua +msgid "You're not online!" +msgstr "" + +#: chatcmds.lua +msgid "Your default environment is '@1'." +msgstr "" + #: environment.lua #, fuzzy msgid "LuaATC component" @@ -181,14 +201,12 @@ msgid "LuaATC Operation Panel" msgstr "" #: pcnaming.lua -msgid "" -"Passive Component Naming Tool\n" -"\n" -"Right-click to name a passive component." -msgstr "" -"被动元件命名工具\n" -"\n" -"右键单击命名所选元件。" +msgid "Passive Component Naming Tool" +msgstr "被动元件命名工具" + +#: pcnaming.lua +msgid "Right-click to name a passive component." +msgstr "右键单击命名所选元件。" #: pcnaming.lua msgid "Set name of component (empty to clear)" diff --git a/advtrains_luaautomation/locale/advtrains_luaautomation.zh_TW.po b/advtrains_luaautomation/locale/advtrains_luaautomation.zh_TW.po index 0203dd4..76795c6 100644 --- a/advtrains_luaautomation/locale/advtrains_luaautomation.zh_TW.po +++ b/advtrains_luaautomation/locale/advtrains_luaautomation.zh_TW.po @@ -2,15 +2,15 @@ msgid "" msgstr "" "Project-Id-Version: advtrains\n" "Report-Msgid-Bugs-To: advtrains-discuss@lists.sr.ht\n" -"POT-Creation-Date: 2026-03-29 19:43+0200\n" -"PO-Revision-Date: 2023-10-09 11:31+0200\n" +"POT-Creation-Date: 2026-05-17 09:19+0800\n" +"PO-Revision-Date: 2026-05-17 09:29+0800\n" "Last-Translator: Y. Wang \n" "Language-Team: Chinese (Traditional)\n" "Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 3.3.2\n" +"X-Generator: Poedit 3.8\n" #: active_common.lua msgid "Clear Local Environment" @@ -85,6 +85,10 @@ msgid "" "initialization code, or start building LuaATC components!" msgstr "" +#: chatcmds.lua +msgid "Default environment set to '@1'." +msgstr "" + #: chatcmds.lua msgid "Delete Env." msgstr "" @@ -119,6 +123,10 @@ msgstr "" msgid "Name required!" msgstr "" +#: chatcmds.lua +msgid "No avaliable environemnt! Create one with /env_create." +msgstr "" + #: chatcmds.lua msgid "No subscribers!" msgstr "" @@ -141,6 +149,10 @@ msgid "" "quit form to cancel." msgstr "" +#: chatcmds.lua +msgid "Set or get your default LuaATC environment." +msgstr "" + #: chatcmds.lua msgid "Set up and modify AdvTrains LuaAutomation environment" msgstr "" @@ -161,6 +173,14 @@ msgstr "" msgid "Unubscribe to the log of an Advtrains LuaATC environment" msgstr "" +#: chatcmds.lua +msgid "You're not online!" +msgstr "" + +#: chatcmds.lua +msgid "Your default environment is '@1'." +msgstr "" + #: environment.lua #, fuzzy msgid "LuaATC component" @@ -181,14 +201,12 @@ msgid "LuaATC Operation Panel" msgstr "" #: pcnaming.lua -msgid "" -"Passive Component Naming Tool\n" -"\n" -"Right-click to name a passive component." -msgstr "" -"被動元件命名工具\n" -"\n" -"右鍵單擊命名所選元件。" +msgid "Passive Component Naming Tool" +msgstr "被動元件命名工具" + +#: pcnaming.lua +msgid "Right-click to name a passive component." +msgstr "右鍵單擊命名所選元件。" #: pcnaming.lua msgid "Set name of component (empty to clear)" diff --git a/advtrains_luaautomation/pcnaming.lua b/advtrains_luaautomation/pcnaming.lua index 7c7f0c9..6f9c2f2 100644 --- a/advtrains_luaautomation/pcnaming.lua +++ b/advtrains_luaautomation/pcnaming.lua @@ -29,7 +29,8 @@ end local pcrename = {} minetest.register_craftitem("advtrains_luaautomation:pcnaming",{ - description = S("Passive Component Naming Tool\n\nRight-click to name a passive component."), + description = S("Passive Component Naming Tool") .. "\n\n" .. S("Right-click to name a passive component."), + short_description = S("Passive Component Naming Tool"), groups = {cracky=1}, -- key=name, value=rating; rating=1..3. inventory_image = "atlatc_pcnaming.png", wield_image = "atlatc_pcnaming.png", -- cgit v1.2.3