Import LinuxCNC source tree

This commit is contained in:
Wang Dequan
2026-08-20 06:17:39 +08:00
commit 2c814634c3
9429 changed files with 10556013 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
#!/bin/bash
# creates a .ts file for language translation using Qt Linguist
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
echo -e "\ncreating language translation file qtplasmac_$1.ts\n"
pylupdate5 ./*.py ../*.py ../../../../../lib/python/qtvcp/widgets/*.py ../../../../../lib/python/qtvcp/lib/qtplasmac/*.py -ts "qtplasmac_$1.ts"

View File

@@ -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_$1.qm" -t ../../qtplasmac_4x3/languages
ln -rs "qtplasmac_$1.qm" -t ../../qtplasmac_9x16/languages
mv "../../qtplasmac_4x3/languages/qtplasmac_$1.qm" ../../qtplasmac_4x3/languages/qtplasmac_4x3_sk.qm
mv "../../qtplasmac_9x16/languages/qtplasmac_$1.qm" ../../qtplasmac_9x16/languages/qtplasmac_9x16_sk.qm
fi

File diff suppressed because it is too large Load Diff