MCPcopy Create free account
hub / github.com/comaps/comaps / GetCustomMapLanguageCode

Function GetCustomMapLanguageCode

libs/i18n/localisation.cpp:71–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69using namespace std;
70
71optional<LanguageCode> GetCustomMapLanguageCode()
72{
73 LanguageCode mapLanguageCode;
74 UNUSED_VALUE(settings::Get(kMapLanguageSetting, mapLanguageCode));
75 if (!mapLanguageCode.empty())
76 return mapLanguageCode;
77
78 return {};
79}
80
81AlternativeMapLanguageHandling UsedAlternativeMapLanguageHandling()
82{

Callers 3

GetMapLanguageCodesFunction · 0.85
GetMapLanguageIndexesFunction · 0.85

Calls 2

GetFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected