summaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorAlbin <albin@mullvad.net>2022-07-26 09:29:07 +0200
committerAlbin <albin@mullvad.net>2022-07-29 12:15:34 +0200
commit0755755b7447479dbfa80ada2012fefd419f3c74 (patch)
treec8a7bf0807cf538a847823769b31e75c8138c1aa /scripts
parentcbcf2cda7b0ff74bacbac83d660d22b66ebf9171 (diff)
downloadmullvadvpn-0755755b7447479dbfa80ada2012fefd419f3c74.tar.xz
mullvadvpn-0755755b7447479dbfa80ada2012fefd419f3c74.zip
Add sync-only localization script option
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/localization9
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/localization b/scripts/localization
index a35445a011..6d0f6ac104 100755
--- a/scripts/localization
+++ b/scripts/localization
@@ -12,8 +12,9 @@ function main {
prepare) prepare_localization_strings;;
upload) upload_to_crowdin;;
download) download_from_crowdin;;
+ sync-local-files) sync_localizations;;
"")
- echo "Available subcommands: prepare, upload and download"
+ echo "Available subcommands: prepare, upload, download and sync-local-files"
;;
*)
echo "Unknown parameter: $1"
@@ -22,7 +23,7 @@ function main {
esac
}
-function update_messages_pot {
+function sync_localizations {
# Update desktop strings in messages.pot
log_header "Extracting localization strings from desktop app source code"
pushd ../gui
@@ -70,7 +71,7 @@ function commit_changes {
}
function prepare_localization_strings {
- update_messages_pot
+ sync_localizations
commit_changes "Update messages.pot"
update_relay_locations_pot
@@ -97,7 +98,7 @@ function download_from_crowdin {
# Add new translations to Android xml-files
log_header "Updating Android xml-files with new translations"
- update_messages_pot
+ sync_localizations
commit_changes "Update translations"
}