Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorgreshilov <slovaricheg@gmail.com>2018-07-09 10:54:10 +0300
committerAleksandr Zatsepin <alexzatsepin@users.noreply.github.com>2018-07-09 19:15:34 +0300
commita46a0ef95618c3e1070178bf5ac24b41378ef6d4 (patch)
tree11a93dca746bf2a626fd557b62bd40564fbb3273 /tools
parentecbd6c03481dd06a46be5f61ee58a45fa76de580 (diff)
[DNM][partners_api][android][ios] Add auto partners generator support
Diffstat (limited to 'tools')
-rwxr-xr-xtools/unix/generate_localizations.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/tools/unix/generate_localizations.sh b/tools/unix/generate_localizations.sh
index 9b574cb82b..10a1b1f1f6 100755
--- a/tools/unix/generate_localizations.sh
+++ b/tools/unix/generate_localizations.sh
@@ -4,13 +4,18 @@ set -e -u -x
OMIM_PATH="$(dirname "$0")/../.."
TWINE="$OMIM_PATH/tools/twine/twine"
+MERGED_FILE="$(mktemp)"
+cat "$OMIM_PATH/strings.txt" "$OMIM_PATH/partners_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 "$OMIM_PATH/strings.txt" "$OMIM_PATH/android/res/"
-$TWINE generate-all-localization-files --format apple "$OMIM_PATH/strings.txt" "$OMIM_PATH/iphone/Maps/LocalizedStrings/"
-$TWINE generate-all-localization-files --format apple-plural "$OMIM_PATH/strings.txt" "$OMIM_PATH/iphone/Maps/LocalizedStrings/"
+$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/cuisines.txt" "$OMIM_PATH/data/cuisine-strings/"
$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/sound.txt" "$OMIM_PATH/data/sound-strings/"
#$TWINE generate-all-localization-files --include translated --format tizen "$OMIM_PATH/strings.txt" "$OMIM_PATH/tizen/MapsWithMe/res/" --tags tizen
+
+rm $MERGED_FILE