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:
-rw-r--r--defines.hpp2
-rw-r--r--storage/storage.cpp1
-rw-r--r--storage/storage.hpp4
3 files changed, 7 insertions, 0 deletions
diff --git a/defines.hpp b/defines.hpp
index 9e19115b78..b35ed0a154 100644
--- a/defines.hpp
+++ b/defines.hpp
@@ -70,3 +70,5 @@
#define GPS_TRACK_FILENAME "gps_track.dat"
#define REPLACED_TAGS_FILE "replaced_tags.txt"
+
+#define LOCALIZATION_DESCRIPTION_SUFFIX " Description"
diff --git a/storage/storage.cpp b/storage/storage.cpp
index b1ee070bef..54b17d7e20 100644
--- a/storage/storage.cpp
+++ b/storage/storage.cpp
@@ -1332,6 +1332,7 @@ void Storage::GetNodeAttrs(TCountryId const & countryId, NodeAttrs & nodeAttrs)
nodeAttrs.m_status = statusAndErr.status;
nodeAttrs.m_error = statusAndErr.error;
nodeAttrs.m_nodeLocalName = m_countryNameGetter(countryId);
+ nodeAttrs.m_nodeLocalDescription = m_countryNameGetter(countryId + LOCALIZATION_DESCRIPTION_SUFFIX);
// Progress.
if (nodeAttrs.m_status == NodeStatus::OnDisk)
diff --git a/storage/storage.hpp b/storage/storage.hpp
index 428f9f566b..299b9b973c 100644
--- a/storage/storage.hpp
+++ b/storage/storage.hpp
@@ -76,6 +76,10 @@ struct NodeAttrs
/// a device locale.
string m_nodeLocalName;
+ /// The description of the node in a local language. That means the language dependent on
+ /// a device locale.
+ string m_nodeLocalDescription;
+
/// Node id and local name of the parents of the node.
/// For the root |m_parentInfo| is empty.
/// Locale language is a language set by Storage::SetLocale().