diff --git a/tools/unix/generate_localizations.sh b/tools/unix/generate_localizations.sh index 2e69ab0b05..38ff33df79 100755 --- a/tools/unix/generate_localizations.sh +++ b/tools/unix/generate_localizations.sh @@ -44,12 +44,12 @@ fi # Validate and format/sort strings files. STRINGS_UTILS="$OMIM_PATH/tools/python/strings_utils.py" -$STRINGS_UTILS --validate --output -$STRINGS_UTILS --types-strings --validate --output +"$STRINGS_UTILS" --validate --output +"$STRINGS_UTILS" --types-strings --validate --output # Check for unused strings. CLEAN_STRINGS="$OMIM_PATH/tools/python/clean_strings_txt.py" -$CLEAN_STRINGS --validate +"$CLEAN_STRINGS" --validate # Generate android/iphone/jquery localization files from strings files. TWINE="$(gem contents twine | grep -m 1 bin/twine)" @@ -60,11 +60,11 @@ cat "$STRINGS_PATH"/{strings,types_strings}.txt> "$MERGED_FILE" # TODO: Add "--untagged --tags android" when tags are properly set. # TODO: Add validate-strings-file call to check for duplicates (and avoid Android build errors) when tags are properly set. -$TWINE generate-all-localization-files --include translated --format android "$MERGED_FILE" "$OMIM_PATH/android/res/" -$TWINE generate-all-localization-files --format apple "$MERGED_FILE" "$OMIM_PATH/iphone/Maps/LocalizedStrings/" -$TWINE generate-all-localization-files --format apple-plural "$MERGED_FILE" "$OMIM_PATH/iphone/Maps/LocalizedStrings/" -$TWINE generate-all-localization-files --format apple --file-name InfoPlist.strings "$OMIM_PATH/iphone/plist.txt" "$OMIM_PATH/iphone/Maps/LocalizedStrings/" -$TWINE generate-all-localization-files --format jquery "$OMIM_PATH/data/countries_names.txt" "$OMIM_PATH/data/countries-strings/" -$TWINE generate-all-localization-files --format jquery "$OMIM_PATH/data/strings/sound.txt" "$OMIM_PATH/data/sound-strings/" +"$TWINE" generate-all-localization-files --include translated --format android "$MERGED_FILE" "$OMIM_PATH/android/res/" +"$TWINE" generate-all-localization-files --format apple "$MERGED_FILE" "$OMIM_PATH/iphone/Maps/LocalizedStrings/" +"$TWINE" generate-all-localization-files --format apple-plural "$MERGED_FILE" "$OMIM_PATH/iphone/Maps/LocalizedStrings/" +"$TWINE" generate-all-localization-files --format apple --file-name InfoPlist.strings "$OMIM_PATH/iphone/plist.txt" "$OMIM_PATH/iphone/Maps/LocalizedStrings/" +"$TWINE" generate-all-localization-files --format jquery "$OMIM_PATH/data/countries_names.txt" "$OMIM_PATH/data/countries-strings/" +"$TWINE" generate-all-localization-files --format jquery "$OMIM_PATH/data/strings/sound.txt" "$OMIM_PATH/data/sound-strings/" rm $MERGED_FILE