implement translation on savvyCAN
This commit is contained in:
Executable
+12
@@ -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."
|
||||
Executable
+6
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
PROJECT_ROOT="$(dirname "$(dirname "$(realpath "$0")")")"
|
||||
TRANSLATIONS_DIR="$PROJECT_ROOT/translations"
|
||||
|
||||
linguist "$TRANSLATIONS_DIR"/savvycan_*.ts
|
||||
Executable
+11
@@ -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."
|
||||
Reference in New Issue
Block a user