mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 14:04:03 -06:00
Use a loop to go over files instead of passing them all in as arguments so that we don't go over the argument size limit.
CURA-9814
This commit is contained in:
parent
20778f3d10
commit
d24bd3f979
1 changed files with 11 additions and 2 deletions
|
@ -9,5 +9,14 @@
|
|||
#
|
||||
dir=$1
|
||||
dest=$2
|
||||
xgettext --from-code=UTF-8 --language=python -ki18n:1 -ki18nc:1c,2 -ki18np:1,2 -ki18ncp:1c,2,3 -o $dest $(find -L "$dir" -name \*.py)
|
||||
xgettext --from-code=UTF-8 --join-existing --language=javascript -ki18n:1 -ki18nc:1c,2 -ki18np:1,2 -ki18ncp:1c,2,3 -o $dest $(find -L "$dir" -name \*.qml)
|
||||
for f in $(find -L "$dir" -name \*.py)
|
||||
do
|
||||
echo "Extracting strings from python file: $f"
|
||||
xgettext --from-code=UTF-8 --language=python -ki18n:1 -ki18nc:1c,2 -ki18np:1,2 -ki18ncp:1c,2,3 -o $dest $f
|
||||
done
|
||||
|
||||
for f in $(find -L "$dir" -name \*.qml)
|
||||
do
|
||||
echo "Extracting strings from qml file: $f"
|
||||
xgettext --from-code=UTF-8 --join-existing --language=javascript -ki18n:1 -ki18nc:1c,2 -ki18np:1,2 -ki18ncp:1c,2,3 -o $dest $f
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue