diff options
author | ywang <yw05@forksworld.de> | 2021-03-27 14:13:53 +0100 |
---|---|---|
committer | Y. Wang <y5nw@protonmail.com> | 2024-11-04 17:17:08 +0100 |
commit | bed66e0f901ae9f8e21675035f174292120fea4f (patch) | |
tree | 917b29a85c4b7c71d1d12a373df652de00e57afd /advtrains/init.lua | |
parent | 9ada994d5b3bd874e537b0bc9641b925058bdf51 (diff) | |
download | advtrains-bed66e0f901ae9f8e21675035f174292120fea4f.tar.gz advtrains-bed66e0f901ae9f8e21675035f174292120fea4f.tar.bz2 advtrains-bed66e0f901ae9f8e21675035f174292120fea4f.zip |
Rework translation system to use PO files
The French translations are provided by Tanavit. Unfortunately I was not
able to keep this addition as a separate commit as the translation file
was originally added as a .tr file that I then converted to .po file in
the meantime.
Also note that this commit is created from squashing 20+ commits from
the l10n branch that preceded the transition to PO files. In addition to
changes to the locale files (which were all included in the single
commit for transitioning to PO files), these commits also included code
that has now become obsolete for l10n work. In particular, it included a
GUI program written in Tcl to edit .tr files; this program can now be
found in the following repo: https://codeberg.org/y5nw/mt_tr_editor
Co-authored-by: Tanavit <tanavit@posto.ovh>
Diffstat (limited to 'advtrains/init.lua')
-rw-r--r-- | advtrains/init.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/advtrains/init.lua b/advtrains/init.lua index 06e456f..f6f8f9b 100644 --- a/advtrains/init.lua +++ b/advtrains/init.lua @@ -22,8 +22,7 @@ Copyright (C) 2016-2020 Moritz Blei (orwell96) and contributors local lot = os.clock() minetest.log("action", "[advtrains] Loading...") --- There is no need to support 0.4.x anymore given that the compatitability with it is already broken by 1bb1d825f46af3562554c12fba35a31b9f7973ff -attrans = minetest.get_translator ("advtrains") +attrans = minetest.get_translator("advtrains") --advtrains advtrains = {trains={}, player_to_train_mapping={}} @@ -181,7 +180,7 @@ function assertt(var, typ) end end -dofile(advtrains.modpath.."/helpers.lua"); +dofile(advtrains.modpath.."/helpers.lua") --dofile(advtrains.modpath.."/debugitems.lua"); advtrains.meseconrules = |