From 2c2bea08364c31f7d21270271f689228022746d7 Mon Sep 17 00:00:00 2001 From: David Martinez <47610359+dvdmrtnz@users.noreply.github.com> Date: Sun, 3 Sep 2023 22:00:19 +0200 Subject: [PATCH] [tools] Fix android path in generate_localizations.sh Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com> --- tools/unix/generate_localizations.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/unix/generate_localizations.sh b/tools/unix/generate_localizations.sh index 709fa97aa2..bfc0103c20 100755 --- a/tools/unix/generate_localizations.sh +++ b/tools/unix/generate_localizations.sh @@ -59,7 +59,7 @@ MERGED_FILE="$(mktemp)" cat "$STRINGS_PATH"/{strings,types_strings}.txt> "$MERGED_FILE" # 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 --untagged --tags android "$MERGED_FILE" "$OMIM_PATH/android/app/main/res/" +"$TWINE" generate-all-localization-files --include translated --format android --untagged --tags android "$MERGED_FILE" "$OMIM_PATH/android/app/src/main/res/" "$TWINE" generate-all-localization-files --format apple --untagged --tags ios "$MERGED_FILE" "$OMIM_PATH/iphone/Maps/LocalizedStrings/" "$TWINE" generate-all-localization-files --format apple-plural --untagged --tags ios "$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/" @@ -82,7 +82,7 @@ if [ "$SUPPORTED_LOCALIZATIONS" != "$(grep supportedLocalizations "$GRADLE_PROPE fi # Generate locales_config.xml to allow users change app's language on Android 13+ -LOCALES_CONFIG="$OMIM_PATH/android/app/main/res/xml/locales_config.xml" +LOCALES_CONFIG="$OMIM_PATH/android/app/src/main/res/xml/locales_config.xml" SUPPORTED_LOCALIZATIONS=${SUPPORTED_LOCALIZATIONS/supportedLocalizations=/en,} SUPPORTED_LOCALIZATIONS=${SUPPORTED_LOCALIZATIONS/,en,/,} SUPPORTED_LOCALIZATIONS=${SUPPORTED_LOCALIZATIONS//_/-}