Skip to content

Commit

Permalink
[strings] strings.txt is moved to data/strings path
Browse files Browse the repository at this point in the history
  • Loading branch information
Arsentiy Milchakov authored and beloal committed Sep 25, 2018
1 parent 84e769f commit a7681b5
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 6 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tools/python/clean_strings_txt.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def get_args():

parser.add_argument(
"-o", "--output",
dest="output", default="strings.txt",
dest="output", default="data/strings/strings.txt",
help="""The name for the resulting file. It will be saved to the
project folder. Only relevant if the -s option is set."""
)
Expand Down
2 changes: 1 addition & 1 deletion tools/python/find_untranslated_strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class StringsTxt:

def __init__(self, strings_path=None):
if not strings_path:
self.strings_path = join(dirname(argv[0]), "..", "..", "strings.txt")
self.strings_path = join(dirname(argv[0]), "..", "..", "data","strings", "strings.txt")
else:
self.strings_path = strings_path

Expand Down
1 change: 0 additions & 1 deletion tools/python_tests/permissions_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ def get_build_tools_version(self):
def contains_correct_files(self, my_path):
dir_contents = listdir(my_path)
return (
"strings.txt" in dir_contents or
"android" in dir_contents or
"drape_frontend" in dir_contents
)
Expand Down
2 changes: 1 addition & 1 deletion tools/ruby/category_consistency/check_consistency.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
OMIM_ROOT = File.join(ROOT, '..', '..', '..')
CPP_CATEGORIES_FILENAME = File.join(OMIM_ROOT, 'search', 'displayed_categories.cpp')
CATEGORIES_FILENAME = File.join(OMIM_ROOT, 'data', 'categories.txt')
STRINGS_FILENAME = File.join(OMIM_ROOT, 'strings.txt')
STRINGS_FILENAME = File.join(OMIM_ROOT, 'data', 'strings', 'strings.txt')
CATEGORIES_MATCHER = /m_keys = \{(.*)\};/m

def load_categories_from_cpp(filename)
Expand Down
5 changes: 3 additions & 2 deletions tools/unix/generate_localizations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ set -e -u -x

OMIM_PATH="$(dirname "$0")/../.."
TWINE="$OMIM_PATH/tools/twine/twine"
STRINGS_PATH="$OMIM_PATH/data/strings"

MERGED_FILE="$(mktemp)"
cat "$OMIM_PATH/strings.txt" "$OMIM_PATH/partners_strings.txt" "$OMIM_PATH/data/types_strings.txt" > "$MERGED_FILE"
cat "$STRINGS_PATH/strings.txt" "$STRINGS_PATH/partners_strings.txt" "$STRINGS_PATH/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.
Expand All @@ -16,6 +17,6 @@ $TWINE generate-all-localization-files --format apple --file-name InfoPlist.stri
$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
#$TWINE generate-all-localization-files --include translated --format tizen "$STRINGS_PATH/strings.txt" "$OMIM_PATH/tizen/MapsWithMe/res/" --tags tizen

rm $MERGED_FILE

0 comments on commit a7681b5

Please sign in to comment.