implement translation on savvyCAN

This commit is contained in:
lexcibien
2026-03-05 23:29:46 -03:00
parent ad65cf78a8
commit 8392daa9ac
5 changed files with 45 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
PROJECT_ROOT="$(dirname "$(dirname "$(realpath "$0")")")"
TRANSLATIONS_DIR="$PROJECT_ROOT/translations"
echo "Gerando arquivos .qm..."
for file in "$TRANSLATIONS_DIR"/*.ts; do
lrelease "$file"
done
echo "Arquivos .qm gerados."
+6
View File
@@ -0,0 +1,6 @@
#!/bin/bash
PROJECT_ROOT="$(dirname "$(dirname "$(realpath "$0")")")"
TRANSLATIONS_DIR="$PROJECT_ROOT/translations"
linguist "$TRANSLATIONS_DIR"/savvycan_*.ts
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
PROJECT_ROOT="$(dirname "$(dirname "$(realpath "$0")")")"
TRANSLATIONS_DIR="$PROJECT_ROOT/translations"
echo "Atualizando arquivos de tradução..."
lupdate "$PROJECT_ROOT" \
-ts "$TRANSLATIONS_DIR"/savvycan_*.ts
echo "Traduções atualizadas."