Commit eb4e6119 authored by plyatov's avatar plyatov

Chinese translation support added.

parent d2b18976
......@@ -475,6 +475,10 @@ void WinEDA_App::SetLanguageIdentifier( int menu_id )
m_LanguageId = wxLANGUAGE_CATALAN;
break;
case ID_LANGUAGE_CHINESE_SIMPLIFIED:
m_LanguageId = wxLANGUAGE_CHINESE_SIMPLIFIED;
break;
default:
m_LanguageId = wxLANGUAGE_DEFAULT;
break;
......@@ -559,9 +563,15 @@ wxMenu* WinEDA_App::SetLanguageList( wxMenu* MasterMenu )
_( "Catalan" ), wxEmptyString, wxITEM_CHECK );
SETBITMAPS( lang_catalan_xpm );
m_Language_Menu->Append( item );
item = new wxMenuItem( m_Language_Menu, ID_LANGUAGE_CHINESE_SIMPLIFIED,
_( "Chinese simplified" ), wxEmptyString, wxITEM_CHECK );
//SETBITMAPS( lang_chinese_simplified_xpm );
m_Language_Menu->Append( item );
}
m_Language_Menu->Check( ID_LANGUAGE_CATALAN, FALSE );
m_Language_Menu->Check( ID_LANGUAGE_CHINESE_SIMPLIFIED, FALSE );
m_Language_Menu->Check( ID_LANGUAGE_KOREAN, FALSE );
m_Language_Menu->Check( ID_LANGUAGE_RUSSIAN, FALSE );
m_Language_Menu->Check( ID_LANGUAGE_POLISH, FALSE );
......@@ -581,6 +591,10 @@ wxMenu* WinEDA_App::SetLanguageList( wxMenu* MasterMenu )
m_Language_Menu->Check( ID_LANGUAGE_CATALAN, TRUE );
break;
case wxLANGUAGE_CHINESE_SIMPLIFIED:
m_Language_Menu->Check( ID_LANGUAGE_CHINESE_SIMPLIFIED, TRUE );
break;
case wxLANGUAGE_KOREAN:
m_Language_Menu->Check( ID_LANGUAGE_KOREAN, TRUE );
break;
......
......@@ -150,7 +150,7 @@ enum main_id {
ID_LANGUAGE_POLISH,
ID_LANGUAGE_KOREAN,
ID_LANGUAGE_CATALAN,
ID_LANGUAGE_UNUSED3,
ID_LANGUAGE_CHINESE_SIMPLIFIED,
ID_LANGUAGE_UNUSED4,
ID_LANGUAGE_CHOICE_END,
......
No preview for this file type
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment