Skip to content

Commit

Permalink
chore: fix ShowBalloon tip translation follow locale
Browse files Browse the repository at this point in the history
  • Loading branch information
fxliang committed Mar 14, 2024
1 parent 966616a commit e014437
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion WeaselServer/WeaselTrayIcon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ void WeaselTrayIcon::Refresh() {
SetIcon(mode_icon[mode]);

if (mode_label[mode] && m_disabled == false) {
ShowBalloon(mode_label[mode], WEASEL_IME_NAME);
if (GetThreadUILanguage() ==
MAKELANGID(LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL))
ShowBalloon(mode_label[mode], WEASEL_IME_NAME);
else
ShowBalloon(L"维护中", WEASEL_IME_NAME);
m_disabled = true;
}
if (m_mode != DISABLED)
Expand Down

0 comments on commit e014437

Please sign in to comment.