aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorY. Wang <yw05@forksworld.de>2023-10-06 23:24:45 +0200
committerY. Wang <yw05@forksworld.de>2023-10-06 23:24:45 +0200
commit0014ba5517882bcc3c4dca9b9d313bd98a082ba4 (patch)
treed8161a32c2852b214c440e782f6210e12931d572
parent26540daa97df6b1f883227cdabfcdbb7b0616512 (diff)
downloadadvtrains-0014ba5517882bcc3c4dca9b9d313bd98a082ba4.tar.gz
advtrains-0014ba5517882bcc3c4dca9b9d313bd98a082ba4.tar.bz2
advtrains-0014ba5517882bcc3c4dca9b9d313bd98a082ba4.zip
Setup more strings for localization
-rw-r--r--advtrains/craft_items.lua2
-rw-r--r--advtrains/po/advtrains.pot119
-rw-r--r--advtrains/po/de.po131
-rw-r--r--advtrains/po/fr.po133
-rw-r--r--advtrains/po/zh_CN.po129
-rw-r--r--advtrains/po/zh_TW.po129
-rw-r--r--advtrains/protection.lua8
-rw-r--r--advtrains_interlocking/tsr_rail.lua12
-rw-r--r--advtrains_line_automation/stoprail.lua10
-rw-r--r--advtrains_luaautomation/active_common.lua20
-rw-r--r--advtrains_luaautomation/atc_rail.lua2
-rw-r--r--advtrains_luaautomation/init.lua6
-rw-r--r--advtrains_luaautomation/mesecon_controller.lua3
-rw-r--r--advtrains_luaautomation/operation_panel.lua3
-rw-r--r--advtrains_luaautomation/pcnaming.lua8
15 files changed, 665 insertions, 50 deletions
diff --git a/advtrains/craft_items.lua b/advtrains/craft_items.lua
index 0e693eb..1188b64 100644
--- a/advtrains/craft_items.lua
+++ b/advtrains/craft_items.lua
@@ -6,7 +6,7 @@ core.register_craftitem("advtrains:boiler", {
core.register_craftitem("advtrains:driver_cab", {
- description = attrans("driver's cab"),
+ description = attrans("Driver's cab"),
inventory_image = "advtrains_driver_cab.png",
})
diff --git a/advtrains/po/advtrains.pot b/advtrains/po/advtrains.pot
index 5135f45..2b1b5d8 100644
--- a/advtrains/po/advtrains.pot
+++ b/advtrains/po/advtrains.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: advtrains\n"
"Report-Msgid-Bugs-To: advtrains-discuss@lists.sr.ht\n"
-"POT-Creation-Date: 2023-10-06 12:28+0200\n"
+"POT-Creation-Date: 2023-10-06 23:24+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -40,6 +40,7 @@ msgid "Digiline channel"
msgstr ""
#: advtrains/atc.lua:189 advtrains_line_automation/stoprail.lua:65
+#: advtrains_luaautomation/active_common.lua:48
msgid "Save"
msgstr ""
@@ -137,7 +138,7 @@ msgid "Boiler"
msgstr ""
#: advtrains/craft_items.lua:9
-msgid "driver's cab"
+msgid "Driver's cab"
msgstr ""
#: advtrains/craft_items.lua:15
@@ -164,6 +165,24 @@ msgstr ""
msgid "@1 Platform (low, 45 degree)"
msgstr ""
+#: advtrains/protection.lua:7
+msgid "Can place, remove and operate trains"
+msgstr ""
+
+#: advtrains/protection.lua:12
+msgid ""
+"Can place, remove and operate any train, regardless of owner, whitelist, or "
+"protection"
+msgstr ""
+
+#: advtrains/protection.lua:18
+msgid "Can place and dig tracks in unprotected areas"
+msgstr ""
+
+#: advtrains/protection.lua:24
+msgid "Can operate turnouts and signals in unprotected areas"
+msgstr ""
+
#: advtrains/protection.lua:148
msgid ""
"You are not allowed to build near tracks without the track_builder privilege."
@@ -372,6 +391,31 @@ msgstr ""
msgid "You are not allowed to access the driver stand."
msgstr ""
+#: advtrains_interlocking/tsr_rail.lua:13
+msgid "Point speed restriction: @1"
+msgstr ""
+
+#: advtrains_interlocking/tsr_rail.lua:14
+msgid "Set point speed restriction:"
+msgstr ""
+
+#: advtrains_interlocking/tsr_rail.lua:30
+msgid "You are not allowed to modify this track without the @1 privilege."
+msgstr ""
+
+#: advtrains_interlocking/tsr_rail.lua:34
+msgid "You are not allowed to modify this protected track."
+msgstr ""
+
+#: advtrains_interlocking/tsr_rail.lua:64
+msgid "Point Speed Restriction Track"
+msgstr ""
+
+#: advtrains_line_automation/stoprail.lua:31
+#: advtrains_line_automation/stoprail.lua:76
+msgid "You are not allowed to modify this track."
+msgstr ""
+
#: advtrains_line_automation/stoprail.lua:54
msgid "Station Code"
msgstr ""
@@ -409,13 +453,82 @@ msgstr ""
msgid "Kick out passengers"
msgstr ""
-#: advtrains_luaautomation/pcnaming.lua:26
+#: advtrains_line_automation/stoprail.lua:97
+msgid "Station code \"@1\" already exists and is owned by @2."
+msgstr ""
+
+#: advtrains_line_automation/stoprail.lua:111
+msgid "This station is owned by @1. You are not allowed to edit its name."
+msgstr ""
+
+#: advtrains_line_automation/stoprail.lua:221
+msgid "Station/Stop Track"
+msgstr ""
+
+#: advtrains_luaautomation/active_common.lua:17
+msgid "Unconfigured LuaATC component"
+msgstr ""
+
+#: advtrains_luaautomation/active_common.lua:46
+msgid "LuaATC Environment"
+msgstr ""
+
+#: advtrains_luaautomation/active_common.lua:49
+msgid "Clear Local Environment"
+msgstr ""
+
+#: advtrains_luaautomation/active_common.lua:50
+msgid "Code"
+msgstr ""
+
+#: advtrains_luaautomation/active_common.lua:64
+msgid ""
+"You are not allowed to modify this LuaATC component without the @1 privilege."
+msgstr ""
+
+#: advtrains_luaautomation/active_common.lua:94
+msgid "LuaATC component assigned to environment '@1'"
+msgstr ""
+
+#: advtrains_luaautomation/active_common.lua:96
+msgid "LuaATC component assigned to an invalid environment"
+msgstr ""
+
+#: advtrains_luaautomation/active_common.lua:171
+msgid "LuaATC component with error: @1"
+msgstr ""
+
+#: advtrains_luaautomation/init.lua:13
+msgid ""
+"Can place and modify LuaATC components, including execute potentially "
+"harmful Lua code"
+msgstr ""
+
+#: advtrains_luaautomation/mesecon_controller.lua:211
+msgid "LuaATC Mesecon Controller"
+msgstr ""
+
+#: advtrains_luaautomation/operation_panel.lua:11
+msgid "LuaATC Operation Panel"
+msgstr ""
+
+#: advtrains_luaautomation/pcnaming.lua:28
msgid ""
"Passive Component Naming Tool\n"
"\n"
"Right-click to name a passive component."
msgstr ""
+#: advtrains_luaautomation/pcnaming.lua:39
+msgid ""
+"You are not allowed to name LuaATC passive components without the @1 "
+"privilege."
+msgstr ""
+
+#: advtrains_luaautomation/pcnaming.lua:62
+msgid "Set name of component (empty to clear)"
+msgstr ""
+
#: advtrains_train_industrial/init.lua:10
#: advtrains_train_industrial/init.lua:49 advtrains_train_steam/init.lua:20
#: advtrains_train_steam/init.lua:91
diff --git a/advtrains/po/de.po b/advtrains/po/de.po
index 60afcb0..502bbd4 100644
--- a/advtrains/po/de.po
+++ b/advtrains/po/de.po
@@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: advtrains\n"
"Report-Msgid-Bugs-To: advtrains-discuss@lists.sr.ht\n"
-"POT-Creation-Date: 2023-10-06 12:27+0200\n"
+"POT-Creation-Date: 2023-10-06 23:24+0200\n"
"PO-Revision-Date: 2023-10-06 12:28+0200\n"
"Last-Translator: Y. Wang <yw05@forksworld.de>\n"
"Language-Team: German\n"
@@ -37,6 +37,7 @@ msgid "Digiline channel"
msgstr "Digiline-Kanal"
#: advtrains/atc.lua:189 advtrains_line_automation/stoprail.lua:65
+#: advtrains_luaautomation/active_common.lua:48
msgid "Save"
msgstr "Speichern"
@@ -150,8 +151,9 @@ msgid "Boiler"
msgstr ""
#: advtrains/craft_items.lua:9
-msgid "driver's cab"
-msgstr ""
+#, fuzzy
+msgid "Driver's cab"
+msgstr "Führerstand"
#: advtrains/craft_items.lua:15
msgid "Wheel"
@@ -177,6 +179,24 @@ msgstr "Hoher @1-Bahnsteig (45°)"
msgid "@1 Platform (low, 45 degree)"
msgstr "Niedriger @1-Bahnsteig (45°)"
+#: advtrains/protection.lua:7
+msgid "Can place, remove and operate trains"
+msgstr ""
+
+#: advtrains/protection.lua:12
+msgid ""
+"Can place, remove and operate any train, regardless of owner, whitelist, or "
+"protection"
+msgstr ""
+
+#: advtrains/protection.lua:18
+msgid "Can place and dig tracks in unprotected areas"
+msgstr ""
+
+#: advtrains/protection.lua:24
+msgid "Can operate turnouts and signals in unprotected areas"
+msgstr ""
+
#: advtrains/protection.lua:148
msgid ""
"You are not allowed to build near tracks without the track_builder privilege."
@@ -402,6 +422,34 @@ msgstr ""
msgid "You are not allowed to access the driver stand."
msgstr "Sie haben keinen Zugang zum Führerstand."
+#: advtrains_interlocking/tsr_rail.lua:13
+msgid "Point speed restriction: @1"
+msgstr ""
+
+#: advtrains_interlocking/tsr_rail.lua:14
+msgid "Set point speed restriction:"
+msgstr ""
+
+#: advtrains_interlocking/tsr_rail.lua:30
+#, fuzzy
+msgid "You are not allowed to modify this track without the @1 privilege."
+msgstr "Sie dürfen ohne das „track_builder“-Privileg kein Gleis bauen."
+
+#: advtrains_interlocking/tsr_rail.lua:34
+#, fuzzy
+msgid "You are not allowed to modify this protected track."
+msgstr "Sie dürfen an geschützten Stellen kein Gleis bauen."
+
+#: advtrains_interlocking/tsr_rail.lua:64
+msgid "Point Speed Restriction Track"
+msgstr ""
+
+#: advtrains_line_automation/stoprail.lua:31
+#: advtrains_line_automation/stoprail.lua:76
+#, fuzzy
+msgid "You are not allowed to modify this track."
+msgstr "Sie haben keinen Zugang zum Führerstand."
+
#: advtrains_line_automation/stoprail.lua:54
msgid "Station Code"
msgstr "Code der Haltestelle"
@@ -439,7 +487,71 @@ msgstr "Zug Umkehren"
msgid "Kick out passengers"
msgstr "Fahrgäste zum Ausstieg zwingen"
-#: advtrains_luaautomation/pcnaming.lua:26
+#: advtrains_line_automation/stoprail.lua:97
+msgid "Station code \"@1\" already exists and is owned by @2."
+msgstr ""
+
+#: advtrains_line_automation/stoprail.lua:111
+#, fuzzy
+msgid "This station is owned by @1. You are not allowed to edit its name."
+msgstr "Dieser Waggon gehört @1, Sie dürfen ihn nicht abbauen."
+
+#: advtrains_line_automation/stoprail.lua:221
+#, fuzzy
+msgid "Station/Stop Track"
+msgstr "Name der Haltestelle"
+
+#: advtrains_luaautomation/active_common.lua:17
+#, fuzzy
+msgid "Unconfigured LuaATC component"
+msgstr "Nicht konfiguiertes Zugbeeinflussungsgleis"
+
+#: advtrains_luaautomation/active_common.lua:46
+msgid "LuaATC Environment"
+msgstr ""
+
+#: advtrains_luaautomation/active_common.lua:49
+msgid "Clear Local Environment"
+msgstr ""
+
+#: advtrains_luaautomation/active_common.lua:50
+msgid "Code"
+msgstr ""
+
+#: advtrains_luaautomation/active_common.lua:64
+#, fuzzy
+msgid ""
+"You are not allowed to modify this LuaATC component without the @1 privilege."
+msgstr "Sie dürfen ohne das „track_builder“-Privileg kein Gleis bauen."
+
+#: advtrains_luaautomation/active_common.lua:94
+msgid "LuaATC component assigned to environment '@1'"
+msgstr ""
+
+#: advtrains_luaautomation/active_common.lua:96
+msgid "LuaATC component assigned to an invalid environment"
+msgstr ""
+
+#: advtrains_luaautomation/active_common.lua:171
+msgid "LuaATC component with error: @1"
+msgstr ""
+
+#: advtrains_luaautomation/init.lua:13
+msgid ""
+"Can place and modify LuaATC components, including execute potentially "
+"harmful Lua code"
+msgstr ""
+
+#: advtrains_luaautomation/mesecon_controller.lua:211
+#, fuzzy
+msgid "LuaATC Mesecon Controller"
+msgstr "Zugbeeinflussungsgleis"
+
+#: advtrains_luaautomation/operation_panel.lua:11
+msgid "LuaATC Operation Panel"
+msgstr ""
+
+#: advtrains_luaautomation/pcnaming.lua:28
msgid ""
"Passive Component Naming Tool\n"
"\n"
@@ -449,6 +561,17 @@ msgstr ""
"\n"
"Rechtsklick zur Benennung der passiven Komponente."
+#: advtrains_luaautomation/pcnaming.lua:39
+#, fuzzy
+msgid ""
+"You are not allowed to name LuaATC passive components without the @1 "
+"privilege."
+msgstr "Sie dürfen ohne das „train_operator“-Privileg keine Züge ankuppeln."
+
+#: advtrains_luaautomation/pcnaming.lua:62
+msgid "Set name of component (empty to clear)"
+msgstr ""
+
#: advtrains_train_industrial/init.lua:10
#: advtrains_train_industrial/init.lua:49 advtrains_train_steam/init.lua:20
#: advtrains_train_steam/init.lua:91
diff --git a/advtrains/po/fr.po b/advtrains/po/fr.po
index fbebfdd..d392fca 100644
--- a/advtrains/po/fr.po
+++ b/advtrains/po/fr.po
@@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: advtrains\n"
"Report-Msgid-Bugs-To: advtrains-discuss@lists.sr.ht\n"
-"POT-Creation-Date: 2023-10-06 12:28+0200\n"
+"POT-Creation-Date: 2023-10-06 23:24+0200\n"
"PO-Revision-Date: 2022-07-05 10:11+0200\n"
"Last-Translator: Tanavit <tanavit@posto.ovh>\n"
"Language-Team: French\n"
@@ -36,6 +36,7 @@ msgid "Digiline channel"
msgstr "Canal Digiline"
#: advtrains/atc.lua:189 advtrains_line_automation/stoprail.lua:65
+#: advtrains_luaautomation/active_common.lua:48
msgid "Save"
msgstr "Sauvegarder"
@@ -145,7 +146,8 @@ msgid "Boiler"
msgstr "Chaudière à vapeur"
#: advtrains/craft_items.lua:9
-msgid "driver's cab"
+#, fuzzy
+msgid "Driver's cab"
msgstr "Cabine de pilotage"
#: advtrains/craft_items.lua:15
@@ -172,6 +174,24 @@ msgstr "Quai @1 (haut, 45°)"
msgid "@1 Platform (low, 45 degree)"
msgstr "Quai @1 (bas, 45°)"
+#: advtrains/protection.lua:7
+msgid "Can place, remove and operate trains"
+msgstr ""
+
+#: advtrains/protection.lua:12
+msgid ""
+"Can place, remove and operate any train, regardless of owner, whitelist, or "
+"protection"
+msgstr ""
+
+#: advtrains/protection.lua:18
+msgid "Can place and dig tracks in unprotected areas"
+msgstr ""
+
+#: advtrains/protection.lua:24
+msgid "Can operate turnouts and signals in unprotected areas"
+msgstr ""
+
#: advtrains/protection.lua:148
msgid ""
"You are not allowed to build near tracks without the track_builder privilege."
@@ -407,6 +427,35 @@ msgstr ""
msgid "You are not allowed to access the driver stand."
msgstr ""
+#: advtrains_interlocking/tsr_rail.lua:13
+msgid "Point speed restriction: @1"
+msgstr ""
+
+#: advtrains_interlocking/tsr_rail.lua:14
+msgid "Set point speed restriction:"
+msgstr ""
+
+#: advtrains_interlocking/tsr_rail.lua:30
+#, fuzzy
+msgid "You are not allowed to modify this track without the @1 privilege."
+msgstr ""
+"Vous ne pouvez pas construire une voie sans le privilège \"track_builder\""
+
+#: advtrains_interlocking/tsr_rail.lua:34
+#, fuzzy
+msgid "You are not allowed to modify this protected track."
+msgstr "Vous ne pouvez pas construire une voie à cet emplacement protégé"
+
+#: advtrains_interlocking/tsr_rail.lua:64
+msgid "Point Speed Restriction Track"
+msgstr ""
+
+#: advtrains_line_automation/stoprail.lua:31
+#: advtrains_line_automation/stoprail.lua:76
+#, fuzzy
+msgid "You are not allowed to modify this track."
+msgstr "Vous ne pouvez pas construire une voie à cet emplacement protégé"
+
#: advtrains_line_automation/stoprail.lua:54
msgid "Station Code"
msgstr "Code de Station"
@@ -444,7 +493,72 @@ msgstr ""
msgid "Kick out passengers"
msgstr ""
-#: advtrains_luaautomation/pcnaming.lua:26
+#: advtrains_line_automation/stoprail.lua:97
+msgid "Station code \"@1\" already exists and is owned by @2."
+msgstr ""
+
+#: advtrains_line_automation/stoprail.lua:111
+#, fuzzy
+msgid "This station is owned by @1. You are not allowed to edit its name."
+msgstr "Ce wagon est la propriété de @1, vous ne pouvez pas le détruire."
+
+#: advtrains_line_automation/stoprail.lua:221
+#, fuzzy
+msgid "Station/Stop Track"
+msgstr "Nom de Station"
+
+#: advtrains_luaautomation/active_common.lua:17
+#, fuzzy
+msgid "Unconfigured LuaATC component"
+msgstr "Controlleur ATC, non-configuré "
+
+#: advtrains_luaautomation/active_common.lua:46
+msgid "LuaATC Environment"
+msgstr ""
+
+#: advtrains_luaautomation/active_common.lua:49
+msgid "Clear Local Environment"
+msgstr ""
+
+#: advtrains_luaautomation/active_common.lua:50
+msgid "Code"
+msgstr ""
+
+#: advtrains_luaautomation/active_common.lua:64
+#, fuzzy
+msgid ""
+"You are not allowed to modify this LuaATC component without the @1 privilege."
+msgstr ""
+"Vous ne pouvez pas construire une voie sans le privilège \"track_builder\""
+
+#: advtrains_luaautomation/active_common.lua:94
+msgid "LuaATC component assigned to environment '@1'"
+msgstr ""
+
+#: advtrains_luaautomation/active_common.lua:96
+msgid "LuaATC component assigned to an invalid environment"
+msgstr ""
+
+#: advtrains_luaautomation/active_common.lua:171
+msgid "LuaATC component with error: @1"
+msgstr ""
+
+#: advtrains_luaautomation/init.lua:13
+msgid ""
+"Can place and modify LuaATC components, including execute potentially "
+"harmful Lua code"
+msgstr ""
+
+#: advtrains_luaautomation/mesecon_controller.lua:211
+#, fuzzy
+msgid "LuaATC Mesecon Controller"
+msgstr "Controlleur ATC"
+
+#: advtrains_luaautomation/operation_panel.lua:11
+msgid "LuaATC Operation Panel"
+msgstr ""
+
+#: advtrains_luaautomation/pcnaming.lua:28
msgid ""
"Passive Component Naming Tool\n"
"\n"
@@ -454,6 +568,19 @@ msgstr ""
"\n"
"Clic-Droit pour nommer un composant passif."
+#: advtrains_luaautomation/pcnaming.lua:39
+#, fuzzy
+msgid ""
+"You are not allowed to name LuaATC passive components without the @1 "
+"privilege."
+msgstr ""
+"Vous ne pouvez pas construire à proximité d'une voie sans le privilège "
+"\"track_builder\" (?)"
+
+#: advtrains_luaautomation/pcnaming.lua:62
+msgid "Set name of component (empty to clear)"
+msgstr ""
+
#: advtrains_train_industrial/init.lua:10
#: advtrains_train_industrial/init.lua:49 advtrains_train_steam/init.lua:20
#: advtrains_train_steam/init.lua:91
diff --git a/advtrains/po/zh_CN.po b/advtrains/po/zh_CN.po
index f6f9acc..0f733c5 100644
--- a/advtrains/po/zh_CN.po
+++ b/advtrains/po/zh_CN.po
@@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: advtrains\n"
"Report-Msgid-Bugs-To: advtrains-discuss@lists.sr.ht\n"
-"POT-Creation-Date: 2023-10-06 12:28+0200\n"
+"POT-Creation-Date: 2023-10-06 23:24+0200\n"
"PO-Revision-Date: 2023-10-06 12:31+0200\n"
"Last-Translator: Y. Wang <yw05@forksworld.de>\n"
"Language-Team: Chinese (Simplified)\n"
@@ -38,6 +38,7 @@ msgid "Digiline channel"
msgstr "Digiline 频道"
#: advtrains/atc.lua:189 advtrains_line_automation/stoprail.lua:65
+#: advtrains_luaautomation/active_common.lua:48
msgid "Save"
msgstr "保存"
@@ -139,7 +140,8 @@ msgid "Boiler"
msgstr "锅炉"
#: advtrains/craft_items.lua:9
-msgid "driver's cab"
+#, fuzzy
+msgid "Driver's cab"
msgstr "驾驶室"
#: advtrains/craft_items.lua:15
@@ -166,6 +168,24 @@ msgstr "较高的@1站台 (45°)"
msgid "@1 Platform (low, 45 degree)"
msgstr "较低的@1站台 (45°)"
+#: advtrains/protection.lua:7
+msgid "Can place, remove and operate trains"
+msgstr ""
+
+#: advtrains/protection.lua:12
+msgid ""
+"Can place, remove and operate any train, regardless of owner, whitelist, or "
+"protection"
+msgstr ""
+
+#: advtrains/protection.lua:18
+msgid "Can place and dig tracks in unprotected areas"
+msgstr ""
+
+#: advtrains/protection.lua:24
+msgid "Can operate turnouts and signals in unprotected areas"
+msgstr ""
+
#: advtrains/protection.lua:148
msgid ""
"You are not allowed to build near tracks without the track_builder privilege."
@@ -380,6 +400,34 @@ msgstr "车门已关闭,请使用潜行+右键单击下车。"
msgid "You are not allowed to access the driver stand."
msgstr ""
+#: advtrains_interlocking/tsr_rail.lua:13
+msgid "Point speed restriction: @1"
+msgstr ""
+
+#: advtrains_interlocking/tsr_rail.lua:14
+msgid "Set point speed restriction:"
+msgstr ""
+
+#: advtrains_interlocking/tsr_rail.lua:30
+#, fuzzy
+msgid "You are not allowed to modify this track without the @1 privilege."
+msgstr "您没有“train_operator”权限,不能在这里建造铁路。"
+
+#: advtrains_interlocking/tsr_rail.lua:34
+#, fuzzy
+msgid "You are not allowed to modify this protected track."
+msgstr "这里已被保护,您不能在这里建造铁路。"
+
+#: advtrains_interlocking/tsr_rail.lua:64
+msgid "Point Speed Restriction Track"
+msgstr ""
+
+#: advtrains_line_automation/stoprail.lua:31
+#: advtrains_line_automation/stoprail.lua:76
+#, fuzzy
+msgid "You are not allowed to modify this track."
+msgstr "这里已被保护,您不能在这里建造铁路。"
+
#: advtrains_line_automation/stoprail.lua:54
msgid "Station Code"
msgstr "车站代码"
@@ -417,7 +465,71 @@ msgstr ""
msgid "Kick out passengers"
msgstr "踢出乘客"
-#: advtrains_luaautomation/pcnaming.lua:26
+#: advtrains_line_automation/stoprail.lua:97
+msgid "Station code \"@1\" already exists and is owned by @2."
+msgstr ""
+
+#: advtrains_line_automation/stoprail.lua:111
+#, fuzzy
+msgid "This station is owned by @1. You are not allowed to edit its name."
+msgstr "这是 @1 的车厢,您不能摧毁它。"
+
+#: advtrains_line_automation/stoprail.lua:221
+#, fuzzy
+msgid "Station/Stop Track"
+msgstr "车站名称"
+
+#: advtrains_luaautomation/active_common.lua:17
+#, fuzzy
+msgid "Unconfigured LuaATC component"
+msgstr "ATC 控制器 (未配置)"
+
+#: advtrains_luaautomation/active_common.lua:46
+msgid "LuaATC Environment"
+msgstr ""
+
+#: advtrains_luaautomation/active_common.lua:49
+msgid "Clear Local Environment"
+msgstr ""
+
+#: advtrains_luaautomation/active_common.lua:50
+msgid "Code"
+msgstr ""
+
+#: advtrains_luaautomation/active_common.lua:64
+#, fuzzy
+msgid ""
+"You are not allowed to modify this LuaATC component without the @1 privilege."
+msgstr "您没有“train_operator”权限,不能在这里建造铁路。"
+
+#: advtrains_luaautomation/active_common.lua:94
+msgid "LuaATC component assigned to environment '@1'"
+msgstr ""
+
+#: advtrains_luaautomation/active_common.lua:96
+msgid "LuaATC component assigned to an invalid environment"
+msgstr ""
+
+#: advtrains_luaautomation/active_common.lua:171
+msgid "LuaATC component with error: @1"
+msgstr ""
+
+#: advtrains_luaautomation/init.lua:13
+msgid ""
+"Can place and modify LuaATC components, including execute potentially "
+"harmful Lua code"
+msgstr ""
+
+#: advtrains_luaautomation/mesecon_controller.lua:211
+#, fuzzy
+msgid "LuaATC Mesecon Controller"
+msgstr "ATC 控制器"
+
+#: advtrains_luaautomation/operation_panel.lua:11
+msgid "LuaATC Operation Panel"
+msgstr ""
+
+#: advtrains_luaautomation/pcnaming.lua:28
msgid ""
"Passive Component Naming Tool\n"
"\n"
@@ -427,6 +539,17 @@ msgstr ""
"\n"
"右键单击命名所选元件。"
+#: advtrains_luaautomation/pcnaming.lua:39
+#, fuzzy
+msgid ""
+"You are not allowed to name LuaATC passive components without the @1 "
+"privilege."
+msgstr "您没有“train_operator”权限,不能连接这两节车厢。"
+
+#: advtrains_luaautomation/pcnaming.lua:62
+msgid "Set name of component (empty to clear)"
+msgstr ""
+
#: advtrains_train_industrial/init.lua:10
#: advtrains_train_industrial/init.lua:49 advtrains_train_steam/init.lua:20
#: advtrains_train_steam/init.lua:91
diff --git a/advtrains/po/zh_TW.po b/advtrains/po/zh_TW.po
index 6b5c81f..0963017 100644
--- a/advtrains/po/zh_TW.po
+++ b/advtrains/po/zh_TW.po
@@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: advtrains\n"
"Report-Msgid-Bugs-To: advtrains-discuss@lists.sr.ht\n"
-"POT-Creation-Date: 2023-10-06 12:28+0200\n"
+"POT-Creation-Date: 2023-10-06 23:24+0200\n"
"PO-Revision-Date: 2023-10-06 12:33+0200\n"
"Last-Translator: Y. Wang <yw05@forksworld.de>\n"
"Language-Team: Chinese (Traditional)\n"
@@ -38,6 +38,7 @@ msgid "Digiline channel"
msgstr "Digiline 頻道"
#: advtrains/atc.lua:189 advtrains_line_automation/stoprail.lua:65
+#: advtrains_luaautomation/active_common.lua:48
msgid "Save"
msgstr "儲存"
@@ -139,7 +140,8 @@ msgid "Boiler"
msgstr "鍋爐"
#: advtrains/craft_items.lua:9
-msgid "driver's cab"
+#, fuzzy
+msgid "Driver's cab"
msgstr "駕駛室"
#: advtrains/craft_items.lua:15
@@ -166,6 +168,24 @@ msgstr "較高的@1月臺 (45°)"
msgid "@1 Platform (low, 45 degree)"
msgstr "較低的@1月臺 (45°)"
+#: advtrains/protection.lua:7
+msgid "Can place, remove and operate trains"
+msgstr ""
+
+#: advtrains/protection.lua:12
+msgid ""
+"Can place, remove and operate any train, regardless of owner, whitelist, or "
+"protection"
+msgstr ""
+
+#: advtrains/protection.lua:18
+msgid "Can place and dig tracks in unprotected areas"
+msgstr ""
+
+#: advtrains/protection.lua:24
+msgid "Can operate turnouts and signals in unprotected areas"
+msgstr ""
+
#: advtrains/protection.lua:148
msgid ""
"You are not allowed to build near tracks without the track_builder privilege."
@@ -380,6 +400,34 @@ msgstr "車門已關閉,請使用潛行+右鍵單擊下車。"
msgid "You are not allowed to access the driver stand."
msgstr ""
+#: advtrains_interlocking/tsr_rail.lua:13
+msgid "Point speed restriction: @1"
+msgstr ""
+
+#: advtrains_interlocking/tsr_rail.lua:14
+msgid "Set point speed restriction:"
+msgstr ""
+
+#: advtrains_interlocking/tsr_rail.lua:30
+#, fuzzy
+msgid "You are not allowed to modify this track without the @1 privilege."
+msgstr "您沒有「train_operator」許可權,不能在這裡建造鐵路。"
+
+#: advtrains_interlocking/tsr_rail.lua:34
+#, fuzzy
+msgid "You are not allowed to modify this protected track."
+msgstr "這裡已被保護,您不能在這裡建造鐵路。"
+
+#: advtrains_interlocking/tsr_rail.lua:64
+msgid "Point Speed Restriction Track"
+msgstr ""
+
+#: advtrains_line_automation/stoprail.lua:31
+#: advtrains_line_automation/stoprail.lua:76
+#, fuzzy
+msgid "You are not allowed to modify this track."
+msgstr "這裡已被保護,您不能在這裡建造鐵路。"
+
#: advtrains_line_automation/stoprail.lua:54
msgid "Station Code"
msgstr "車站碼"
@@ -417,7 +465,71 @@ msgstr ""
msgid "Kick out passengers"
msgstr "踢出乘客"
-#: advtrains_luaautomation/pcnaming.lua:26
+#: advtrains_line_automation/stoprail.lua:97
+msgid "Station code \"@1\" already exists and is owned by @2."
+msgstr ""
+
+#: advtrains_line_automation/stoprail.lua:111
+#, fuzzy
+msgid "This station is owned by @1. You are not allowed to edit its name."
+msgstr "這是 @1 的車廂,您不能摧毀它。"
+
+#: advtrains_line_automation/stoprail.lua:221
+#, fuzzy
+msgid "Station/Stop Track"
+msgstr "車站名稱"
+
+#: advtrains_luaautomation/active_common.lua:17
+#, fuzzy
+msgid "Unconfigured LuaATC component"
+msgstr "ATC 控制器 (未配置)"
+
+#: advtrains_luaautomation/active_common.lua:46
+msgid "LuaATC Environment"
+msgstr ""
+
+#: advtrains_luaautomation/active_common.lua:49
+msgid "Clear Local Environment"
+msgstr ""
+
+#: advtrains_luaautomation/active_common.lua:50
+msgid "Code"
+msgstr ""
+
+#: advtrains_luaautomation/active_common.lua:64
+#, fuzzy
+msgid ""
+"You are not allowed to modify this LuaATC component without the @1 privilege."
+msgstr "您沒有「train_operator」許可權,不能在這裡建造鐵路。"
+
+#: advtrains_luaautomation/active_common.lua:94
+msgid "LuaATC component assigned to environment '@1'"
+msgstr ""
+
+#: advtrains_luaautomation/active_common.lua:96
+msgid "LuaATC component assigned to an invalid environment"
+msgstr ""
+
+#: advtrains_luaautomation/active_common.lua:171
+msgid "LuaATC component with error: @1"
+msgstr ""
+
+#: advtrains_luaautomation/init.lua:13
+msgid ""
+"Can place and modify LuaATC components, including execute potentially "
+"harmful Lua code"
+msgstr ""
+
+#: advtrains_luaautomation/mesecon_controller.lua:211
+#, fuzzy
+msgid "LuaATC Mesecon Controller"
+msgstr "ATC 控制器"
+
+#: advtrains_luaautomation/operation_panel.lua:11
+msgid "LuaATC Operation Panel"
+msgstr ""
+
+#: advtrains_luaautomation/pcnaming.lua:28
msgid ""
"Passive Component Naming Tool\n"
"\n"
@@ -427,6 +539,17 @@ msgstr ""
"\n"
"右鍵單擊命名所選元件。"
+#: advtrains_luaautomation/pcnaming.lua:39
+#, fuzzy
+msgid ""
+"You are not allowed to name LuaATC passive components without the @1 "
+"privilege."
+msgstr "您沒有「train_operator」許可權,不能連結這兩節車廂。"
+
+#: advtrains_luaautomation/pcnaming.lua:62
+msgid "Set name of component (empty to clear)"
+msgstr ""
+
#: advtrains_train_industrial/init.lua:10
#: advtrains_train_industrial/init.lua:49 advtrains_train_steam/init.lua:20
#: advtrains_train_steam/init.lua:91
diff --git a/advtrains/protection.lua b/advtrains/protection.lua
index 89e15eb..ac1cd66 100644
--- a/advtrains/protection.lua
+++ b/advtrains/protection.lua
@@ -4,24 +4,24 @@
-- Privileges to control TRAIN DRIVING/COUPLING
minetest.register_privilege("train_operator", {
- description = "Without this privilege, a player can't do anything about trains, neither place or remove them nor drive or couple them (but he can build tracks if he has track_builder)",
+ description = attrans("Can place, remove and operate trains"),
give_to_singleplayer= true,
});
minetest.register_privilege("train_admin", {
- description = "Player may drive, place or remove any trains from/to anywhere, regardless of owner, whitelist or protection",
+ description = attrans("Can place, remove and operate any train, regardless of owner, whitelist, or protection"),
give_to_singleplayer= true,
});
-- Privileges to control TRACK BUILDING
minetest.register_privilege("track_builder", {
- description = "Player can place and/or dig rails not protected from him. If he also has protection_bypass, he can place/dig any rails",
+ description = attrans("Can place and dig tracks in unprotected areas"),
give_to_singleplayer= true,
});
-- Privileges to control OPERATING TURNOUTS/SIGNALS
minetest.register_privilege("railway_operator", {
- description = "Player can operate turnouts and signals not protected from him. If he also has protection_bypass, he can operate any turnouts/signals",
+ description = attrans("Can operate turnouts and signals in unprotected areas"),
give_to_singleplayer= true,
});
diff --git a/advtrains_interlocking/tsr_rail.lua b/advtrains_interlocking/tsr_rail.lua
index f302540..4f4872e 100644
--- a/advtrains_interlocking/tsr_rail.lua
+++ b/advtrains_interlocking/tsr_rail.lua
@@ -3,13 +3,15 @@
-- Simple rail whose only purpose is to place a TSR on the position, as a temporary solution until the timetable system covers everything.
-- This code resembles the code in lines/stoprail.lua
+local S = attrans
+
local function updateform(pos)
local meta = minetest.get_meta(pos)
local pe = advtrains.encode_pos(pos)
local npr = advtrains.interlocking.npr_rails[pe] or 2
- meta:set_string("infotext", "Point speed restriction: "..npr)
- meta:set_string("formspec", "field[npr;Set point speed restriction:;"..npr.."]")
+ meta:set_string("infotext", S("Point speed restriction: @1",npr))
+ meta:set_string("formspec", "field[npr;"..S("Set point speed restriction:")..";"..npr.."]")
end
@@ -25,11 +27,11 @@ local adefunc = function(def, preset, suffix, rotation)
on_receive_fields = function(pos, formname, fields, player)
local pname = player:get_player_name()
if not minetest.check_player_privs(pname, {interlocking=true}) then
- minetest.chat_send_player(pname, "Interlocking privilege required!")
+ minetest.chat_send_player(pname, S("You are not allowed to modify this track without the @1 privilege.", "interlocking"))
return
end
if minetest.is_protected(pos, pname) then
- minetest.chat_send_player(pname, "This rail is protected!")
+ minetest.chat_send_player(pname, S("You are not allowed to modify this protected track."))
minetest.record_protection_violation(pos, pname)
return
end
@@ -59,7 +61,7 @@ if minetest.get_modpath("advtrains_train_track") ~= nil then
models_prefix="advtrains_dtrack",
models_suffix=".b3d",
shared_texture="advtrains_dtrack_shared_npr.png",
- description="Point Speed Restriction Rail",
+ description=S("Point Speed Restriction Track"),
formats={},
get_additional_definiton = adefunc,
}, advtrains.trackpresets.t_30deg_straightonly)
diff --git a/advtrains_line_automation/stoprail.lua b/advtrains_line_automation/stoprail.lua
index 55a4785..9e6fea0 100644
--- a/advtrains_line_automation/stoprail.lua
+++ b/advtrains_line_automation/stoprail.lua
@@ -28,7 +28,7 @@ local function show_stoprailform(pos, player)
local pe = advtrains.encode_pos(pos)
local pname = player:get_player_name()
if minetest.is_protected(pos, pname) then
- minetest.chat_send_player(pname, "Position is protected!")
+ minetest.chat_send_player(pname, attrans("You are not allowed to modify this track."))
return
end
@@ -73,7 +73,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
local pos = advtrains.decode_pos(pe)
if pos then
if minetest.is_protected(pos, pname) then
- minetest.chat_send_player(pname, "Position is protected!")
+ minetest.chat_send_player(pname, attrans("You are not allowed to modify this track."))
return
end
@@ -94,7 +94,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
if (stn.owner == pname or minetest.check_player_privs(pname, "train_admin")) then
stdata.stn = fields.stn
else
- minetest.chat_send_player(pname, "Station code '"..fields.stn.."' does already exist and is owned by "..stn.owner)
+ minetest.chat_send_player(pname, attrans("Station code \"@1\" already exists and is owned by @2.", fields.stn, stn.owner))
show_stoprailform(pos,player)
return
end
@@ -108,7 +108,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
if (stn.owner == pname or minetest.check_player_privs(pname, "train_admin")) then
stn.name = fields.stnname
else
- minetest.chat_send_player(pname, "Not allowed to edit station name, owned by "..stn.owner)
+ minetest.chat_send_player(pname, attrans("This station is owned by @1. You are not allowed to edit its name.", stn.owner))
end
end
@@ -218,7 +218,7 @@ if minetest.get_modpath("advtrains_train_track") ~= nil then
models_prefix="advtrains_dtrack",
models_suffix=".b3d",
shared_texture="advtrains_dtrack_shared_stop.png",
- description="Station/Stop Rail",
+ description=attrans("Station/Stop Track"),
formats={},
get_additional_definiton = adefunc,
}, advtrains.trackpresets.t_30deg_straightonly)
diff --git a/advtrains_luaautomation/active_common.lua b/advtrains_luaautomation/active_common.lua
index 50fb2bc..bf3e090 100644
--- a/advtrains_luaautomation/active_common.lua
+++ b/advtrains_luaautomation/active_common.lua
@@ -1,4 +1,4 @@
-
+local S = atltrans
local ac = {nodes={}}
@@ -14,7 +14,7 @@ end
function ac.after_place_node(pos, player)
local meta=minetest.get_meta(pos)
meta:set_string("formspec", ac.getform(pos, meta))
- meta:set_string("infotext", "LuaATC component, unconfigured.")
+ meta:set_string("infotext", S("Unconfigured LuaATC component"))
local ph=minetest.pos_to_string(pos)
--just get first available key!
for en,_ in pairs(atlatc.envs) do
@@ -43,11 +43,11 @@ function ac.getform(pos, meta_p)
end
local form = "size["..atlatc.CODE_FORM_SIZE.."]"
.."style[code;font=mono]"
- .."label[0,-0.1;Environment]"
+ .."label[0,-0.1;"..S("LuaATC Environment").."]"
.."dropdown[0,0.3;3;env;"..table.concat(envs_asvalues, ",")..";"..sel.."]"
- .."button[5,0.2;2,1;save;Save]"
- .."button[7,0.2;3,1;cle;Clear Local Env.]"
- .."textarea[0.3,1.5;"..atlatc.CODE_FORM_SIZE..";code;Code;"..minetest.formspec_escape(code).."]"
+ .."button[5,0.2;2,1;save;"..S("Save").."]"
+ .."button[7,0.2;3,1;cle;"..S("Clear Local Environment").."]"
+ .."textarea[0.3,1.5;"..atlatc.CODE_FORM_SIZE..";code;"..S("Code")..";"..minetest.formspec_escape(code).."]"
.."label["..atlatc.CODE_FORM_ERRLABELPOS..";"..err.."]"
return form
end
@@ -61,7 +61,7 @@ end
function ac.on_receive_fields(pos, formname, fields, player)
if not minetest.check_player_privs(player:get_player_name(), {atlatc=true}) then
- minetest.chat_send_player(player:get_player_name(), "Missing privilege: atlatc - Operation cancelled!")
+ minetest.chat_send_player(player:get_player_name(), S("You are not allowed to modify this LuaATC component without the @1 privilege.", "atlatc"))
return
end
@@ -91,9 +91,9 @@ function ac.on_receive_fields(pos, formname, fields, player)
meta:set_string("formspec", ac.getform(pos, meta))
if nodetbl.env then
- meta:set_string("infotext", "LuaATC component, assigned to environment '"..nodetbl.env.."'")
+ meta:set_string("infotext", S("LuaATC component assigned to environment '@1'", nodetbl.env))
else
- meta:set_string("infotext", "LuaATC component, invalid enviroment set!")
+ meta:set_string("infotext", S("LuaATC component assigned to an invalid environment"))
end
end
@@ -168,7 +168,7 @@ function ac.run_in_env(pos, evtdata, customfct_p, ignore_no_code)
atlatc.active.nodes[ph].err=dataout
env:log("error", "LuaATC component at",ph,": LUA Error:",dataout)
if meta then
- meta:set_string("infotext", "LuaATC component, ERROR:"..dataout)
+ meta:set_string("infotext", S("LuaATC component with error: @1", dataout))
end
--TODO temporary
--if customfct.atc_id then
diff --git a/advtrains_luaautomation/atc_rail.lua b/advtrains_luaautomation/atc_rail.lua
index 5dde99c..c6f1f4e 100644
--- a/advtrains_luaautomation/atc_rail.lua
+++ b/advtrains_luaautomation/atc_rail.lua
@@ -187,7 +187,7 @@ advtrains.register_tracks("default", {
models_prefix="advtrains_dtrack",
models_suffix=".b3d",
shared_texture="advtrains_dtrack_shared_atc.png",
- description=atltrans("LuaATC Rail"),
+ description=atltrans("LuaATC Track"),
formats={},
get_additional_definiton = function(def, preset, suffix, rotation)
return {
diff --git a/advtrains_luaautomation/init.lua b/advtrains_luaautomation/init.lua
index c51aa71..603d240 100644
--- a/advtrains_luaautomation/init.lua
+++ b/advtrains_luaautomation/init.lua
@@ -2,15 +2,15 @@
-- Lua automation features for advtrains
-- Uses global table 'atlatc' (AdvTrains_LuaATC)
---TODO: re-add localization (if merging localization, discard this hunk please)
-atltrans = function(s,a,...)a={a,...}return s:gsub("@(%d+)",function(n)return a[tonumber(n)]end)end
+atltrans = attrans
+local S = atltrans
--Privilege
--Only trusted players should be enabled to build stuff which can break the server.
atlatc = { envs = {}}
-minetest.register_privilege("atlatc", { description = "Player can place and modify LUA ATC components. Grant with care! Allows to execute bad LUA code.", give_to_singleplayer = false, default= false })
+minetest.register_privilege("atlatc", { description = S("Can place and modify LuaATC components, including execute potentially harmful Lua code"), give_to_singleplayer = false, default= false })
--Size of code input forms in X,Y notation. Must be at least 10x10
atlatc.CODE_FORM_SIZE = "15,12"
diff --git a/advtrains_luaautomation/mesecon_controller.lua b/advtrains_luaautomation/mesecon_controller.lua
index bffff84..6981839 100644
--- a/advtrains_luaautomation/mesecon_controller.lua
+++ b/advtrains_luaautomation/mesecon_controller.lua
@@ -6,6 +6,7 @@
-- From Mesecons mod https://mesecons.net/
-- (c) Jeija and Contributors
+local S = atltrans
local BASENAME = "advtrains_luaautomation:mesecon_controller"
local rules = {
@@ -207,7 +208,7 @@ for d = 0, 1 do
}
minetest.register_node(node_name, {
- description = "LuaATC Mesecon Controller",
+ description = S("LuaATC Mesecon Controller"),
drawtype = "nodebox",
tiles = {
top,
diff --git a/advtrains_luaautomation/operation_panel.lua b/advtrains_luaautomation/operation_panel.lua
index bfbbda4..a6afd36 100644
--- a/advtrains_luaautomation/operation_panel.lua
+++ b/advtrains_luaautomation/operation_panel.lua
@@ -1,3 +1,4 @@
+local S = atltrans
local function on_punch(pos, player)
atlatc.interrupt.add(0, pos, {type="punch", punch=true})
@@ -7,7 +8,7 @@ end
minetest.register_node("advtrains_luaautomation:oppanel", {
drawtype = "normal",
tiles={"atlatc_oppanel.png"},
- description = "LuaATC operation panel",
+ description = S("LuaATC Operation Panel"),
groups = {
cracky = 1,
save_in_at_nodedb=1,
diff --git a/advtrains_luaautomation/pcnaming.lua b/advtrains_luaautomation/pcnaming.lua
index 71f4d9a..60983a6 100644
--- a/advtrains_luaautomation/pcnaming.lua
+++ b/advtrains_luaautomation/pcnaming.lua
@@ -2,6 +2,8 @@
--a.k.a Passive component naming
--Allows to assign names to passive components, so they can be called like:
--setstate("iamasignal", "green")
+local S = atltrans
+
atlatc.pcnaming={name_map={}}
function atlatc.pcnaming.load(stuff)
if type(stuff)=="table" then
@@ -23,7 +25,7 @@ function atlatc.pcnaming.resolve_pos(pos, func_name)
end
minetest.register_craftitem("advtrains_luaautomation:pcnaming",{
- description = attrans("Passive Component Naming Tool\n\nRight-click to name a passive component."),
+ description = S("Passive Component Naming Tool\n\nRight-click to name a passive component."),
groups = {cracky=1}, -- key=name, value=rating; rating=1..3.
inventory_image = "atlatc_pcnaming.png",
wield_image = "atlatc_pcnaming.png",
@@ -34,7 +36,7 @@ minetest.register_craftitem("advtrains_luaautomation:pcnaming",{
return
end
if not minetest.check_player_privs(pname, {atlatc=true}) then
- minetest.chat_send_player(pname, "Missing privilege: atlatc")
+ minetest.chat_send_player(pname, S("You are not allowed to name LuaATC passive components without the @1 privilege.", "atlatc"))
return
end
if pointed_thing.type=="node" then
@@ -57,7 +59,7 @@ minetest.register_craftitem("advtrains_luaautomation:pcnaming",{
pn=name
end
end
- minetest.show_formspec(pname, "atlatc_naming_"..minetest.pos_to_string(pos), "field[pn;Set name of component (empty to clear);"..minetest.formspec_escape(pn).."]")
+ minetest.show_formspec(pname, "atlatc_naming_"..minetest.pos_to_string(pos), "field[pn;"..S("Set name of component (empty to clear)")..";"..minetest.formspec_escape(pn).."]")
end
end
end,