Added translator debug mode.
This commit is contained in:
parent
a7ffec8827
commit
90cce0a370
@ -25,6 +25,7 @@ namespace settings_names {
|
|||||||
const QString sourceLanguage = "source_language";
|
const QString sourceLanguage = "source_language";
|
||||||
const QString translationLanguage = "translation_language";
|
const QString translationLanguage = "translation_language";
|
||||||
const QString translationTimeout = "translation_timeout";
|
const QString translationTimeout = "translation_timeout";
|
||||||
|
const QString translationDebugMode = "translation_debug";
|
||||||
const QString translators = "translators";
|
const QString translators = "translators";
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -50,6 +51,7 @@ namespace settings_values {
|
|||||||
const QString sourceLanguage = "auto";
|
const QString sourceLanguage = "auto";
|
||||||
const QString translationLanguage = "ru";
|
const QString translationLanguage = "ru";
|
||||||
const int translationTimeout = 15; // secs
|
const int translationTimeout = 15; // secs
|
||||||
|
const bool translationDebugMode = false;
|
||||||
const QString translators = "";
|
const QString translators = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -128,6 +128,8 @@ void WebTranslator::applySettings () {
|
|||||||
if (!translatorHelper_->gotScripts ()) {
|
if (!translatorHelper_->gotScripts ()) {
|
||||||
emit error (tr ("Нет сценариев для перевода. Измените настройки."));
|
emit error (tr ("Нет сценариев для перевода. Измените настройки."));
|
||||||
}
|
}
|
||||||
|
bool debugMode = GET (translationDebugMode).toBool ();
|
||||||
|
setDebugMode (debugMode);
|
||||||
#undef GET
|
#undef GET
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user