#include "wx/menu.h"
#include "wx/log.h"
+#include "wx/intl.h"
//-----------------------------------------------------------------------------
// wxMenuBar
void wxMenuItem::SetText(const wxString& str)
{
+ m_text = "";
for ( const char *pc = str; *pc != '\0'; pc++ ) {
if ( *pc == '&' )
pc++; // skip it
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 );
node = node->Next();
};
- wxLogDebug("wxMenu::FindItem: item %d not found.", id);
+ wxLogDebug(_("wxMenu::FindItem: item %d not found."), id);
return NULL;
}