fixed: the correct language of the menu on a pad window was not set properly
when the program started updated: chinese translation git-svn-id: svn://ttmath.org/publicrep/ttcalc/trunk@280 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -1245,7 +1245,7 @@ void Languages::InitGuiMessagesTab()
|
|||||||
InsertGuiPair(menu_view_normal_view, "&ÆÕͨÊÓͼ");
|
InsertGuiPair(menu_view_normal_view, "&ÆÕͨÊÓͼ");
|
||||||
InsertGuiPair(menu_view_compact_view, "&ÃÔÄãÊÓͼ");
|
InsertGuiPair(menu_view_compact_view, "&ÃÔÄãÊÓͼ");
|
||||||
InsertGuiPair(menu_view_always_on_top, "&×ÜÔÚ×îǰ");
|
InsertGuiPair(menu_view_always_on_top, "&×ÜÔÚ×îǰ");
|
||||||
InsertGuiPair(menu_view_pad, "&Pad");
|
InsertGuiPair(menu_view_pad, "Õ³Ìù°å");
|
||||||
InsertGuiPair(menu_view_lang_english, "&Ó¢Óï");
|
InsertGuiPair(menu_view_lang_english, "&Ó¢Óï");
|
||||||
InsertGuiPair(menu_view_lang_polish, "&²¨À¼Óï");
|
InsertGuiPair(menu_view_lang_polish, "&²¨À¼Óï");
|
||||||
InsertGuiPair(menu_view_lang_spanish, "&Î÷°àÑÀÓï");
|
InsertGuiPair(menu_view_lang_spanish, "&Î÷°àÑÀÓï");
|
||||||
@@ -1337,7 +1337,7 @@ void Languages::InitGuiMessagesTab()
|
|||||||
#endif
|
#endif
|
||||||
InsertGuiPair(update_download_error, "ÏÂÔØÊ±³öÏÖ´íÎó£¬ÇëÉÔºóÖØÊÔ¡£");
|
InsertGuiPair(update_download_error, "ÏÂÔØÊ±³öÏÖ´íÎó£¬ÇëÉÔºóÖØÊÔ¡£");
|
||||||
|
|
||||||
InsertGuiPair(pad_title, "&Õ³Ìù°å");
|
InsertGuiPair(pad_title, "Õ³Ìù°å");
|
||||||
InsertGuiPair(pad_menu_file, "&Îļþ");
|
InsertGuiPair(pad_menu_file, "&Îļþ");
|
||||||
InsertGuiPair(pad_menu_edit, "&±à¼");
|
InsertGuiPair(pad_menu_edit, "&±à¼");
|
||||||
InsertGuiPair(pad_menu_file_new, "&н¨"); // temporarily not used
|
InsertGuiPair(pad_menu_file_new, "&н¨"); // temporarily not used
|
||||||
|
|||||||
@@ -362,6 +362,8 @@ Languages * pLang = GetPrgRes()->GetLanguages();
|
|||||||
ModifyMenu(menu, menu_id, MF_BYCOMMAND|MF_STRING, menu_id, pLang->GuiMessage(msg) );
|
ModifyMenu(menu, menu_id, MF_BYCOMMAND|MF_STRING, menu_id, pLang->GuiMessage(msg) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void SetPadMenuLanguage(HWND hWnd)
|
void SetPadMenuLanguage(HWND hWnd)
|
||||||
{
|
{
|
||||||
HMENU menu = GetMenu(hWnd);
|
HMENU menu = GetMenu(hWnd);
|
||||||
@@ -902,6 +904,7 @@ ATOM a = RegisterPadClass(ttcalc_pad_class_name);
|
|||||||
0 /*GetPrgRes()->GetMainWindow()*/, 0, GetPrgRes()->GetInstance(), 0);
|
0 /*GetPrgRes()->GetMainWindow()*/, 0, GetPrgRes()->GetInstance(), 0);
|
||||||
|
|
||||||
GetPrgRes()->SetPadWindow(pad);
|
GetPrgRes()->SetPadWindow(pad);
|
||||||
|
SetPadLanguage();
|
||||||
GetPrgRes()->SetPadMaximized( pad_maximized_from_file );
|
GetPrgRes()->SetPadMaximized( pad_maximized_from_file );
|
||||||
GetPrgRes()->ShowPad( GetPrgRes()->IsPadVisible() );
|
GetPrgRes()->ShowPad( GetPrgRes()->IsPadVisible() );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user