Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
zhitm committed Dec 21, 2023
1 parent 9d8c8e6 commit f828e2b
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 30 deletions.
Binary file removed installer/.download-arm-none-eabi.sh.kate-swp
Binary file not shown.
16 changes: 8 additions & 8 deletions plugins/robots/generators/generators.pro
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ TEMPLATE = subdirs

SUBDIRS = \
generatorBase \
trikGeneratorBase \
trikQtsGeneratorLibrary \
trikV62QtsGenerator \
trikPythonGeneratorLibrary \
trikV62PythonGenerator \
trikGeneratorBase \
trikQtsGeneratorLibrary \
trikV62QtsGenerator \
trikPythonGeneratorLibrary \
trikV62PythonGenerator \
nxtGeneratorBase \
nxtOsekCGenerator \
ev3GeneratorBase \
ev3RbfGenerator \
pioneerLuaGenerator \
ev3GeneratorBase \
ev3RbfGenerator \
pioneerLuaGenerator \

trikGeneratorBase.subdir = $$PWD/trik/trikGeneratorBase
trikQtsGeneratorLibrary.subdir = $$PWD/trik/trikQtsGeneratorLibrary
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ void NxtFlashTool::readNxtCompileData()
error(tr("Compilation error occured. Please check your function blocks syntax. "
"If you sure in their validness contact developers"));
} else {
error(tr("Could not upload program. Make sure the robot is connected and ON."));
error(tr("Could not upload program. Make sure the robot is connected and ON"));
if (QOperatingSystemVersion::currentType() == QOperatingSystemVersion::OSType::Unknown) {
error(tr("If you are using GNU/Linux visit "
"https://help.trikset.com/nxt/run-upload-programs to get instructions"));
Expand Down
10 changes: 5 additions & 5 deletions plugins/robots/interpreters/interpreters.pro
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ SUBDIRS = \
interpreterCore \
nullKitInterpreter \
nxtKitInterpreter \
trikKitInterpreterCommon \
trikV62KitInterpreter \
ev3KitInterpreter \
robotsPlugin \
pioneerKitInterpreter \
trikKitInterpreterCommon \
trikV62KitInterpreter \
ev3KitInterpreter \
robotsPlugin \
pioneerKitInterpreter \

CONFIG(trik_retired_features) {
SUBDIRS += trikV6KitInterpreter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,11 @@ void NxtAdditionalPreferences::setColorOnGeneratorLabel(QColor color){

void NxtAdditionalPreferences::setTextOnGeneratorLabel(){
if (!mUi->compilerPicker->isSavedDirExist()){
mUi->generatorLabel->setText("WARNING: Current directory doesn't exist. \nOpen link: "
"https://help.trikset.com/nxt/run-upload-programs for instructions");
mUi->generatorLabel->setText(tr("WARNING: Current directory doesn't exist. \nOpen "
"<a href=\"https://help.trikset.com/nxt/run-upload-programs\">link</a> for instructions"));
mUi->generatorLabel->setTextFormat(Qt::RichText);
mUi->generatorLabel->setTextInteractionFlags(Qt::TextBrowserInteraction);
mUi->generatorLabel->setOpenExternalLinks(true);
setColorOnGeneratorLabel(QColor("red"));
}
else {
Expand Down
6 changes: 6 additions & 0 deletions plugins/robots/thirdparty/thirdparty.pro
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ TEMPLATE = subdirs
SUBDIRS += \
qextserialport \
libusb-1.0 \
<<<<<<< HEAD
<<<<<<< HEAD
trikRuntime \
Box2D \
Expand All @@ -26,3 +27,8 @@ SUBDIRS += \
Box2D \
python \
>>>>>>> 4dbe48f3b (lupdate)
=======
trikRuntime \
Box2D \
python \
>>>>>>> c4b5f989c (Refactor)
6 changes: 6 additions & 0 deletions qrtranslations/fr/plugins/robots/nxtKitInterpreter_fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@
<source>Path to arm-none-eabi:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+19"/>
<source>WARNING: Current directory doesn&apos;t exist.
Open &lt;a href=&quot;https://help.trikset.com/nxt/run-upload-programs&quot;&gt;link&lt;/a&gt; for instructions</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>nxt::NxtKitInterpreterPlugin</name>
Expand Down
12 changes: 4 additions & 8 deletions qrtranslations/fr/plugins/robots/nxtOsekCGenerator_fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,12 @@
<translation>Échec de téléversement. Assurez-vous que le serveur X permet de lancer les applications à l&apos;interface graphique</translation>
</message>
<message>
<location line="+48"/>
<source>Could not upload program. Make sure the robot is connected and ON</source>
<translation type="vanished">Échec de téléversement du programme. Assurez-vous que le robot soit connecté et qu&apos;il ne soit pas éteint</translation>
<translation>Échec de téléversement du programme. Assurez-vous que le robot soit connecté et qu&apos;il ne soit pas éteint</translation>
</message>
<message>
<location line="+91"/>
<location line="+43"/>
<source>Error in reading from firmware file: %1</source>
<translation type="unfinished"></translation>
</message>
Expand Down Expand Up @@ -151,12 +152,7 @@
<translation type="unfinished"></translation>
</message>
<message>
<location line="+46"/>
<source>Could not upload program. Make sure the robot is connected and ON.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+2"/>
<location line="+48"/>
<source>If you are using GNU/Linux visit https://help.trikset.com/nxt/run-upload-programs to get instructions</source>
<translation type="unfinished"></translation>
</message>
Expand Down
9 changes: 8 additions & 1 deletion qrtranslations/ru/plugins/robots/nxtKitInterpreter_ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,14 @@
<message>
<location line="+1"/>
<source>Path to arm-none-eabi:</source>
<translation type="unfinished"></translation>
<translation>Путь к кросс-компилятору</translation>
</message>
<message>
<location line="+19"/>
<source>WARNING: Current directory doesn&apos;t exist.
Open &lt;a href=&quot;https://help.trikset.com/nxt/run-upload-programs&quot;&gt;link&lt;/a&gt; for instructions</source>
<translation>ВНИМАНИЕ: Выбранная директория не существует.
Откройте &lt;a href=&quot;https://help.trikset.com/nxt/run-upload-programs&quot;&gt;ссылку&lt;/a&gt; для дальнейших инструкций</translation>
</message>
</context>
<context>
Expand Down
10 changes: 5 additions & 5 deletions qrtranslations/ru/plugins/robots/nxtOsekCGenerator_ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,12 @@
<translation>Не удалось загрузить программу в робота. Убедитесь, что TRIKStusio запущена с нужными правами</translation>
</message>
<message>
<location line="+48"/>
<source>Could not upload program. Make sure the robot is connected and ON</source>
<translation type="vanished">Не удалось загрузить программу в робота. Убедитесь, что робот включен и подсоединен к компьютеру</translation>
<translation>Не удалось загрузить программу в робота. Убедитесь, что робот включен и подсоединен к компьютеру</translation>
</message>
<message>
<location line="+91"/>
<location line="+43"/>
<source>Error in reading from firmware file: %1</source>
<translation>Ошибка чтения из файла с прошивкой %1</translation>
</message>
Expand Down Expand Up @@ -151,12 +152,11 @@
<translation>Загрузка программы не удалась. Возможно, стоит попробовать перезапустить среду с правами суперпользователя</translation>
</message>
<message>
<location line="+46"/>
<source>Could not upload program. Make sure the robot is connected and ON.</source>
<translation>Не удалось загрузить программу. Убедитесь, что робот подключен и включен.</translation>
<translation type="vanished">Не удалось загрузить программу. Убедитесь, что робот подключен и включен.</translation>
</message>
<message>
<location line="+2"/>
<location line="+48"/>
<source>If you are using GNU/Linux visit https://help.trikset.com/nxt/run-upload-programs to get instructions</source>
<translation>Если вы пользователь ОС GNU/Linux, перейдите по ссылке https://help.trikset.com/nxt/run-upload-programs для получения инструкций.</translation>
</message>
Expand Down

0 comments on commit f828e2b

Please sign in to comment.