File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.25 )
22
33project (omodsim
4- VERSION 1.8.0
4+ VERSION 1.8.1
55 LANGUAGES CXX )
66
77set (CMAKE_AUTOUIC ON )
@@ -234,6 +234,7 @@ set(UI_FILES
234234
235235set (TS_FILES
236236 translations/omodsim_ru.ts
237+ translations/omodsim_zh.ts
237238)
238239
239240set (JSHELP_INPUT "${CMAKE_SOURCE_DIR} /docs/jshelp.qhcp" )
Original file line number Diff line number Diff line change @@ -892,6 +892,14 @@ void MainWindow::on_actionRussian_triggered()
892892 setLanguage (" ru" );
893893}
894894
895+ // /
896+ // / \brief MainWindow::on_actionChineseZh_triggered
897+ // /
898+ void MainWindow::on_actionChineseZh_triggered ()
899+ {
900+ setLanguage (" zh" );
901+ }
902+
895903// /
896904// / \brief MainWindow::on_actionCascade_triggered
897905// /
Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ private slots:
114114 /* Language menu slots */
115115 void on_actionEnglish_triggered ();
116116 void on_actionRussian_triggered ();
117+ void on_actionChineseZh_triggered ();
117118
118119 /* Window menu slots */
119120 void on_actionCascade_triggered ();
Original file line number Diff line number Diff line change 1111 </rect >
1212 </property >
1313 <property name =" contextMenuPolicy" >
14- <enum >Qt::ContextMenuPolicy:: NoContextMenu</enum >
14+ <enum >Qt::NoContextMenu</enum >
1515 </property >
1616 <property name =" windowTitle" >
1717 <string >Open ModSim</string >
190190 </property >
191191 <addaction name =" actionEnglish" />
192192 <addaction name =" actionRussian" />
193+ <addaction name =" actionChineseZh" />
193194 </widget >
194195 <addaction name =" actionToolbar" />
195196 <addaction name =" actionStatusBar" />
644645 <bool >true</bool >
645646 </property >
646647 <property name =" text" >
647- <string >English</string >
648+ <string notr = " true " >English</string >
648649 </property >
649650 </action >
650651 <action name =" actionRussian" >
651652 <property name =" checkable" >
652653 <bool >true</bool >
653654 </property >
654655 <property name =" text" >
655- <string >Русский</string >
656+ <string notr = " true " >Русский</string >
656657 </property >
657658 </action >
658659 <action name =" actionForceCoils" >
991992 <string >ANSI</string >
992993 </property >
993994 <property name =" menuRole" >
994- <enum >QAction::MenuRole::NoRole</enum >
995+ <enum >QAction::NoRole</enum >
996+ </property >
997+ </action >
998+ <action name =" actionChineseZh" >
999+ <property name =" text" >
1000+ <string notr =" true" >中國人</string >
9951001 </property >
9961002 </action >
9971003 </widget >
Original file line number Diff line number Diff line change 5050 <file>res/actionUInt64.png</file>
5151 <file>res/actionSwapBytes.png</file>
5252 <file>res/actionAnsi.png</file>
53+ <file>translations/omodsim_zh.qm</file>
5354 </qresource>
5455</RCC>
You can’t perform that action at this time.
0 commit comments