adding guidelines to run script and configure tools in qt creator
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# Scripts
|
||||
|
||||
To run this scripts, first you must authorize your terminal to run:
|
||||
|
||||
```bash
|
||||
chmod +x script/*.sh
|
||||
```
|
||||
|
||||
Then you can run by using this command:
|
||||
|
||||
```bash
|
||||
./scripts/the/script/you/want/to/run
|
||||
```
|
||||
@@ -1,12 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
PROJECT_ROOT="$(dirname "$(dirname "$(realpath "$0")")")"
|
||||
TRANSLATIONS_DIR="$PROJECT_ROOT/translations"
|
||||
PROJECT_ROOT="$(pwd)"
|
||||
|
||||
echo "Gerando arquivos .qm..."
|
||||
# To add this tool in Qt Creator:
|
||||
# Category: Linguist
|
||||
# Name: Release Translations (lrelease)
|
||||
# Executable: lrelease
|
||||
# Arguments: SavvyCAN.pro
|
||||
# Working Directory: %{ActiveProject:Path}
|
||||
|
||||
for file in "$TRANSLATIONS_DIR"/*.ts; do
|
||||
lrelease "$file"
|
||||
done
|
||||
echo "Generating .qm files..."
|
||||
|
||||
echo "Arquivos .qm gerados."
|
||||
lrelease "$PROJECT_ROOT"/SavvyCAN.pro
|
||||
|
||||
echo ".qm files generated."
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
PROJECT_ROOT="$(dirname "$(dirname "$(realpath "$0")")")"
|
||||
TRANSLATIONS_DIR="$PROJECT_ROOT/translations"
|
||||
|
||||
linguist "$TRANSLATIONS_DIR"/SavvyCAN_*.ts
|
||||
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user