- enhancement: show error message when user set a shortcut that's already being used.
This commit is contained in:
parent
6340dbe299
commit
fbe7ca204c
|
@ -1641,6 +1641,14 @@
|
||||||
<source>Shortcut</source>
|
<source>Shortcut</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Error</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Shortcut "%1" is used by "%2".</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>EnvironmentShortcutWidget</name>
|
<name>EnvironmentShortcutWidget</name>
|
||||||
|
|
|
@ -2276,17 +2276,27 @@ Are you really want to continue?</oldsource>
|
||||||
<context>
|
<context>
|
||||||
<name>EnvironmentShortcutModel</name>
|
<name>EnvironmentShortcutModel</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="settingsdialog/environmentshortcutwidget.cpp" line="75"/>
|
<location filename="settingsdialog/environmentshortcutwidget.cpp" line="76"/>
|
||||||
<source>action</source>
|
<source>action</source>
|
||||||
<translation>动作</translation>
|
<translation>动作</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="settingsdialog/environmentshortcutwidget.cpp" line="136"/>
|
<location filename="settingsdialog/environmentshortcutwidget.cpp" line="128"/>
|
||||||
|
<source>Error</source>
|
||||||
|
<translation>错误</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="settingsdialog/environmentshortcutwidget.cpp" line="129"/>
|
||||||
|
<source>Shortcut "%1" is used by "%2".</source>
|
||||||
|
<translation>快捷键“%1”已经被“%2”使用了。</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="settingsdialog/environmentshortcutwidget.cpp" line="148"/>
|
||||||
<source>Function</source>
|
<source>Function</source>
|
||||||
<translation>功能</translation>
|
<translation>功能</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="settingsdialog/environmentshortcutwidget.cpp" line="138"/>
|
<location filename="settingsdialog/environmentshortcutwidget.cpp" line="150"/>
|
||||||
<source>Shortcut</source>
|
<source>Shortcut</source>
|
||||||
<translation>快捷键</translation>
|
<translation>快捷键</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -7409,27 +7419,27 @@ Are you really want to continue?</oldsource>
|
||||||
<translation>遇到第一个错误后立即中止编译(-Wfatal-errors)</translation>
|
<translation>遇到第一个错误后立即中止编译(-Wfatal-errors)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="compiler/compilerinfo.cpp" line="163"/>
|
<location filename="compiler/compilerinfo.cpp" line="170"/>
|
||||||
<source>Linker</source>
|
<source>Linker</source>
|
||||||
<translation>链接器</translation>
|
<translation>链接器</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="compiler/compilerinfo.cpp" line="164"/>
|
<location filename="compiler/compilerinfo.cpp" line="171"/>
|
||||||
<source>Link an Objective C program (-lobjc)</source>
|
<source>Link an Objective C program (-lobjc)</source>
|
||||||
<translation>链接Objective-C程序 (-lobjc)</translation>
|
<translation>链接Objective-C程序 (-lobjc)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="compiler/compilerinfo.cpp" line="165"/>
|
<location filename="compiler/compilerinfo.cpp" line="172"/>
|
||||||
<source>Do not use standard system libraries (-nostdlib)</source>
|
<source>Do not use standard system libraries (-nostdlib)</source>
|
||||||
<translation>不使用标准库和系统启动文件(-nostdlib)</translation>
|
<translation>不使用标准库和系统启动文件(-nostdlib)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="compiler/compilerinfo.cpp" line="166"/>
|
<location filename="compiler/compilerinfo.cpp" line="173"/>
|
||||||
<source>Do not create a console window (-mwindows)</source>
|
<source>Do not create a console window (-mwindows)</source>
|
||||||
<translation>不产生控制台窗口(-mwindows)</translation>
|
<translation>不产生控制台窗口(-mwindows)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="compiler/compilerinfo.cpp" line="167"/>
|
<location filename="compiler/compilerinfo.cpp" line="174"/>
|
||||||
<source>Strip executable (-s)</source>
|
<source>Strip executable (-s)</source>
|
||||||
<translation>剥除附加信息(-s)</translation>
|
<translation>剥除附加信息(-s)</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -7438,27 +7448,27 @@ Are you really want to continue?</oldsource>
|
||||||
<translation type="vanished">链接Ojbective C程序(-lobjc)</translation>
|
<translation type="vanished">链接Ojbective C程序(-lobjc)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="compiler/compilerinfo.cpp" line="170"/>
|
<location filename="compiler/compilerinfo.cpp" line="163"/>
|
||||||
<source>Output</source>
|
<source>Output</source>
|
||||||
<translation>输出</translation>
|
<translation>输出</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="compiler/compilerinfo.cpp" line="171"/>
|
<location filename="compiler/compilerinfo.cpp" line="164"/>
|
||||||
<source>Put comments in generated assembly code (-fverbose-asm)</source>
|
<source>Put comments in generated assembly code (-fverbose-asm)</source>
|
||||||
<translation>在生成的汇编代码中加入注释(-fverbose-asm)</translation>
|
<translation>在生成的汇编代码中加入注释(-fverbose-asm)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="compiler/compilerinfo.cpp" line="173"/>
|
<location filename="compiler/compilerinfo.cpp" line="166"/>
|
||||||
<source>Do not compile, stop after the preprocessing stage (-E)</source>
|
<source>Do not compile, stop after the preprocessing stage (-E)</source>
|
||||||
<translation>仅预处理(-E)</translation>
|
<translation>仅预处理(-E)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="compiler/compilerinfo.cpp" line="174"/>
|
<location filename="compiler/compilerinfo.cpp" line="167"/>
|
||||||
<source>Use pipes instead of temporary files during compilation (-pipe)</source>
|
<source>Use pipes instead of temporary files during compilation (-pipe)</source>
|
||||||
<translation>编译时使用管道而不是临时文件(-pipe)</translation>
|
<translation>编译时使用管道而不是临时文件(-pipe)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="compiler/compilerinfo.cpp" line="172"/>
|
<location filename="compiler/compilerinfo.cpp" line="165"/>
|
||||||
<source>Do not assemble, compile and generate the assemble code (-S)</source>
|
<source>Do not assemble, compile and generate the assemble code (-S)</source>
|
||||||
<translation>只生成汇编代码(-S)</translation>
|
<translation>只生成汇编代码(-S)</translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
|
@ -1641,6 +1641,14 @@
|
||||||
<source>Shortcut</source>
|
<source>Shortcut</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Error</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Shortcut "%1" is used by "%2".</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>EnvironmentShortcutWidget</name>
|
<name>EnvironmentShortcutWidget</name>
|
||||||
|
|
Loading…
Reference in New Issue