aboutsummaryrefslogtreecommitdiff
path: root/.build.yml
diff options
context:
space:
mode:
authorY. Wang <yw05@forksworld.de>2023-12-29 21:12:53 +0100
committerY. Wang <yw05@forksworld.de>2024-04-13 10:36:35 +0200
commitca87afc26f35bcbc74d81da9118b8b67c5192371 (patch)
tree0e74e8cc086eb844b2c86431a6610af328f62411 /.build.yml
parentb8466d4abb0c8d639e396861d7635ed90b4718e1 (diff)
downloadadvtrains-ca87afc26f35bcbc74d81da9118b8b67c5192371.tar.gz
advtrains-ca87afc26f35bcbc74d81da9118b8b67c5192371.tar.bz2
advtrains-ca87afc26f35bcbc74d81da9118b8b67c5192371.zip
poconvert: minor refactor; add unittest
poconvert.lua now recognizes fuzzy entries in PO files; these entries are also added to the target file, but they are prefixed with "#" (i.e. marked as comments).
Diffstat (limited to '.build.yml')
-rw-r--r--.build.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.build.yml b/.build.yml
index 6c4d697..72dbc89 100644
--- a/.build.yml
+++ b/.build.yml
@@ -14,3 +14,9 @@ tasks:
busted
cd ../serialize_lib
busted
+
+- 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