我有我的應用程序,所有的翻譯工作完美,除了包含在wxTextEntryDialog對話框中的'OK'和'Cancel'。 如何讓這些翻譯得當?即使wxMessageBox在使用「確定」和「取消」時也能正常工作,但wxTextEntryDialog不會轉換爲任何其他語言。wxTextEntryDialog好的和取消的翻譯
我已經使用的語言分配以下摘錄我的代碼中:
wxLocale m_locale; // locale we'll be using (this is defined in the header file of my app)
// Within the source
lang = wxLANGUAGE_CHINESE_SIMPLIFIED; // for e.g. could be any language
m_locale.Init(lang);
// normally this wouldn't be necessary as the catalog files would be found in the default locations, but when the program is not installed the
// catalogs are in the build directory where we wouldn't find them by default
wxLocale::AddCatalogLookupPathPrefix(wxT(LanguagePath));// add path of install
// Initialize the catalogs we'll be using
m_locale.AddCatalog(_("messages")); // .mo file generated by my application language specific .mo file
預先感謝任何幫助。