adding guidelines to run script and configure tools in qt creator

This commit is contained in:
lexcibien
2026-03-06 21:30:08 -03:00
parent 316cb90b1f
commit f72db3e03a
4 changed files with 35 additions and 19 deletions
+11 -6
View File
@@ -1,11 +1,16 @@
#!/bin/bash
PROJECT_ROOT="$(dirname "$(dirname "$(realpath "$0")")")"
TRANSLATIONS_DIR="$PROJECT_ROOT/translations"
PROJECT_ROOT="$(pwd)"
echo "Atualizando arquivos de tradução..."
# To add this tool in Qt Creator:
# Category: Linguist
# Name: Update Translations (lupdate)
# Executable: lupdate
# Arguments: -project SavvyCAN.pro
# Working Directory: %{ActiveProject:Path}
lupdate "$PROJECT_ROOT" \
-ts "$TRANSLATIONS_DIR"/SavvyCAN_*.ts
echo "Updating translation files..."
echo "Traduções atualizadas."
lupdate -project "$PROJECT_ROOT"/SavvyCAN.pro
echo "Translation files updated."