diff options
author | ywang <yw05@forksworld.de> | 2020-07-19 15:50:34 +0200 |
---|---|---|
committer | ywang <yw05@forksworld.de> | 2020-07-19 16:21:08 +0200 |
commit | a84e17fa78996e6cc35921020874cfb259ae873b (patch) | |
tree | 034d420d3c1d832f6d7d4c47ac265659dd663466 /advtrains_train_japan | |
parent | a2f68371ec160d2171289df2ec14a291cb12778a (diff) | |
download | basic_trains-a84e17fa78996e6cc35921020874cfb259ae873b.tar.gz basic_trains-a84e17fa78996e6cc35921020874cfb259ae873b.tar.bz2 basic_trains-a84e17fa78996e6cc35921020874cfb259ae873b.zip |
[BREAKING] Use client-side translations instead of intllib; add zh_CN translations
* Client-side translations is used instead of intllib. [Breaks MT4 compat]
* Existing locale files have been moved to advtrains/locale and named with the format advtrains.[lang].tr
* Add zh_CN locale. (requires a font that supports CJK text)
Diffstat (limited to 'advtrains_train_japan')
-rw-r--r-- | advtrains_train_japan/init.lua | 7 | ||||
-rw-r--r-- | advtrains_train_japan/locale/de.txt | 4 |
2 files changed, 1 insertions, 10 deletions
diff --git a/advtrains_train_japan/init.lua b/advtrains_train_japan/init.lua index c76ce8f..1aa2771 100644 --- a/advtrains_train_japan/init.lua +++ b/advtrains_train_japan/init.lua @@ -1,9 +1,4 @@ -local S -if minetest.get_modpath("intllib") then - S = intllib.Getter() -else - S = function(s,a,...)a={a,...}return s:gsub("@(%d+)",function(n)return a[tonumber(n)]end)end -end +local S = attrans advtrains.register_wagon("engine_japan", { mesh="advtrains_engine_japan.b3d", diff --git a/advtrains_train_japan/locale/de.txt b/advtrains_train_japan/locale/de.txt deleted file mode 100644 index 63d7a97..0000000 --- a/advtrains_train_japan/locale/de.txt +++ /dev/null @@ -1,4 +0,0 @@ -Driver Stand = Führerstand -Japanese Train Engine = Japanische Personenzug-Lokomotive -Default Seat = Standardsitzplatz -Japanese Train Wagon = Japanischer Personenzug-Passagierwaggon
\ No newline at end of file |