forked from LinuxCNC/linuxcnc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request LinuxCNC#3192 from phillc54/qtplasmac-internationa…
…lization qtplasmac: fix linking and documentation for internationalization
- Loading branch information
Showing
7 changed files
with
2,503 additions
and
1,202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
#!/bin/bash | ||
|
||
# creates a .ts file for language translation using Qt Linguist | ||
|
||
if [ $# -eq 0 ]; then | ||
echo -e '\nlocale is missing\n' | ||
echo -e "\nlocale is missing\n" | ||
exit | ||
elif [ ${#1} -ne 2 ]; then | ||
echo -e '\nlocale needs to be two characters\n' | ||
echo -e "\nlocale needs to be two characters\n" | ||
exit | ||
fi | ||
|
||
echo -e '\ncreating language translation file qtplasmac_'$1'.ts\n' | ||
echo -e "\ncreating language translation file qtplasmac_$1.ts\n" | ||
|
||
pylupdate5 *.py ../*.py ../../../../../lib/python/qtvcp/lib/qtplasmac/*.py -ts qtplasmac_$1.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
# creates links to the Qt translation .qm filefor the 4x3 and 9x16 GUIs | ||
|
||
if [ $# -eq 0 ]; then | ||
echo -e "\nlocale is missing\n" | ||
exit | ||
elif [ ${#1} -ne 2 ]; then | ||
echo -e "\nlocale needs to be two characters\n" | ||
exit | ||
fi | ||
|
||
|
||
if [ ! -f "qtplasmac_$1.qm" ] | ||
then | ||
echo -e "\nlanguage file qtplasmac_$1.qm does not exist\n" | ||
exit | ||
else | ||
echo -e "\ncreating links to qtplasmac_$1.qn translation for qtplasmac_4x3 and qtplasmac_9x16\n" | ||
mkdir -p "../../qtplasmac_4x3/languages" | ||
mkdir -p "../../qtplasmac_9x16/languages" | ||
ln -rs qtplasmac_sk.qm -t ../../qtplasmac_4x3/languages | ||
ln -rs qtplasmac_sk.qm -t ../../qtplasmac_9x16/languages | ||
mv ../../qtplasmac_4x3/languages/qtplasmac_sk.qm ../../qtplasmac_4x3/languages/qtplasmac_4x3_sk.qm | ||
mv ../../qtplasmac_9x16/languages/qtplasmac_sk.qm ../../qtplasmac_9x16/languages/qtplasmac_9x16_sk.qm | ||
fi |
Oops, something went wrong.