From b39448f3cd84450ee8c25e9d514553d58362d122 Mon Sep 17 00:00:00 2001 From: Alexandre Vicenzi Date: Tue, 14 Mar 2017 00:12:22 -0300 Subject: [PATCH] Update transle script. --- translate.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/translate.sh b/translate.sh index 8bf3e9e..c2dc301 100755 --- a/translate.sh +++ b/translate.sh @@ -1,19 +1,19 @@ #!/usr/bin/env bash function extract_pot() { - pybabel extract --mapping translations/babel.cfg --output translations/messages.pot ./ + pybabel extract -s --no-wrap --project="Flex" --copyright-holder="Alexandre Vicenzi" --version="2.1.0" --mapping translations/babel.cfg --output translations/messages.pot ./ } function new_translation() { - pybabel init --input-file translations/messages.pot --output-dir translations/ --locale $1 --domain messages + pybabel init --no-wrap --input-file translations/messages.pot --output-dir translations/ --locale $1 --domain messages } function update_translation() { - pybabel update --input-file translations/messages.pot --output-dir translations/ --domain messages + pybabel update --no-wrap --input-file translations/messages.pot --output-dir translations/ --domain messages } function compile_translations() { - pybabel compile --directory translations/ --domain messages + pybabel compile -f --directory translations/ --domain messages } function can_run() {