fix bug:#I833QV【次要】【计算器】计算器右上角“选项”悬浮显示为英文

This commit is contained in:
lidecheng 2023-11-16 09:39:40 +08:00
parent eb0868645f
commit 4770b4569b
2 changed files with 92 additions and 95 deletions

View File

@ -4,52 +4,52 @@
<context> <context>
<name>Calc</name> <name>Calc</name>
<message> <message>
<location filename="../calc_programmer/calc/calc.cpp" line="85"/> <location filename="../calc_programmer/calc/calc.cpp" line="87"/>
<source>The expression is empty!</source> <source>The expression is empty!</source>
<translation>!</translation> <translation>!</translation>
</message> </message>
<message> <message>
<location filename="../calc_programmer/calc/calc.cpp" line="106"/> <location filename="../calc_programmer/calc/calc.cpp" line="109"/>
<location filename="../calc_programmer/calc/calc.cpp" line="121"/>
<location filename="../calc_programmer/calc/calc.cpp" line="126"/> <location filename="../calc_programmer/calc/calc.cpp" line="126"/>
<location filename="../calc_programmer/calc/calc.cpp" line="153"/> <location filename="../calc_programmer/calc/calc.cpp" line="132"/>
<location filename="../calc_programmer/calc/calc.cpp" line="180"/> <location filename="../calc_programmer/calc/calc.cpp" line="160"/>
<location filename="../calc_programmer/calc/calc.cpp" line="247"/> <location filename="../calc_programmer/calc/calc.cpp" line="188"/>
<location filename="../calc_programmer/calc/calc.cpp" line="272"/> <location filename="../calc_programmer/calc/calc.cpp" line="259"/>
<location filename="../calc_programmer/calc/calc.cpp" line="298"/> <location filename="../calc_programmer/calc/calc.cpp" line="286"/>
<location filename="../calc_programmer/calc/calc.cpp" line="314"/>
<source>Expression error!</source> <source>Expression error!</source>
<translation>!</translation> <translation>!</translation>
</message> </message>
<message> <message>
<location filename="../calc_programmer/calc/calc.cpp" line="116"/> <location filename="../calc_programmer/calc/calc.cpp" line="120"/>
<location filename="../calc_programmer/calc/calc.cpp" line="140"/> <location filename="../calc_programmer/calc/calc.cpp" line="147"/>
<source>Missing left parenthesis!</source> <source>Missing left parenthesis!</source>
<translation>!</translation> <translation>!</translation>
</message> </message>
<message> <message>
<location filename="../calc_programmer/calc/calc.cpp" line="207"/> <location filename="../calc_programmer/calc/calc.cpp" line="217"/>
<source>The value is too large!</source> <source>The value is too large!</source>
<translation>!</translation> <translation>!</translation>
</message> </message>
<message> <message>
<location filename="../calc_programmer/calc/calc.cpp" line="219"/> <location filename="../calc_programmer/calc/calc.cpp" line="230"/>
<source>Miss operand!</source> <source>Miss operand!</source>
<translation>!</translation> <translation>!</translation>
</message> </message>
<message> <message>
<location filename="../calc_programmer/calc/calc.cpp" line="328"/> <location filename="../calc_programmer/calc/calc.cpp" line="345"/>
<location filename="../calc_programmer/calc/calc.cpp" line="386"/> <location filename="../calc_programmer/calc/calc.cpp" line="404"/>
<source>Operator undefined!</source> <source>Operator undefined!</source>
<translation>!</translation> <translation>!</translation>
</message> </message>
<message> <message>
<location filename="../calc_programmer/calc/calc.cpp" line="350"/> <location filename="../calc_programmer/calc/calc.cpp" line="367"/>
<source>Divisor cannot be 0!</source> <source>Divisor cannot be 0!</source>
<translation>0!</translation> <translation>0!</translation>
</message> </message>
<message> <message>
<location filename="../calc_programmer/calc/calc.cpp" line="370"/> <location filename="../calc_programmer/calc/calc.cpp" line="387"/>
<location filename="../calc_programmer/calc/calc.cpp" line="378"/> <location filename="../calc_programmer/calc/calc.cpp" line="395"/>
<source>Right operand error!</source> <source>Right operand error!</source>
<translation>!</translation> <translation>!</translation>
</message> </message>
@ -102,57 +102,57 @@
<context> <context>
<name>MainWindow</name> <name>MainWindow</name>
<message> <message>
<location filename="../src/mainwindow.cpp" line="233"/> <location filename="../src/mainwindow.cpp" line="249"/>
<source>Calculator</source> <source>Calculator</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="996"/> <location filename="../src/mainwindow.cpp" line="1087"/>
<location filename="../src/mainwindow.cpp" line="1185"/> <location filename="../src/mainwindow.cpp" line="1305"/>
<location filename="../src/mainwindow.cpp" line="1201"/> <location filename="../src/mainwindow.cpp" line="1321"/>
<source>standard</source> <source>standard</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="1183"/> <location filename="../src/mainwindow.cpp" line="1303"/>
<source>calculator</source> <source>calculator</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="260"/> <location filename="../src/mainwindow.cpp" line="276"/>
<source>Copy</source> <source>Copy</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="261"/> <location filename="../src/mainwindow.cpp" line="277"/>
<source>Paste</source> <source>Paste</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="853"/> <location filename="../src/mainwindow.cpp" line="931"/>
<source>input too long</source> <source>input too long</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="55"/> <location filename="../src/mainwindow.cpp" line="77"/>
<location filename="../src/mainwindow.cpp" line="1185"/> <location filename="../src/mainwindow.cpp" line="1305"/>
<location filename="../src/mainwindow.cpp" line="1205"/> <location filename="../src/mainwindow.cpp" line="1325"/>
<source>scientific</source> <source>scientific</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="1218"/> <location filename="../src/mainwindow.cpp" line="1338"/>
<source>exchange rate</source> <source>exchange rate</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="748"/> <location filename="../src/mainwindow.cpp" line="827"/>
<location filename="../src/mainwindow.cpp" line="752"/> <location filename="../src/mainwindow.cpp" line="831"/>
<source>Error!</source> <source>Error!</source>
<translation>!</translation> <translation>!</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="756"/> <location filename="../src/mainwindow.cpp" line="835"/>
<source>Input error!</source> <source>Input error!</source>
<translation>!</translation> <translation>!</translation>
</message> </message>
@ -169,13 +169,13 @@
<context> <context>
<name>ProgramModel</name> <name>ProgramModel</name>
<message> <message>
<location filename="../src/programmer/programmodel.cpp" line="234"/> <location filename="../src/programmer/programmodel.cpp" line="232"/>
<location filename="../src/programmer/programmodel.cpp" line="318"/> <location filename="../src/programmer/programmodel.cpp" line="316"/>
<source>Input error!</source> <source>Input error!</source>
<translation>!</translation> <translation>!</translation>
</message> </message>
<message> <message>
<location filename="../src/programmer/programmodel.cpp" line="400"/> <location filename="../src/programmer/programmodel.cpp" line="398"/>
<source>ShowBinary</source> <source>ShowBinary</source>
<translation></translation> <translation></translation>
</message> </message>
@ -184,7 +184,7 @@
<translation type="vanished"></translation> <translation type="vanished"></translation>
</message> </message>
<message> <message>
<location filename="../src/programmer/programmodel.cpp" line="406"/> <location filename="../src/programmer/programmodel.cpp" line="409"/>
<source>HideBinary</source> <source>HideBinary</source>
<translation></translation> <translation></translation>
</message> </message>
@ -196,12 +196,12 @@
<translation type="vanished"></translation> <translation type="vanished"></translation>
</message> </message>
<message> <message>
<location filename="../src/titlebar.cpp" line="280"/> <location filename="../src/titlebar.cpp" line="288"/>
<source>Standard</source> <source>Standard</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/titlebar.cpp" line="281"/> <location filename="../src/titlebar.cpp" line="289"/>
<source>Scientific</source> <source>Scientific</source>
<translation></translation> <translation></translation>
</message> </message>
@ -210,15 +210,15 @@
<translation type="vanished"> </translation> <translation type="vanished"> </translation>
</message> </message>
<message> <message>
<location filename="../src/titlebar.cpp" line="56"/> <location filename="../src/titlebar.cpp" line="55"/>
<location filename="../src/titlebar.cpp" line="67"/> <location filename="../src/titlebar.cpp" line="70"/>
<location filename="../src/titlebar.cpp" line="248"/> <location filename="../src/titlebar.cpp" line="256"/>
<source>standard</source> <source>standard</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/titlebar.cpp" line="57"/> <location filename="../src/titlebar.cpp" line="56"/>
<location filename="../src/titlebar.cpp" line="260"/> <location filename="../src/titlebar.cpp" line="268"/>
<source>scientific</source> <source>scientific</source>
<translation></translation> <translation></translation>
</message> </message>
@ -227,41 +227,41 @@
<translation type="vanished"> </translation> <translation type="vanished"> </translation>
</message> </message>
<message> <message>
<location filename="../src/titlebar.cpp" line="282"/> <location filename="../src/titlebar.cpp" line="290"/>
<source>Exchange Rate</source> <source>Exchange Rate</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/titlebar.cpp" line="283"/> <location filename="../src/titlebar.cpp" line="291"/>
<source>Programmer</source> <source>Programmer</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/titlebar.cpp" line="308"/> <location filename="../src/titlebar.cpp" line="316"/>
<source>StayTop</source> <source>StayTop</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/titlebar.cpp" line="413"/> <location filename="../src/titlebar.cpp" line="426"/>
<source>Restore</source> <source>Restore</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/titlebar.cpp" line="112"/> <location filename="../src/titlebar.cpp" line="120"/>
<location filename="../src/titlebar.cpp" line="309"/> <location filename="../src/titlebar.cpp" line="317"/>
<source>Minimize</source> <source>Minimize</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/titlebar.cpp" line="113"/> <location filename="../src/titlebar.cpp" line="121"/>
<location filename="../src/titlebar.cpp" line="310"/> <location filename="../src/titlebar.cpp" line="318"/>
<location filename="../src/titlebar.cpp" line="404"/> <location filename="../src/titlebar.cpp" line="417"/>
<source>Maximize</source> <source>Maximize</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/titlebar.cpp" line="114"/> <location filename="../src/titlebar.cpp" line="122"/>
<location filename="../src/titlebar.cpp" line="311"/> <location filename="../src/titlebar.cpp" line="319"/>
<source>Close</source> <source>Close</source>
<translation></translation> <translation></translation>
</message> </message>
@ -274,14 +274,14 @@
</message> </message>
<message> <message>
<location filename="../src/programmer/toolbar.cpp" line="63"/> <location filename="../src/programmer/toolbar.cpp" line="63"/>
<location filename="../src/programmer/toolbar.cpp" line="219"/> <location filename="../src/programmer/toolbar.cpp" line="207"/>
<location filename="../src/programmer/toolbar.cpp" line="222"/> <location filename="../src/programmer/toolbar.cpp" line="210"/>
<source>ShowBinary</source> <source>ShowBinary</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/programmer/toolbar.cpp" line="220"/> <location filename="../src/programmer/toolbar.cpp" line="208"/>
<location filename="../src/programmer/toolbar.cpp" line="221"/> <location filename="../src/programmer/toolbar.cpp" line="209"/>
<source>HideBinary</source> <source>HideBinary</source>
<translation></translation> <translation></translation>
</message> </message>
@ -289,22 +289,22 @@
<context> <context>
<name>ToolModelOutput</name> <name>ToolModelOutput</name>
<message> <message>
<location filename="../src/toolmodel.cpp" line="80"/> <location filename="../src/toolmodel.cpp" line="82"/>
<source>Rate update</source> <source>Rate update</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/toolmodel.cpp" line="95"/> <location filename="../src/toolmodel.cpp" line="97"/>
<source>Chinese Yuan</source> <source>Chinese Yuan</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/toolmodel.cpp" line="103"/> <location filename="../src/toolmodel.cpp" line="104"/>
<source>US Dollar</source> <source>US Dollar</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/toolmodel.cpp" line="515"/> <location filename="../src/toolmodel.cpp" line="504"/>
<source>Error!</source> <source>Error!</source>
<translation>!</translation> <translation>!</translation>
</message> </message>
@ -312,14 +312,12 @@
<context> <context>
<name>UnitListWidget</name> <name>UnitListWidget</name>
<message> <message>
<location filename="../src/toolmodel.cpp" line="1163"/>
<source>currency</source> <source>currency</source>
<translation></translation> <translation type="vanished"></translation>
</message> </message>
<message> <message>
<location filename="../src/toolmodel.cpp" line="1169"/>
<source>cancel</source> <source>cancel</source>
<translation></translation> <translation type="vanished"></translation>
</message> </message>
<message> <message>
<source>search</source> <source>search</source>
@ -329,94 +327,93 @@
<context> <context>
<name>menuModule</name> <name>menuModule</name>
<message> <message>
<location filename="../src/menumodule/menumodule.cpp" line="44"/>
<source>Menu</source> <source>Menu</source>
<translation></translation> <translation type="vanished"></translation>
</message> </message>
<message> <message>
<location filename="../src/menumodule/menumodule.cpp" line="56"/> <location filename="../src/menumodule/menumodule.cpp" line="40"/>
<location filename="../src/menumodule/menumodule.cpp" line="155"/> <source>Options</source>
<translation></translation>
</message>
<message>
<location filename="../src/menumodule/menumodule.cpp" line="52"/>
<location filename="../src/menumodule/menumodule.cpp" line="90"/>
<source>Standard</source> <source>Standard</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/menumodule/menumodule.cpp" line="58"/> <location filename="../src/menumodule/menumodule.cpp" line="54"/>
<location filename="../src/menumodule/menumodule.cpp" line="157"/> <location filename="../src/menumodule/menumodule.cpp" line="92"/>
<source>Scientific</source> <source>Scientific</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/menumodule/menumodule.cpp" line="60"/> <location filename="../src/menumodule/menumodule.cpp" line="56"/>
<location filename="../src/menumodule/menumodule.cpp" line="159"/> <location filename="../src/menumodule/menumodule.cpp" line="94"/>
<source>Exchange Rate</source> <source>Exchange Rate</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/menumodule/menumodule.cpp" line="62"/> <location filename="../src/menumodule/menumodule.cpp" line="58"/>
<location filename="../src/menumodule/menumodule.cpp" line="161"/> <location filename="../src/menumodule/menumodule.cpp" line="96"/>
<source>Programmer</source> <source>Programmer</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/menumodule/menumodule.cpp" line="68"/> <location filename="../src/menumodule/menumodule.cpp" line="64"/>
<source>Theme</source> <source>Theme</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/menumodule/menumodule.cpp" line="70"/> <location filename="../src/menumodule/menumodule.cpp" line="66"/>
<location filename="../src/menumodule/menumodule.cpp" line="153"/> <location filename="../src/menumodule/menumodule.cpp" line="88"/>
<source>Help</source> <source>Help</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/menumodule/menumodule.cpp" line="72"/> <location filename="../src/menumodule/menumodule.cpp" line="68"/>
<location filename="../src/menumodule/menumodule.cpp" line="151"/> <location filename="../src/menumodule/menumodule.cpp" line="86"/>
<source>About</source> <source>About</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/menumodule/menumodule.cpp" line="74"/> <location filename="../src/menumodule/menumodule.cpp" line="70"/>
<location filename="../src/menumodule/menumodule.cpp" line="149"/> <location filename="../src/menumodule/menumodule.cpp" line="84"/>
<source>Quit</source> <source>Quit</source>
<translation>退</translation> <translation>退</translation>
</message> </message>
<message> <message>
<location filename="../src/menumodule/menumodule.cpp" line="85"/>
<source>Auto</source> <source>Auto</source>
<translation></translation> <translation type="vanished"></translation>
</message> </message>
<message> <message>
<location filename="../src/menumodule/menumodule.cpp" line="89"/>
<source>Light</source> <source>Light</source>
<translation></translation> <translation type="vanished"></translation>
</message> </message>
<message> <message>
<location filename="../src/menumodule/menumodule.cpp" line="93"/>
<source>Dark</source> <source>Dark</source>
<translation></translation> <translation type="vanished"></translation>
</message> </message>
<message> <message>
<location filename="../src/menumodule/menumodule.cpp" line="302"/> <location filename="../src/menumodule/menumodule.cpp" line="104"/>
<source>Version: </source> <source>Version: </source>
<translation>: </translation> <translation>: </translation>
</message> </message>
<message> <message>
<location filename="../src/menumodule/menumodule.cpp" line="306"/> <location filename="../src/menumodule/menumodule.cpp" line="107"/>
<source>Calculator is a lightweight calculator based on Qt5, which provides standard calculation, scientific calculation and exchange rate conversion.</source> <source>Calculator is a lightweight calculator based on Qt5, which provides standard calculation, scientific calculation and exchange rate conversion.</source>
<translation>qt5开发的轻量级计算器</translation> <translation>qt5开发的轻量级计算器</translation>
</message> </message>
<message> <message>
<location filename="../src/menumodule/menumodule.cpp" line="371"/>
<location filename="../src/menumodule/menumodule.cpp" line="379"/>
<source>Service &amp; Support: </source> <source>Service &amp; Support: </source>
<translation></translation> <translation type="vanished"></translation>
</message> </message>
<message> <message>
<source>Support: support@kylinos.cn</source> <source>Support: support@kylinos.cn</source>
<translation type="vanished">support@kylinos.cn</translation> <translation type="vanished">support@kylinos.cn</translation>
</message> </message>
<message> <message>
<location filename="../src/menumodule/menumodule.h" line="66"/> <location filename="../src/menumodule/menumodule.cpp" line="103"/>
<source>Calculator</source> <source>Calculator</source>
<translation></translation> <translation></translation>
</message> </message>