Skip to content

Commit

Permalink
generate_pot: Fix command to work properly with Unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
khalim19 committed Oct 4, 2015
1 parent cb7481f commit 1fb0e67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion export_layers/locale/generate_pot.sh
Expand Up @@ -21,9 +21,10 @@ AUTHOR_NAME='khalim19'
AUTHOR_MAIL='khalim19@gmail.com'

find "$INPUT_DIRECTORY" -type f -iname '*.py' | \
xargs xgettext --language=Python --keyword='_' --keyword='N_' --package-name="$PLUGIN_NAME" --package-version="$plugin_version" --copyright-holder="$AUTHOR_NAME" --msgid-bugs-address="$AUTHOR_MAIL" --output="$OUTPUT_FILE"
xargs xgettext --language=Python --keyword='_' --keyword='N_' --package-name="$PLUGIN_NAME" --package-version="$plugin_version" --copyright-holder="$AUTHOR_NAME" --msgid-bugs-address="$AUTHOR_MAIL" --output="$OUTPUT_FILE" --from-code='UTF-8'

sed -i '
s/\(This file is distributed under the same license as the\) PACKAGE \(package\.\)/\1 '\'"$PLUGIN_NAME"\'' \2/
s/\(Content-Type: text\/plain; charset\)=CHARSET/\1=UTF-8/
' "$OUTPUT_FILE"

0 comments on commit 1fb0e67

Please sign in to comment.