summaryrefslogtreecommitdiffhomepage
path: root/scripts/localization
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/localization')
-rwxr-xr-xscripts/localization13
1 files changed, 3 insertions, 10 deletions
diff --git a/scripts/localization b/scripts/localization
index 965ca0ff17..da05b455bc 100755
--- a/scripts/localization
+++ b/scripts/localization
@@ -8,6 +8,9 @@ cd "$SCRIPT_DIR"
# shellcheck disable=SC1091
source utils/log
+# shellcheck disable=SC1091
+source utils/localization_utils
+
function main {
case ${1:-""} in
prepare) prepare_localization_strings;;
@@ -50,12 +53,6 @@ function update_relay_locations_pot {
popd
}
-function commit_changes {
- if ! git diff-index --quiet HEAD --; then
- git commit -a -S -m "$1"
- fi
-}
-
function prepare_localization_strings {
sync_localizations
commit_changes "Update messages.pot"
@@ -64,10 +61,6 @@ function prepare_localization_strings {
commit_changes "Update relay-locations.pot"
}
-function ensure_crowdin_api_key {
- test ! -z "$CROWDIN_API_KEY"
-}
-
function upload_to_crowdin {
ensure_crowdin_api_key