aboutsummaryrefslogtreecommitdiff
path: root/advtrains_luaautomation
diff options
context:
space:
mode:
authorY. Wang <y5nw@protonmail.com>2025-10-01 22:44:13 +0000
committerorwell <orwell@bleipb.de>2026-01-29 21:09:15 +0100
commit94a68f99c00b16d56091e06b0011813dab7b1502 (patch)
treeea0aab7efedfd09fb6fb89814a45cb34bd3811b3 /advtrains_luaautomation
parent72229801130cebf5b18f2621f1eea6c69d0e7d01 (diff)
Unify update-translations.sh
Debian 13 has been released with Luanti 5.10. It is therefore safe to assume that most players are now using at least 5.10 with support for PO files. This patchset moves the .po translation files from po/ to locale/, making these accessible to the Luanti client. In addition: * .tr files are now dropped as these are no longer used. * update-translations.sh is now unified into a single file in the root directory of the modpack. It is also designed to handle the entire modpack rather than individual mods. * poconvert is deprecated as it is no longer useful (for Advtrains), and the effort to maintain this brings little gain in comparison. It is still kept for compatibility (i.e. in case other mods depend on this), but should arguably be removed in a later version. * The unittest step for testing PO files is removed because * It depends on the (deprecated) poconvert module; * It has not been particularly useful - its only use was (arguably) in testing poconvert itself; and * It is not fully functional as it only checks PO files in advtrains/.
Diffstat (limited to 'advtrains_luaautomation')
-rw-r--r--advtrains_luaautomation/po/update-translations.sh28
1 files changed, 0 insertions, 28 deletions
diff --git a/advtrains_luaautomation/po/update-translations.sh b/advtrains_luaautomation/po/update-translations.sh
deleted file mode 100644
index 032e19e..0000000
--- a/advtrains_luaautomation/po/update-translations.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-
-MODNAME="advtrains_luaautomation"
-MSGID_BUGS_ADDR='advtrains-discuss@lists.sr.ht'
-
-PODIR=`dirname "$0"`
-ATDIR="$PODIR/.."
-POTFILE="$PODIR/$MODNAME.pot"
-
-xgettext \
- -D "$ATDIR" \
- -d "$MODNAME" \
- -o "$POTFILE" \
- -p . \
- -L lua \
- --add-location=file \
- --from-code=UTF-8 \
- --sort-by-file \
- --keyword='S' \
- --package-name="$MODNAME" \
- --msgid-bugs-address="$MSGID_BUGS_ADDR" \
- `find $ATDIR $BTDIR -name '*.lua' -printf '%P\n'` \
- &&
-for i in "$PODIR"/*.po; do
- msgmerge -U \
- --sort-by-file \
- $i "$POTFILE"
-done