Skip to content

Commit 2d0e00b

Browse files
- fix: app name in the title bar not translated
- use new app icon
1 parent 3cb7374 commit 2d0e00b

File tree

3 files changed

+37
-30
lines changed

3 files changed

+37
-30
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
Version 0.7.1
22
- fix: can't add bookmark at a breakpoint line
3+
- fix: app name in the title bar not translated
4+
- use new app icon
35

46
Version 0.7.0
57
- fix: Backspace still works in readonly mode

RedPandaIDE/RedPandaIDE_zh_CN.ts

Lines changed: 34 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -133,17 +133,17 @@
133133
<translation>无法读取文件&apos;%1&apos;.</translation>
134134
</message>
135135
<message>
136-
<location filename="widgets/bookmarkmodel.cpp" line="238"/>
136+
<location filename="widgets/bookmarkmodel.cpp" line="237"/>
137137
<source>Description</source>
138138
<translation>描述</translation>
139139
</message>
140140
<message>
141-
<location filename="widgets/bookmarkmodel.cpp" line="240"/>
141+
<location filename="widgets/bookmarkmodel.cpp" line="239"/>
142142
<source>Line</source>
143143
<translation>行</translation>
144144
</message>
145145
<message>
146-
<location filename="widgets/bookmarkmodel.cpp" line="242"/>
146+
<location filename="widgets/bookmarkmodel.cpp" line="241"/>
147147
<source>Filename</source>
148148
<translation>文件名</translation>
149149
</message>
@@ -1011,7 +1011,7 @@ Are you really want to continue?</source>
10111011
<context>
10121012
<name>Editor</name>
10131013
<message>
1014-
<location filename="editor.cpp" line="82"/>
1014+
<location filename="editor.cpp" line="83"/>
10151015
<source>untitled</source>
10161016
<translation>无标题</translation>
10171017
</message>
@@ -1024,76 +1024,76 @@ Are you really want to continue?</source>
10241024
<translation type="vanished">失败</translation>
10251025
</message>
10261026
<message>
1027-
<location filename="editor.cpp" line="219"/>
1028-
<location filename="editor.cpp" line="233"/>
1029-
<location filename="editor.cpp" line="309"/>
1030-
<location filename="editor.cpp" line="1142"/>
1031-
<location filename="editor.cpp" line="1147"/>
1032-
<location filename="editor.cpp" line="1165"/>
1033-
<location filename="editor.cpp" line="1170"/>
1027+
<location filename="editor.cpp" line="225"/>
1028+
<location filename="editor.cpp" line="239"/>
1029+
<location filename="editor.cpp" line="315"/>
1030+
<location filename="editor.cpp" line="1148"/>
1031+
<location filename="editor.cpp" line="1153"/>
1032+
<location filename="editor.cpp" line="1171"/>
1033+
<location filename="editor.cpp" line="1176"/>
10341034
<source>Error</source>
10351035
<translation>错误</translation>
10361036
</message>
10371037
<message>
1038-
<location filename="editor.cpp" line="220"/>
1038+
<location filename="editor.cpp" line="226"/>
10391039
<source>File %1 is not writable!</source>
10401040
<translation>无法写入文件&quot;%1&quot;</translation>
10411041
</message>
10421042
<message>
1043-
<location filename="editor.cpp" line="262"/>
1043+
<location filename="editor.cpp" line="268"/>
10441044
<source>Save As</source>
10451045
<translation>另存为</translation>
10461046
</message>
10471047
<message>
1048-
<location filename="editor.cpp" line="1143"/>
1048+
<location filename="editor.cpp" line="1149"/>
10491049
<source>The text to be copied exceeds count limit!</source>
10501050
<translation>要复制的内容超过了行数限制!</translation>
10511051
</message>
10521052
<message>
1053-
<location filename="editor.cpp" line="1148"/>
1053+
<location filename="editor.cpp" line="1154"/>
10541054
<source>The text to be copied exceeds character limit!</source>
10551055
<translation>要复制的内容超过了字符数限制!</translation>
10561056
</message>
10571057
<message>
1058-
<location filename="editor.cpp" line="1166"/>
1058+
<location filename="editor.cpp" line="1172"/>
10591059
<source>The text to be cut exceeds count limit!</source>
10601060
<translation>要剪切的内容超过了行数限制!</translation>
10611061
</message>
10621062
<message>
1063-
<location filename="editor.cpp" line="1171"/>
1063+
<location filename="editor.cpp" line="1177"/>
10641064
<source>The text to be cut exceeds character limit!</source>
10651065
<translation>要剪切的内容超过了字符数限制!</translation>
10661066
</message>
10671067
<message>
1068-
<location filename="editor.cpp" line="2159"/>
1068+
<location filename="editor.cpp" line="2165"/>
10691069
<source>Print Document</source>
10701070
<translation>打印文档</translation>
10711071
</message>
10721072
<message>
1073-
<location filename="editor.cpp" line="2706"/>
1074-
<location filename="editor.cpp" line="2743"/>
1075-
<location filename="editor.cpp" line="2794"/>
1073+
<location filename="editor.cpp" line="2712"/>
1074+
<location filename="editor.cpp" line="2749"/>
1075+
<location filename="editor.cpp" line="2800"/>
10761076
<source>Ctrl+click for more info</source>
10771077
<translation>Ctrl+单击以获取更多信息</translation>
10781078
</message>
10791079
<message>
1080-
<location filename="editor.cpp" line="3141"/>
1081-
<location filename="editor.cpp" line="3171"/>
1080+
<location filename="editor.cpp" line="3147"/>
1081+
<location filename="editor.cpp" line="3177"/>
10821082
<source>Symbol &apos;%1&apos; not found!</source>
10831083
<translation>未找到符号&apos;%1&apos;!</translation>
10841084
</message>
10851085
<message>
1086-
<location filename="editor.cpp" line="3586"/>
1086+
<location filename="editor.cpp" line="3592"/>
10871087
<source>Break point condition</source>
10881088
<translation>断点条件</translation>
10891089
</message>
10901090
<message>
1091-
<location filename="editor.cpp" line="3587"/>
1091+
<location filename="editor.cpp" line="3593"/>
10921092
<source>Enter the condition of the breakpoint:</source>
10931093
<translation>输入当前断点的生效条件:</translation>
10941094
</message>
10951095
<message>
1096-
<location filename="editor.cpp" line="3766"/>
1096+
<location filename="editor.cpp" line="3772"/>
10971097
<source>Readonly</source>
10981098
<translation>只读</translation>
10991099
</message>
@@ -3631,7 +3631,7 @@ Are you really want to continue?</source>
36313631
</message>
36323632
<message>
36333633
<location filename="mainwindow.ui" line="2004"/>
3634-
<location filename="mainwindow.cpp" line="4703"/>
3634+
<location filename="mainwindow.cpp" line="4705"/>
36353635
<source>Open Folder</source>
36363636
<translation>打开文件夹</translation>
36373637
</message>
@@ -3855,6 +3855,11 @@ Are you really want to continue?</source>
38553855
<source>Insert Snippet</source>
38563856
<translation>插入代码段</translation>
38573857
</message>
3858+
<message>
3859+
<location filename="mainwindow.cpp" line="559"/>
3860+
<source>Red Panda Dev-C++</source>
3861+
<translation>小熊猫Dev-C++</translation>
3862+
</message>
38583863
<message>
38593864
<location filename="mainwindow.cpp" line="1707"/>
38603865
<source>Remove</source>
@@ -4983,12 +4988,12 @@ Are you really want to continue?</source>
49834988
<context>
49844989
<name>QObject</name>
49854990
<message>
4986-
<location filename="editorlist.cpp" line="119"/>
4991+
<location filename="editorlist.cpp" line="120"/>
49874992
<source>Save</source>
49884993
<translation>保存</translation>
49894994
</message>
49904995
<message>
4991-
<location filename="editorlist.cpp" line="120"/>
4996+
<location filename="editorlist.cpp" line="121"/>
49924997
<source>Save changes to %1?</source>
49934998
<translation>将修改保存到&quot;%1&quot;?</translation>
49944999
</message>

RedPandaIDE/mainwindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ void MainWindow::setActiveBreakpoint(QString FileName, int Line, bool setFocus)
556556

557557
void MainWindow::updateAppTitle()
558558
{
559-
QString appName("Red Panda Dev-C++");
559+
QString appName=tr("Red Panda Dev-C++");
560560
Editor *e = mEditorList->getEditor();
561561
QCoreApplication *app = QApplication::instance();
562562
if (e && !e->inProject()) {

0 commit comments

Comments
 (0)