| 86 | } |
| 87 | |
| 88 | string TranslatedRegionName(storage::CountryId const countryId) |
| 89 | { |
| 90 | auto nameGetter = platform::GetTextByIdFactoryForRegion(platform::TextSource::Countries, countryId); |
| 91 | |
| 92 | if (!nameGetter) |
| 93 | return {}; |
| 94 | |
| 95 | string shortName = (*nameGetter)(countryId + " Short"); |
| 96 | if (!shortName.empty()) |
| 97 | return shortName; |
| 98 | |
| 99 | string officialName = (*nameGetter)(countryId); |
| 100 | if (!officialName.empty()) |
| 101 | return officialName; |
| 102 | |
| 103 | return {}; |
| 104 | } |
| 105 | |
| 106 | string TranslatedBrand(string const translationKey) |
| 107 | { |
no test coverage detected