| 237 | } |
| 238 | |
| 239 | std::string Meta::GetExVocabTranslateTitleText() const { |
| 240 | std::string term; |
| 241 | |
| 242 | if (Tr::HasActiveTranslation()) { |
| 243 | term = Player::translation.GetCurrentLanguage().lang_term; |
| 244 | } else { |
| 245 | term = Player::translation.GetDefaultLanguage().lang_term; |
| 246 | } |
| 247 | |
| 248 | if (!term.empty()) { |
| 249 | return term; |
| 250 | } |
| 251 | |
| 252 | return GetExVocab(MTINI_EXVOCAB_TRANSLATE_TITLE_KEY, MTINI_EXVOCAB_TRANSLATE_TITLE_VALUE); |
| 253 | } |
| 254 | |
| 255 | std::string Meta::GetExVocab(std::string_view term, std::string_view def_value) const { |
| 256 | if (!Empty()) { |
no test coverage detected