X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/54ff4a701f6c83aad8387a31b652f209681210cb..fc008f25922fe85d2308d4335c3cbc0ad436c60d:/src/gtk1/menu.cpp diff --git a/src/gtk1/menu.cpp b/src/gtk1/menu.cpp index 46a12dee68..93bc49891b 100644 --- a/src/gtk1/menu.cpp +++ b/src/gtk1/menu.cpp @@ -15,6 +15,7 @@ #include "wx/menu.h" #include "wx/log.h" +#include "wx/intl.h" //----------------------------------------------------------------------------- // wxMenuBar @@ -183,6 +184,7 @@ wxMenuItem::wxMenuItem() void wxMenuItem::SetText(const wxString& str) { + m_text = ""; for ( const char *pc = str; *pc != '\0'; pc++ ) { if ( *pc == '&' ) pc++; // skip it @@ -193,7 +195,7 @@ void wxMenuItem::SetText(const wxString& str) void wxMenuItem::Check( bool check ) { - wxCHECK_RET( IsCheckable(), "can't check uncheckable item!" ) + wxCHECK_RET( IsCheckable(), _("Can't check uncheckable item!") ) m_isChecked = check; gtk_check_menu_item_set_state( (GtkCheckMenuItem*)m_menuItem, (gint)check ); @@ -355,7 +357,7 @@ wxMenuItem *wxMenu::FindItem(int id) const node = node->Next(); }; - wxLogDebug("wxMenu::FindItem: item %d not found.", id); + wxLogDebug(_("wxMenu::FindItem: item %d not found."), id); return NULL; }