Update translations

Change the way to differentiate test and release version
This commit is contained in:
Roy Qu 2024-03-03 17:32:10 +08:00
parent 3a58e06ac1
commit e4f0c88e80
5 changed files with 738 additions and 672 deletions

View File

@ -58,10 +58,15 @@ win32: {
DEFINES += PREFIX=\\\"$${PREFIX}\\\"
DEFINES += LIBEXECDIR=\\\"$${LIBEXECDIR}\\\"
DEFINES += APP_NAME=\\\"$${APP_NAME}\\\"
!isEmpty(APP_VERSION_SUFFIX): {
DEFINES += APP_VERSION_SUFFIX=\\\"$${APP_VERSION_SUFFIX}\\\"
}
isEmpty(TEST_VERSION) {
DEFINES += REDPANDA_CPP_VERSION=\\\"$${APP_VERSION}$${APP_VERSION_SUFFIX}\\\"
DEFINES += REDPANDA_CPP_VERSION=\\\"$${APP_VERSION}\\\"
} else {
DEFINES += REDPANDA_CPP_VERSION=\\\"$${APP_VERSION}$${APP_VERSION_SUFFIX}.$${TEST_VERSION}\\\"
DEFINES += REDPANDA_CPP_VERSION=\\\"$${APP_VERSION}.$${TEST_VERSION}\\\"
}
win32 {
_WINDOWS_PREFER_OPENCONSOLE = $$(WINDOWS_PREFER_OPENCONSOLE)

View File

@ -1177,6 +1177,9 @@ void MainWindow::updateAppTitle()
void MainWindow::updateAppTitle(const Editor *e)
{
QString appName=tr("Red Panda C++");
#ifdef APP_VERSION_SUFFIX
appName += tr(" %1 Version").arg(APP_VERSION_SUFFIX);
#endif
QCoreApplication *app = QApplication::instance();
if (e && !e->inProject()) {
QString str;

View File

@ -487,18 +487,18 @@
<source>An unknown error occurred.</source>
<translation>Erro desconhecido detectado.</translation>
</message>
<message>
<source> - Command: %1 %2</source>
<translation type="unfinished"></translation>
</message>
<message>
<source> - Command: %1 %2 &gt; &quot;%3&quot;</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Can&apos;t open file &quot;%1&quot; for write!</source>
<translation type="unfinished"></translation>
</message>
<message>
<source> - Command: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<source> - Command: %1 &gt; %2</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>CompilerAutolinkWidget</name>
@ -1559,7 +1559,7 @@
</message>
<message>
<source>*Needs restart</source>
<translation type="unfinished">*Necessário reiniciar</translation>
<translation type="obsolete">*Necessário reiniciar</translation>
</message>
<message>
<source>Fallback Font 2:</source>
@ -2286,7 +2286,7 @@
</message>
<message>
<source>Command: %1 %2</source>
<translation>Comando: %1 %2</translation>
<translation type="vanished">Comando: %1 %2</translation>
</message>
<message>
<source>Please check the &quot;program&quot; page of compiler settings.</source>
@ -2300,6 +2300,10 @@
<source>GNU Assembler</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Command: %1</source>
<translation type="unfinished">Comando: %1</translation>
</message>
</context>
<context>
<name>FilePropertiesDialog</name>
@ -5443,6 +5447,10 @@
<source>Line: %1/%2 Char: %3/%4</source>
<translation type="unfinished"></translation>
</message>
<message>
<source> %1 Version</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MemoryModel</name>
@ -5968,7 +5976,7 @@
</message>
<message>
<source>- Command: %1 %2</source>
<translation>- Comando: %1 %2</translation>
<translation type="vanished">- Comando: %1 %2</translation>
</message>
<message>
<source>Make program &apos;%1&apos; doesn&apos;t exists!</source>
@ -5978,6 +5986,10 @@
<source>Please check the &quot;program&quot; page of compiler settings.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>- Command: %1</source>
<translation type="unfinished">- Comando: %1</translation>
</message>
</context>
<context>
<name>ProjectCompilerWidget</name>
@ -7417,13 +7429,17 @@
</message>
<message>
<source>- Command: %1 %2</source>
<translation type="unfinished">- Comando: %1 %2</translation>
<translation type="obsolete">- Comando: %1 %2</translation>
</message>
<message>
<source>Can&apos;t delete the old executable file &quot;%1&quot;.
</source>
<translation type="unfinished">Impossível remover o antigo arquivo executável &quot;%1&quot;.</translation>
</message>
<message>
<source>- Command: %1</source>
<translation type="unfinished">- Comando: %1</translation>
</message>
</context>
<context>
<name>SDCCProjectCompiler</name>
@ -7469,7 +7485,11 @@
</message>
<message>
<source>- Command: %1 %2</source>
<translation type="unfinished">- Comando: %1 %2</translation>
<translation type="obsolete">- Comando: %1 %2</translation>
</message>
<message>
<source>- Command: %1</source>
<translation type="unfinished">- Comando: %1</translation>
</message>
</context>
<context>
@ -8102,12 +8122,16 @@
</message>
<message>
<source>Command: %1 %2</source>
<translation>Comando: %1 %2</translation>
<translation type="vanished">Comando: %1 %2</translation>
</message>
<message>
<source>Compiling...</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Command: %1</source>
<translation type="unfinished">Comando: %1</translation>
</message>
</context>
<context>
<name>SymbolUsageManager</name>

File diff suppressed because it is too large Load Diff

View File

@ -388,18 +388,18 @@
<source>An unknown error occurred.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source> - Command: %1 %2</source>
<translation type="unfinished"></translation>
</message>
<message>
<source> - Command: %1 %2 &gt; &quot;%3&quot;</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Can&apos;t open file &quot;%1&quot; for write!</source>
<translation type="unfinished"></translation>
</message>
<message>
<source> - Command: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<source> - Command: %1 &gt; %2</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>CompilerAutolinkWidget</name>
@ -1390,10 +1390,6 @@
<source>Fallback Font:</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>*Needs restart</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Fallback Font 2:</source>
<translation type="unfinished"></translation>
@ -2097,10 +2093,6 @@
<source>%1 Compiler: %2</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Command: %1 %2</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Please check the &quot;program&quot; page of compiler settings.</source>
<translation type="unfinished"></translation>
@ -2113,6 +2105,10 @@
<source>GNU Assembler</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Command: %1</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>FilePropertiesDialog</name>
@ -5152,6 +5148,10 @@
<source>Line: %1/%2 Char: %3/%4</source>
<translation type="unfinished"></translation>
</message>
<message>
<source> %1 Version</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MemoryModel</name>
@ -5635,10 +5635,6 @@
<source>- makefile processer: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>- Command: %1 %2</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Make program &apos;%1&apos; doesn&apos;t exists!</source>
<translation type="unfinished"></translation>
@ -5647,6 +5643,10 @@
<source>Please check the &quot;program&quot; page of compiler settings.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>- Command: %1</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ProjectCompilerWidget</name>
@ -6833,12 +6833,12 @@
<translation type="unfinished"></translation>
</message>
<message>
<source>- Command: %1 %2</source>
<source>Can&apos;t delete the old executable file &quot;%1&quot;.
</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Can&apos;t delete the old executable file &quot;%1&quot;.
</source>
<source>- Command: %1</source>
<translation type="unfinished"></translation>
</message>
</context>
@ -6885,7 +6885,7 @@
<translation type="unfinished"></translation>
</message>
<message>
<source>- Command: %1 %2</source>
<source>- Command: %1</source>
<translation type="unfinished"></translation>
</message>
</context>
@ -7422,11 +7422,11 @@
<translation type="unfinished"></translation>
</message>
<message>
<source>Command: %1 %2</source>
<source>Compiling...</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Compiling...</source>
<source>Command: %1</source>
<translation type="unfinished"></translation>
</message>
</context>