Searched refs:Translate (Results 1 – 4 of 4) sorted by relevance
/base/update/updater/test/unittest/updater_ui_test/lang/ |
D | ui_language_unittest.cpp | 195 EXPECT_EQ(LanguageUI::GetInstance().Translate("REBOOT_DEVICE"), "reboot devices"); 196 EXPECT_EQ(LanguageUI::GetInstance().Translate("SHUTDOWN_DEVICE"), "shutdown device"); 197 EXPECT_EQ(LanguageUI::GetInstance().Translate("FACTORY_RESET"), "factory reset"); 198 EXPECT_EQ(LanguageUI::GetInstance().Translate("NOT_EXIST_KEY"), ""); 202 EXPECT_EQ(LanguageUI::GetInstance().Translate("REBOOT_DEVICE"), "重启设备"); 203 EXPECT_EQ(LanguageUI::GetInstance().Translate("SHUTDOWN_DEVICE"), "关闭设备"); 204 EXPECT_EQ(LanguageUI::GetInstance().Translate("FACTORY_RESET"), "清除用户数据"); 205 EXPECT_EQ(LanguageUI::GetInstance().Translate("NOT_EXIST_KEY"), ""); 216 EXPECT_EQ(LanguageUI::GetInstance().Translate("REBOOT_DEVICE"), "reboot devices"); 217 EXPECT_EQ(LanguageUI::GetInstance().Translate("SHUTDOWN_DEVICE"), "shutdown device"); [all …]
|
/base/update/updater/services/ui/language/ |
D | language_ui.h | 39 const std::string &Translate(const std::string &key) const; 58 #define TR(tag) Lang::LanguageUI::GetInstance().Translate(STRINGFY(tag))
|
D | language_ui.cpp | 132 const std::string &LanguageUI::Translate(const std::string &key) const in Translate() function in Updater::Lang::LanguageUI
|
/base/update/updater/services/ui/view/ |
D | view_api.cpp | 44 …return Lang::LanguageUI::GetInstance().Translate(id.substr(idStartPos, id.size() - emptyContent.si… in TranslateText()
|