- enhancement: **Linux** convert to "gbk"/"gb18030" encodings when run under "zh_CN" locale
This commit is contained in:
parent
79b8478af3
commit
265422a50d
1
NEWS.md
1
NEWS.md
|
@ -15,6 +15,7 @@ Red Panda C++ Version 1.0.0
|
|||
- fix: syntax color of #include header filenames not correct
|
||||
- enhancement: disable "code completion" will disable enhanced syntax highlight
|
||||
- enhancement: match bracket
|
||||
- enhancement: **Linux** convert to "gbk"/"gb18030" encodings when run under "zh_CN" locale
|
||||
|
||||
Red Panda C++ Version 0.14.5
|
||||
- fix: the "gnu c++ 20" option in compiler set options is wrong
|
||||
|
|
|
@ -3788,11 +3788,11 @@ Are you really want to continue?</oldsource>
|
|||
<message>
|
||||
<location filename="mainwindow.ui" line="560"/>
|
||||
<location filename="mainwindow.ui" line="2640"/>
|
||||
<location filename="mainwindow.cpp" line="4308"/>
|
||||
<location filename="mainwindow.cpp" line="4311"/>
|
||||
<location filename="mainwindow.cpp" line="4315"/>
|
||||
<location filename="mainwindow.cpp" line="4318"/>
|
||||
<location filename="mainwindow.cpp" line="5961"/>
|
||||
<location filename="mainwindow.cpp" line="4328"/>
|
||||
<location filename="mainwindow.cpp" line="4331"/>
|
||||
<location filename="mainwindow.cpp" line="4335"/>
|
||||
<location filename="mainwindow.cpp" line="4338"/>
|
||||
<location filename="mainwindow.cpp" line="5981"/>
|
||||
<source>Issues</source>
|
||||
<translation>编译器</translation>
|
||||
</message>
|
||||
|
@ -4215,7 +4215,7 @@ Are you really want to continue?</oldsource>
|
|||
<message>
|
||||
<location filename="mainwindow.ui" line="359"/>
|
||||
<location filename="mainwindow.ui" line="362"/>
|
||||
<location filename="mainwindow.cpp" line="6296"/>
|
||||
<location filename="mainwindow.cpp" line="6316"/>
|
||||
<source>New Problem Set</source>
|
||||
<translation>新建试题集</translation>
|
||||
</message>
|
||||
|
@ -4234,14 +4234,14 @@ Are you really want to continue?</oldsource>
|
|||
<message>
|
||||
<location filename="mainwindow.ui" line="401"/>
|
||||
<location filename="mainwindow.ui" line="404"/>
|
||||
<location filename="mainwindow.cpp" line="6339"/>
|
||||
<location filename="mainwindow.cpp" line="6359"/>
|
||||
<source>Save Problem Set</source>
|
||||
<translation>保存试题集</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="415"/>
|
||||
<location filename="mainwindow.ui" line="418"/>
|
||||
<location filename="mainwindow.cpp" line="6363"/>
|
||||
<location filename="mainwindow.cpp" line="6383"/>
|
||||
<source>Load Problem Set</source>
|
||||
<translation>载入试题集</translation>
|
||||
</message>
|
||||
|
@ -4580,7 +4580,7 @@ Are you really want to continue?</oldsource>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="2315"/>
|
||||
<location filename="mainwindow.cpp" line="5177"/>
|
||||
<location filename="mainwindow.cpp" line="5197"/>
|
||||
<source>Clear all breakpoints</source>
|
||||
<translation>删除所有断点</translation>
|
||||
</message>
|
||||
|
@ -4681,7 +4681,7 @@ Are you really want to continue?</oldsource>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="2469"/>
|
||||
<location filename="mainwindow.cpp" line="5901"/>
|
||||
<location filename="mainwindow.cpp" line="5921"/>
|
||||
<source>Rename Symbol</source>
|
||||
<translation>重命名符号</translation>
|
||||
</message>
|
||||
|
@ -4702,13 +4702,13 @@ Are you really want to continue?</oldsource>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="2489"/>
|
||||
<location filename="mainwindow.cpp" line="6092"/>
|
||||
<location filename="mainwindow.cpp" line="6112"/>
|
||||
<source>Export As RTF</source>
|
||||
<translation>导出为RTF</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="2494"/>
|
||||
<location filename="mainwindow.cpp" line="6114"/>
|
||||
<location filename="mainwindow.cpp" line="6134"/>
|
||||
<source>Export As HTML</source>
|
||||
<translation>导出为HTML</translation>
|
||||
</message>
|
||||
|
@ -5208,7 +5208,7 @@ Are you really want to continue?</oldsource>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="277"/>
|
||||
<location filename="mainwindow.cpp" line="6305"/>
|
||||
<location filename="mainwindow.cpp" line="6325"/>
|
||||
<source>Problem Set %1</source>
|
||||
<translation>试题集%1</translation>
|
||||
</message>
|
||||
|
@ -5282,15 +5282,15 @@ Are you really want to continue?</oldsource>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2344"/>
|
||||
<location filename="mainwindow.cpp" line="6173"/>
|
||||
<location filename="mainwindow.cpp" line="6213"/>
|
||||
<location filename="mainwindow.cpp" line="6193"/>
|
||||
<location filename="mainwindow.cpp" line="6233"/>
|
||||
<source>Bookmark Description</source>
|
||||
<translation>书签描述</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2345"/>
|
||||
<location filename="mainwindow.cpp" line="6174"/>
|
||||
<location filename="mainwindow.cpp" line="6214"/>
|
||||
<location filename="mainwindow.cpp" line="6194"/>
|
||||
<location filename="mainwindow.cpp" line="6234"/>
|
||||
<source>Description:</source>
|
||||
<translation>描述:</translation>
|
||||
</message>
|
||||
|
@ -5402,16 +5402,16 @@ Are you really want to continue?</oldsource>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2737"/>
|
||||
<location filename="mainwindow.cpp" line="3580"/>
|
||||
<location filename="mainwindow.cpp" line="3584"/>
|
||||
<location filename="mainwindow.cpp" line="3600"/>
|
||||
<location filename="mainwindow.cpp" line="3604"/>
|
||||
<source>New Folder</source>
|
||||
<translation>新建文件夹</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2742"/>
|
||||
<location filename="mainwindow.cpp" line="3594"/>
|
||||
<location filename="mainwindow.cpp" line="3600"/>
|
||||
<location filename="mainwindow.cpp" line="5762"/>
|
||||
<location filename="mainwindow.cpp" line="3614"/>
|
||||
<location filename="mainwindow.cpp" line="3620"/>
|
||||
<location filename="mainwindow.cpp" line="5782"/>
|
||||
<source>Delete</source>
|
||||
<translation>删除</translation>
|
||||
</message>
|
||||
|
@ -5441,228 +5441,233 @@ Are you really want to continue?</oldsource>
|
|||
<translation>字符集</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2982"/>
|
||||
<location filename="mainwindow.cpp" line="2904"/>
|
||||
<source>Convert to %1</source>
|
||||
<translation type="unfinished">转换为%1编码</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3002"/>
|
||||
<source>%1 files autosaved</source>
|
||||
<translation>已自动保存%1个文件</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3291"/>
|
||||
<location filename="mainwindow.cpp" line="3311"/>
|
||||
<source>Set answer to...</source>
|
||||
<translation>设置答案源代码...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3323"/>
|
||||
<location filename="mainwindow.cpp" line="3343"/>
|
||||
<source>select other file...</source>
|
||||
<translation>选择其他文件...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3329"/>
|
||||
<location filename="mainwindow.cpp" line="3349"/>
|
||||
<source>Select Answer Source File</source>
|
||||
<translation>选择答案源代码文件</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3331"/>
|
||||
<location filename="mainwindow.cpp" line="3351"/>
|
||||
<source>C/C++Source Files (*.c *.cpp *.cc *.cxx)</source>
|
||||
<oldsource>C/C++Source Files (*.c *.cpp *.cc *.cxx</oldsource>
|
||||
<translation>C/C++源代码文件 (*.c *.cpp *.cc *.cxx)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3595"/>
|
||||
<location filename="mainwindow.cpp" line="3615"/>
|
||||
<source>Do you really want to delete %1?</source>
|
||||
<translation>你真的要删除%1吗?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3601"/>
|
||||
<location filename="mainwindow.cpp" line="3621"/>
|
||||
<source>Do you really want to delete %1 files?</source>
|
||||
<translation>你真的要删除%1个文件吗?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3804"/>
|
||||
<location filename="mainwindow.cpp" line="3824"/>
|
||||
<source>Save project</source>
|
||||
<translation>保存项目</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3805"/>
|
||||
<location filename="mainwindow.cpp" line="3825"/>
|
||||
<source>The project '%1' has modifications.</source>
|
||||
<translation>项目'%1'有改动。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3807"/>
|
||||
<location filename="mainwindow.cpp" line="6299"/>
|
||||
<location filename="mainwindow.cpp" line="3827"/>
|
||||
<location filename="mainwindow.cpp" line="6319"/>
|
||||
<source>Do you want to save it?</source>
|
||||
<translation>需要保存吗?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3894"/>
|
||||
<location filename="mainwindow.cpp" line="3905"/>
|
||||
<location filename="mainwindow.cpp" line="3914"/>
|
||||
<location filename="mainwindow.cpp" line="3925"/>
|
||||
<source>File Changed</source>
|
||||
<translation>文件已发生变化</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3977"/>
|
||||
<location filename="mainwindow.cpp" line="3997"/>
|
||||
<source>New Project File?</source>
|
||||
<translation>新建项目文件?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3978"/>
|
||||
<location filename="mainwindow.cpp" line="3998"/>
|
||||
<source>Do you want to add the new file to the project?</source>
|
||||
<translation>您是否要将新建的文件加入项目?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="4054"/>
|
||||
<location filename="mainwindow.cpp" line="4064"/>
|
||||
<location filename="mainwindow.cpp" line="4076"/>
|
||||
<location filename="mainwindow.cpp" line="6352"/>
|
||||
<location filename="mainwindow.cpp" line="4074"/>
|
||||
<location filename="mainwindow.cpp" line="4084"/>
|
||||
<location filename="mainwindow.cpp" line="4096"/>
|
||||
<location filename="mainwindow.cpp" line="6372"/>
|
||||
<source>Save Error</source>
|
||||
<translation>保存失败</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="4236"/>
|
||||
<location filename="mainwindow.cpp" line="4256"/>
|
||||
<source>Change Project Compiler Set</source>
|
||||
<translation>改变项目编译器配置集</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="4237"/>
|
||||
<location filename="mainwindow.cpp" line="4257"/>
|
||||
<source>Change the project's compiler set will lose all custom compiler set options.</source>
|
||||
<translation>改变项目的编译器配置集会导致所有的自定义编译器选项被重置。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="4239"/>
|
||||
<location filename="mainwindow.cpp" line="4259"/>
|
||||
<source>Do you really want to do that?</source>
|
||||
<translation>你真的想要做那些吗?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="5178"/>
|
||||
<location filename="mainwindow.cpp" line="5198"/>
|
||||
<source>Do you really want to clear all breakpoints in this file?</source>
|
||||
<translation>您真的要清除该文件的所有断点吗?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="5376"/>
|
||||
<location filename="mainwindow.cpp" line="5396"/>
|
||||
<source>New project</source>
|
||||
<translation>新建项目</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="5377"/>
|
||||
<location filename="mainwindow.cpp" line="5397"/>
|
||||
<source>Close %1 and start new project?</source>
|
||||
<translation>关闭'%1'以打开新项目?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="5390"/>
|
||||
<location filename="mainwindow.cpp" line="5410"/>
|
||||
<source>Folder not exist</source>
|
||||
<translation>文件夹不存在</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="5391"/>
|
||||
<location filename="mainwindow.cpp" line="5411"/>
|
||||
<source>Folder '%1' doesn't exist. Create it now?</source>
|
||||
<translation>文件夹'%1'不存在。是否创建?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="5398"/>
|
||||
<location filename="mainwindow.cpp" line="5418"/>
|
||||
<source>Can't create folder</source>
|
||||
<translation>无法创建文件夹</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="5399"/>
|
||||
<location filename="mainwindow.cpp" line="5419"/>
|
||||
<source>Failed to create folder '%1'.</source>
|
||||
<translation>创建文件夹'%1'失败。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="5414"/>
|
||||
<location filename="mainwindow.cpp" line="5434"/>
|
||||
<source>Save new project as</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="5763"/>
|
||||
<location filename="mainwindow.cpp" line="5783"/>
|
||||
<source>Folder %1 is not empty.</source>
|
||||
<translation>文件夹%1不是空的。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="5764"/>
|
||||
<location filename="mainwindow.cpp" line="5784"/>
|
||||
<source>Do you really want to delete it?</source>
|
||||
<translation>你真的要删除它吗?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="6234"/>
|
||||
<location filename="mainwindow.cpp" line="6254"/>
|
||||
<source>Change working folder</source>
|
||||
<translation>改变工作文件夹</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="6235"/>
|
||||
<location filename="mainwindow.cpp" line="6255"/>
|
||||
<source>File '%1' is not in the current working folder.</source>
|
||||
<oldsource>File '%1' is not in the current working folder</oldsource>
|
||||
<translation>文件'%1'不在当前工作文件夹中。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="6238"/>
|
||||
<location filename="mainwindow.cpp" line="6258"/>
|
||||
<source>Do you want to change working folder to '%1'?</source>
|
||||
<translation>是否将工作文件夹改设为'%1'?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="6877"/>
|
||||
<location filename="mainwindow.cpp" line="6897"/>
|
||||
<source>Can't Commit</source>
|
||||
<translation>无法提交</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="6878"/>
|
||||
<location filename="mainwindow.cpp" line="6898"/>
|
||||
<source>Git needs user info to commit.</source>
|
||||
<translation>Git需要用信息进行提交。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="2559"/>
|
||||
<location filename="mainwindow.ui" line="2562"/>
|
||||
<location filename="mainwindow.cpp" line="6275"/>
|
||||
<location filename="mainwindow.cpp" line="6295"/>
|
||||
<source>Choose Working Folder</source>
|
||||
<translation>选择工作文件夹</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="6645"/>
|
||||
<location filename="mainwindow.cpp" line="6697"/>
|
||||
<location filename="mainwindow.cpp" line="6665"/>
|
||||
<location filename="mainwindow.cpp" line="6717"/>
|
||||
<source>Header Exists</source>
|
||||
<translation>头文件已存在</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="6646"/>
|
||||
<location filename="mainwindow.cpp" line="6698"/>
|
||||
<location filename="mainwindow.cpp" line="6666"/>
|
||||
<location filename="mainwindow.cpp" line="6718"/>
|
||||
<source>Header file "%1" already exists!</source>
|
||||
<translation>头文件"%1"已存在!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="6703"/>
|
||||
<location filename="mainwindow.cpp" line="6723"/>
|
||||
<source>Source Exists</source>
|
||||
<translation>源文件已存在!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="6704"/>
|
||||
<location filename="mainwindow.cpp" line="6724"/>
|
||||
<source>Source file "%1" already exists!</source>
|
||||
<translation>源文件"%1"已存在!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="6856"/>
|
||||
<location filename="mainwindow.cpp" line="6876"/>
|
||||
<source>Can't commit!</source>
|
||||
<translation>无法提交!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="6857"/>
|
||||
<location filename="mainwindow.cpp" line="6877"/>
|
||||
<source>The following files are in conflicting:</source>
|
||||
<translation>下列文件处于冲突状态,请解决后重新添加和提交:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="6862"/>
|
||||
<location filename="mainwindow.cpp" line="6882"/>
|
||||
<source>Commit Message</source>
|
||||
<translation>提交信息</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="6862"/>
|
||||
<location filename="mainwindow.cpp" line="6882"/>
|
||||
<source>Commit Message:</source>
|
||||
<translation>提交信息:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="6865"/>
|
||||
<location filename="mainwindow.cpp" line="6885"/>
|
||||
<source>Commit Failed</source>
|
||||
<translation>提交失败</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="6866"/>
|
||||
<location filename="mainwindow.cpp" line="6886"/>
|
||||
<source>Commit message shouldn't be empty!</source>
|
||||
<translation>提交信息不能为空!</translation>
|
||||
</message>
|
||||
|
@ -5671,125 +5676,125 @@ Are you really want to continue?</oldsource>
|
|||
<translation type="vanished">小熊猫Dev-C++项目文件 (*.dev)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="5427"/>
|
||||
<location filename="mainwindow.cpp" line="5447"/>
|
||||
<source>New project fail</source>
|
||||
<translation>新建项目失败</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="5428"/>
|
||||
<location filename="mainwindow.cpp" line="5448"/>
|
||||
<source>Can't assign project template</source>
|
||||
<translation>无法使用模板创建项目</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="5523"/>
|
||||
<location filename="mainwindow.cpp" line="5543"/>
|
||||
<source>Remove file</source>
|
||||
<translation>删除文件</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="5524"/>
|
||||
<location filename="mainwindow.cpp" line="5544"/>
|
||||
<source>Remove the file from disk?</source>
|
||||
<translation>同时从硬盘上删除文件?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="5713"/>
|
||||
<location filename="mainwindow.cpp" line="5733"/>
|
||||
<source>untitled</source>
|
||||
<translation>无标题</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="5723"/>
|
||||
<location filename="mainwindow.cpp" line="5743"/>
|
||||
<source>New Project File Name</source>
|
||||
<translation>新的项目文件名</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="5724"/>
|
||||
<location filename="mainwindow.cpp" line="5744"/>
|
||||
<source>File Name:</source>
|
||||
<translation>文件名:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="5730"/>
|
||||
<location filename="mainwindow.cpp" line="5750"/>
|
||||
<source>File Already Exists!</source>
|
||||
<translation>文件已存在!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="5731"/>
|
||||
<location filename="mainwindow.cpp" line="5751"/>
|
||||
<source>File '%1' already exists!</source>
|
||||
<translation>文件'%1'已经存在!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="5472"/>
|
||||
<location filename="mainwindow.cpp" line="5492"/>
|
||||
<source>Add to project</source>
|
||||
<translation>添加到项目</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="5416"/>
|
||||
<location filename="mainwindow.cpp" line="5436"/>
|
||||
<source>Red Panda C++ project file (*.dev)</source>
|
||||
<translation>小熊猫C++项目文件(*.dev)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="5887"/>
|
||||
<location filename="mainwindow.cpp" line="5907"/>
|
||||
<source>Rename Error</source>
|
||||
<translation>重命名出错</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="5888"/>
|
||||
<location filename="mainwindow.cpp" line="5908"/>
|
||||
<source>Symbol '%1' is defined in system header.</source>
|
||||
<translation>符号'%1'在系统头文件中定义,无法修改。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="5902"/>
|
||||
<location filename="mainwindow.cpp" line="5922"/>
|
||||
<source>New Name</source>
|
||||
<translation>新名称</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="6035"/>
|
||||
<location filename="mainwindow.cpp" line="6047"/>
|
||||
<location filename="mainwindow.cpp" line="6055"/>
|
||||
<location filename="mainwindow.cpp" line="6067"/>
|
||||
<source>Replace Error</source>
|
||||
<translation>替换出错</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="6036"/>
|
||||
<location filename="mainwindow.cpp" line="6056"/>
|
||||
<source>Can't open file '%1' for replace!</source>
|
||||
<translation>无法打开文件'%1'进行替换!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="6048"/>
|
||||
<location filename="mainwindow.cpp" line="6068"/>
|
||||
<source>Contents has changed since last search!</source>
|
||||
<translation>内容和上次查找时不一致。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="6094"/>
|
||||
<location filename="mainwindow.cpp" line="6114"/>
|
||||
<source>Rich Text Format Files (*.rtf)</source>
|
||||
<translation>RTF格式文件 (*.rtf)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="6116"/>
|
||||
<location filename="mainwindow.cpp" line="6136"/>
|
||||
<source>HTML Files (*.html)</source>
|
||||
<translation>HTML文件 (*.html)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="6297"/>
|
||||
<location filename="mainwindow.cpp" line="6317"/>
|
||||
<source>The current problem set is not empty.</source>
|
||||
<translation>当前的试题集不是空的。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="6315"/>
|
||||
<location filename="mainwindow.cpp" line="6335"/>
|
||||
<source>Problem %1</source>
|
||||
<translation>试题%1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="6341"/>
|
||||
<location filename="mainwindow.cpp" line="6365"/>
|
||||
<location filename="mainwindow.cpp" line="6361"/>
|
||||
<location filename="mainwindow.cpp" line="6385"/>
|
||||
<source>Problem Set Files (*.pbs)</source>
|
||||
<translation>试题集文件 (*.pbs)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="6371"/>
|
||||
<location filename="mainwindow.cpp" line="6391"/>
|
||||
<source>Load Error</source>
|
||||
<translation>载入失败</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3483"/>
|
||||
<location filename="mainwindow.cpp" line="6385"/>
|
||||
<location filename="mainwindow.cpp" line="3503"/>
|
||||
<location filename="mainwindow.cpp" line="6405"/>
|
||||
<source>Problem Case %1</source>
|
||||
<translation>试题案例%1</translation>
|
||||
</message>
|
||||
|
@ -5803,12 +5808,12 @@ Are you really want to continue?</oldsource>
|
|||
<location filename="mainwindow.cpp" line="1102"/>
|
||||
<location filename="mainwindow.cpp" line="2225"/>
|
||||
<location filename="mainwindow.cpp" line="2881"/>
|
||||
<location filename="mainwindow.cpp" line="3901"/>
|
||||
<location filename="mainwindow.cpp" line="4012"/>
|
||||
<location filename="mainwindow.cpp" line="4205"/>
|
||||
<location filename="mainwindow.cpp" line="4217"/>
|
||||
<location filename="mainwindow.cpp" line="4625"/>
|
||||
<location filename="mainwindow.cpp" line="4637"/>
|
||||
<location filename="mainwindow.cpp" line="3921"/>
|
||||
<location filename="mainwindow.cpp" line="4032"/>
|
||||
<location filename="mainwindow.cpp" line="4225"/>
|
||||
<location filename="mainwindow.cpp" line="4237"/>
|
||||
<location filename="mainwindow.cpp" line="4645"/>
|
||||
<location filename="mainwindow.cpp" line="4657"/>
|
||||
<source>Error</source>
|
||||
<translation>错误</translation>
|
||||
</message>
|
||||
|
@ -5829,81 +5834,83 @@ Are you really want to continue?</oldsource>
|
|||
<translation>清除历史</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3102"/>
|
||||
<location filename="mainwindow.cpp" line="3239"/>
|
||||
<location filename="mainwindow.cpp" line="3122"/>
|
||||
<location filename="mainwindow.cpp" line="3259"/>
|
||||
<source>Version Control</source>
|
||||
<translation>版本控制</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3895"/>
|
||||
<location filename="mainwindow.cpp" line="3915"/>
|
||||
<source>File '%1' was changed.</source>
|
||||
<translation>磁盘文件'%1'已被修改。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3895"/>
|
||||
<location filename="mainwindow.cpp" line="3915"/>
|
||||
<source>Reload its content from disk?</source>
|
||||
<translation>是否重新读取它的内容?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3906"/>
|
||||
<location filename="mainwindow.cpp" line="3926"/>
|
||||
<source>File '%1' was removed.</source>
|
||||
<translation>磁盘文件'%1'已被删除。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3906"/>
|
||||
<location filename="mainwindow.cpp" line="3926"/>
|
||||
<source>Keep it open?</source>
|
||||
<translation>是否保持它在小熊猫C++中打开的编辑窗口?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="4005"/>
|
||||
<location filename="mainwindow.cpp" line="4025"/>
|
||||
<source>Open</source>
|
||||
<translation>打开</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="4401"/>
|
||||
<location filename="mainwindow.cpp" line="4421"/>
|
||||
<source>Compile Failed</source>
|
||||
<translation>编译失败</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="4407"/>
|
||||
<location filename="mainwindow.cpp" line="4427"/>
|
||||
<source>Run Failed</source>
|
||||
<translation>运行失败</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="4654"/>
|
||||
<location filename="mainwindow.cpp" line="4668"/>
|
||||
<location filename="mainwindow.cpp" line="2910"/>
|
||||
<location filename="mainwindow.cpp" line="4674"/>
|
||||
<location filename="mainwindow.cpp" line="4688"/>
|
||||
<source>Confirm Convertion</source>
|
||||
<translation>确认转换</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="4655"/>
|
||||
<location filename="mainwindow.cpp" line="4669"/>
|
||||
<location filename="mainwindow.cpp" line="2911"/>
|
||||
<location filename="mainwindow.cpp" line="4675"/>
|
||||
<location filename="mainwindow.cpp" line="4689"/>
|
||||
<source>The editing file will be saved using %1 encoding. <br />This operation can't be reverted. <br />Are you sure to continue?</source>
|
||||
<translation>当前编辑器中的文件将会使用%1编码保存。<br />这项操作无法被撤回。<br />你确定要继续吗?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="4819"/>
|
||||
<location filename="mainwindow.cpp" line="4839"/>
|
||||
<source>New Watch Expression</source>
|
||||
<translation>新监视表达式</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="4820"/>
|
||||
<location filename="mainwindow.cpp" line="4840"/>
|
||||
<source>Enter Watch Expression (it is recommended to use 'this->' for class members):</source>
|
||||
<translation>输入监视表达式</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="4873"/>
|
||||
<location filename="mainwindow.cpp" line="4893"/>
|
||||
<source>Parsing file %1 of %2: "%3"</source>
|
||||
<translation>(%1/%2)正在解析文件"%3"</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="4895"/>
|
||||
<location filename="mainwindow.cpp" line="4901"/>
|
||||
<location filename="mainwindow.cpp" line="4915"/>
|
||||
<location filename="mainwindow.cpp" line="4921"/>
|
||||
<source>Done parsing %1 files in %2 seconds</source>
|
||||
<translation>完成%1个文件的解析,用时%2秒</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="4898"/>
|
||||
<location filename="mainwindow.cpp" line="4918"/>
|
||||
<source>(%1 files per second)</source>
|
||||
<translation>(每秒%1个文件)</translation>
|
||||
</message>
|
||||
|
@ -8046,7 +8053,7 @@ Are you really want to continue?</oldsource>
|
|||
<translation>自动链接</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="6286"/>
|
||||
<location filename="mainwindow.cpp" line="6306"/>
|
||||
<location filename="settingsdialog/settingsdialog.cpp" line="170"/>
|
||||
<location filename="settingsdialog/settingsdialog.cpp" line="203"/>
|
||||
<location filename="settingsdialog/settingsdialog.cpp" line="209"/>
|
||||
|
@ -8122,15 +8129,15 @@ Are you really want to continue?</oldsource>
|
|||
<translation>杂项</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="6287"/>
|
||||
<location filename="mainwindow.cpp" line="6600"/>
|
||||
<location filename="mainwindow.cpp" line="6307"/>
|
||||
<location filename="mainwindow.cpp" line="6620"/>
|
||||
<location filename="settingsdialog/settingsdialog.cpp" line="203"/>
|
||||
<location filename="settingsdialog/settingsdialog.cpp" line="206"/>
|
||||
<source>Program Runner</source>
|
||||
<translation>程序运行</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="6599"/>
|
||||
<location filename="mainwindow.cpp" line="6619"/>
|
||||
<location filename="settingsdialog/settingsdialog.cpp" line="206"/>
|
||||
<source>Problem Set</source>
|
||||
<translation>试题集</translation>
|
||||
|
|
|
@ -2897,6 +2897,26 @@ void MainWindow::buildEncodingMenu()
|
|||
mMenuEncoding->addAction(ui->actionConvert_to_ANSI);
|
||||
mMenuEncoding->addAction(ui->actionConvert_to_UTF_8);
|
||||
|
||||
QList<PCharsetInfo> charsetsForLocale = pCharsetInfoManager->findCharsetByLocale(pCharsetInfoManager->localeName());
|
||||
|
||||
foreach(const PCharsetInfo& charset, charsetsForLocale) {
|
||||
QAction * action = new QAction(
|
||||
tr("Convert to %1").arg(QString(charset->name)));
|
||||
connect(action, &QAction::triggered,
|
||||
[charset,this](){
|
||||
Editor * editor = mEditorList->getEditor();
|
||||
if (editor == nullptr)
|
||||
return;
|
||||
if (QMessageBox::warning(this,tr("Confirm Convertion"),
|
||||
tr("The editing file will be saved using %1 encoding. <br />This operation can't be reverted. <br />Are you sure to continue?")
|
||||
.arg(QString(charset->name)),
|
||||
QMessageBox::Yes, QMessageBox::No)!=QMessageBox::Yes)
|
||||
return;
|
||||
editor->convertToEncoding(charset->name);
|
||||
});
|
||||
mMenuEncoding->addAction(action);
|
||||
}
|
||||
|
||||
ui->menuEdit->insertMenu(ui->actionFoldAll,mMenuEncoding);
|
||||
ui->menuEdit->insertSeparator(ui->actionFoldAll);
|
||||
ui->actionAuto_Detect->setCheckable(true);
|
||||
|
|
Loading…
Reference in New Issue