mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Move translation scripts to Cura from Uranium
CURA-9814
This commit is contained in:
parent
24cb9e16a8
commit
20778f3d10
11 changed files with 603 additions and 0 deletions
12
scripts/translations/extract-python
Executable file
12
scripts/translations/extract-python
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Use xgettext to extract all strings from a set of python files.
|
||||
# Argument 1 is the directory to search for python files, argument 2
|
||||
# is the destination file.
|
||||
#
|
||||
# This script will extract strings marked using i18n or i18nc methods.
|
||||
# See UM/i18n.py for the relevant methods.
|
||||
#
|
||||
dir=$1
|
||||
dest=$2
|
||||
xgettext --from-code=UTF-8 --language=python -ki18n:1 -ki18nc:1c,2 -o $dest $(find -L "$dir" -name \*.py)
|
||||
Loading…
Add table
Add a link
Reference in a new issue