mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-10 06:14:20 +00:00
[ios] Added setting for map language
Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
This commit is contained in:
committed by
Konstantin Pastbin
parent
1fe8f1f0e6
commit
1cf4ff21ec
@@ -2498,6 +2498,16 @@ void Framework::SetMapLanguageCode(std::string const & langCode)
|
||||
m_searchAPI->SetLocale(langCode);
|
||||
}
|
||||
|
||||
void Framework::ResetMapLanguageCode()
|
||||
{
|
||||
settings::Delete(settings::kMapLanguageCode);
|
||||
if (m_drapeEngine)
|
||||
ApplyMapLanguageCode(languages::GetCurrentMapLanguage());
|
||||
|
||||
if (m_searchAPI)
|
||||
m_searchAPI->SetLocale(languages::GetCurrentMapLanguage());
|
||||
}
|
||||
|
||||
void Framework::ApplyMapLanguageCode(std::string const & langCode)
|
||||
{
|
||||
int8_t langIndex = StringUtf8Multilang::GetLangIndex(langCode);
|
||||
|
||||
@@ -706,6 +706,7 @@ private:
|
||||
public:
|
||||
static std::string GetMapLanguageCode();
|
||||
void SetMapLanguageCode(std::string const & langCode);
|
||||
void ResetMapLanguageCode();
|
||||
|
||||
void SetLargeFontsSize(bool isLargeSize);
|
||||
bool LoadLargeFontsSize();
|
||||
|
||||
Reference in New Issue
Block a user