diff options
author | Y. Wang <yw05@forksworld.de> | 2023-10-04 20:07:24 +0200 |
---|---|---|
committer | Y. Wang <y5nw@protonmail.com> | 2024-11-04 17:17:51 +0100 |
commit | 425b0993d355b9f45ddd400bd4925f9f1a5bd34d (patch) | |
tree | 77a105e5bbf28c03e31c5c30e5866387d618e174 /.build.yml | |
parent | bed66e0f901ae9f8e21675035f174292120fea4f (diff) | |
download | advtrains-425b0993d355b9f45ddd400bd4925f9f1a5bd34d.tar.gz advtrains-425b0993d355b9f45ddd400bd4925f9f1a5bd34d.tar.bz2 advtrains-425b0993d355b9f45ddd400bd4925f9f1a5bd34d.zip |
Autogenerate .tr files from .po files
Diffstat (limited to '.build.yml')
-rw-r--r-- | .build.yml | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -6,6 +6,7 @@ packages: - unzip - wget - lua-busted +- luajit sources : - https://git.sr.ht/~gpcf/advtrains @@ -40,3 +41,8 @@ tasks: - run_test_world: | echo "bind_address = 127.0.0.1" > minetest.conf minetestserver --port 31111 --gameid minetest_game --config ~/minetest.conf --world ~/.minetest/worlds/advtrains_testworld --logfile ~/minetest.log +- test_po_files : | + cd advtrains/advtrains + for f in po/*.po; do + luajit -e 'require("poconvert").from_string("advtrains", io.input():read("*a"))' < $f + done |