Home
last modified time | relevance | path

Searched refs:Translate (Results 1 – 4 of 4) sorted by relevance

/base/update/updater/test/unittest/updater_ui_test/lang/
Dui_language_unittest.cpp195 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/
Dlanguage_ui.h39 const std::string &Translate(const std::string &key) const;
58 #define TR(tag) Lang::LanguageUI::GetInstance().Translate(STRINGFY(tag))
Dlanguage_ui.cpp132 const std::string &LanguageUI::Translate(const std::string &key) const in Translate() function in Updater::Lang::LanguageUI
/base/update/updater/services/ui/view/
Dview_api.cpp44 …return Lang::LanguageUI::GetInstance().Translate(id.substr(idStartPos, id.size() - emptyContent.si… in TranslateText()