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
diff options
context:
space:
mode:
authorDaria Volvenkova <d.volvenkova@corp.mail.ru>2017-03-28 15:16:47 +0300
committerDaria Volvenkova <d.volvenkova@corp.mail.ru>2017-03-30 14:54:36 +0300
commit8c3d4f78c7df9ae3fcb0fa912f9ea18803dd7e40 (patch)
treebb1016f27e80664676e8f11db6d06db8972e1e2b /indexer/feature_utils.hpp
parent2d5a2fd236c095bc1053a12fa4f4862e4b3693a6 (diff)
Corrected priority of transliteration.
Diffstat (limited to 'indexer/feature_utils.hpp')
-rw-r--r--indexer/feature_utils.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/indexer/feature_utils.hpp b/indexer/feature_utils.hpp
index d6ff2ff180..f627e284ec 100644
--- a/indexer/feature_utils.hpp
+++ b/indexer/feature_utils.hpp
@@ -19,6 +19,7 @@ namespace feature
/// - device language name;
/// - international name;
/// - english name.
+ /// - transliterated name.
/// Secondary name using priority:
/// - default name;
/// - international name;
@@ -27,20 +28,22 @@ namespace feature
/// In case when primary name is empty it will be propagated from secondary and secondary will be
/// cleared. In case when primary name contains secondary name then secondary will be cleared.
void GetPreferredNames(RegionData const & regionData, StringUtf8Multilang const & src,
- int8_t const deviceLang, string & primary, string & secondary);
+ int8_t const deviceLang, bool allowTranslit, string & primary, string & secondary);
/// When MWM contains user's language, the priority is the following:
/// - device language name;
/// - default name;
/// - international name;
/// - english name;
+ /// - transliterated name;
/// - country language name.
/// When MWM does not contain user's language, the priority is the following:
/// - device language name;
/// - international name;
/// - english name;
+ /// - transliterated name;
/// - default name;
/// - country language name.
void GetReadableName(RegionData const & regionData, StringUtf8Multilang const & src,
- int8_t const deviceLang, string & out);
+ int8_t const deviceLang, bool allowTranslit, string & out);
} // namespace feature