aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rwxr-xr-xutils/update_tx.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/utils/update_tx.sh b/utils/update_tx.sh
index 0161b9320..d057a4b3a 100755
--- a/utils/update_tx.sh
+++ b/utils/update_tx.sh
@@ -1,5 +1,6 @@
#!/bin/sh
+PROJECT_NAME=qmmp
TX_CONFIG="../.tx/config"
echo "[main]" > ${TX_CONFIG}
@@ -45,7 +46,7 @@ do
esac
file_filter=`echo ${tr_dir} | sed 's/..\///'`
- echo "[qmmp.${plug_name}]" >> ${TX_CONFIG}
+ echo "[${PROJECT_NAME}.${plug_name}]" >> ${TX_CONFIG}
if [ "$plug_name" = "qmmp" ] || [ "$plug_name" = "libqmmpui" ]; then
echo "file_filter = ${file_filter}/${plug_name}_<lang>.ts" >> ${TX_CONFIG}
@@ -60,3 +61,13 @@ do
echo "" >> ${TX_CONFIG}
done
+
+for RESOURCE_NAME in description authors translators thanks
+do
+ echo "[${PROJECT_NAME}.${RESOURCE_NAME}]" >> ${TX_CONFIG}
+ echo "file_filter = src/qmmpui/txt/${RESOURCE_NAME}_<lang>.txt" >> ${TX_CONFIG}
+ echo "source_lang = en" >> ${TX_CONFIG}
+ echo "source_file = src/qmmpui/txt/${RESOURCE_NAME}.txt" >> ${TX_CONFIG}
+ echo "type = TXT" >> ${TX_CONFIG}
+ echo "" >> ${TX_CONFIG}
+done