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 | cc78b63e342c131e2a08b3697681d9d5fbf86d4f (patch) | |
tree | d344fa9eac221c805d2364cbc48e9ee2209158b9 /advtrains_train_steam/init.lua | |
parent | 19509acf56aef4b6e5f45023ee5603e95822fe69 (diff) | |
download | advtrains-cc78b63e342c131e2a08b3697681d9d5fbf86d4f.tar.gz advtrains-cc78b63e342c131e2a08b3697681d9d5fbf86d4f.tar.bz2 advtrains-cc78b63e342c131e2a08b3697681d9d5fbf86d4f.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_steam/init.lua')
-rwxr-xr-x | advtrains_train_steam/init.lua | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/advtrains_train_steam/init.lua b/advtrains_train_steam/init.lua index 6b5047c..057ad8f 100755 --- a/advtrains_train_steam/init.lua +++ b/advtrains_train_steam/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 -- length of the steam engine loop sound local SND_LOOP_LEN = 5 |