diff options
| author | 2015-02-22 14:06:29 -0500 | |
|---|---|---|
| committer | 2015-02-22 14:06:29 -0500 | |
| commit | 306d6d3ca9c9ad774d19135681a7f9805f77035f (patch) | |
| tree | a3e36ac2cc769162c30a1bcc33e126f7a4f4ccea /SQLiteStudio3/sqlitestudio | |
| parent | 016003905ca0e8e459e3dc33e786beda8ec92f45 (diff) | |
Imported Upstream version 3.0.3upstream/3.0.3
Diffstat (limited to 'SQLiteStudio3/sqlitestudio')
17 files changed, 472 insertions, 5 deletions
diff --git a/SQLiteStudio3/sqlitestudio/main.cpp b/SQLiteStudio3/sqlitestudio/main.cpp index a5f297b..f2284a6 100644 --- a/SQLiteStudio3/sqlitestudio/main.cpp +++ b/SQLiteStudio3/sqlitestudio/main.cpp @@ -133,21 +133,25 @@ int main(int argc, char *argv[]) IconManager::getInstance()->rescanResources();
- if (!CFG_UI.General.LanguageAsked.get())
+ if (!LanguageDialog::didAskForDefaultLanguage())
{
- CFG_UI.General.LanguageAsked.set(true);
+ LanguageDialog::askedForDefaultLanguage();
QMap<QString, QString> langs = getAvailableLanguages();
LanguageDialog dialog;
dialog.setLanguages(langs);
- dialog.setSelectedLang(CFG_CORE.General.Language.getDefultValue().toString());
+ dialog.setSelectedLang(getConfigLanguageDefault());
if (dialog.exec() == QDialog::Accepted)
- CFG_CORE.General.Language.set(dialog.getSelectedLang());
+ setDefaultLanguage(dialog.getSelectedLang());
QProcess::startDetached(a.applicationFilePath(), QStringList());
return 0;
}
+ // Shortcuts titles needs to be retranslated, because their titles were set initially in global scope,
+ // while translation files were not loaded yet. Now they are.
+ ExtActionContainer::refreshShortcutTranslations();
+
MainWindow::getInstance()->restoreSession();
MainWindow::getInstance()->show();
diff --git a/SQLiteStudio3/sqlitestudio/sqlitestudio.pro b/SQLiteStudio3/sqlitestudio/sqlitestudio.pro index d1528aa..63d0d50 100644 --- a/SQLiteStudio3/sqlitestudio/sqlitestudio.pro +++ b/SQLiteStudio3/sqlitestudio/sqlitestudio.pro @@ -33,7 +33,14 @@ LIBS += -lcoreSQLiteStudio -lguiSQLiteStudio SOURCES += main.cpp -TRANSLATIONS += translations/sqlitestudio_pl.ts +TRANSLATIONS += translations/sqlitestudio_zh_CN.ts \ + translations/sqlitestudio_sk.ts \ + translations/sqlitestudio_de.ts \ + translations/sqlitestudio_ru.ts \ + translations/sqlitestudio_pt_BR.ts \ + translations/sqlitestudio_fr.ts \ + translations/sqlitestudio_es.ts \ + translations/sqlitestudio_pl.ts win32: { RC_FILE = windows.rc @@ -54,3 +61,14 @@ unix: { RESOURCES += \ sqlitestudio.qrc + + + + + + + + + + + diff --git a/SQLiteStudio3/sqlitestudio/sqlitestudio.qrc b/SQLiteStudio3/sqlitestudio/sqlitestudio.qrc index 5cc74d2..de49c48 100644 --- a/SQLiteStudio3/sqlitestudio/sqlitestudio.qrc +++ b/SQLiteStudio3/sqlitestudio/sqlitestudio.qrc @@ -1,5 +1,7 @@ <RCC> <qresource prefix="/msg"> <file>translations/sqlitestudio_pl.qm</file> + <file>translations/sqlitestudio_ru.qm</file> + <file>translations/sqlitestudio_fr.qm</file> </qresource> </RCC> diff --git a/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_de.qm b/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_de.qm Binary files differnew file mode 100644 index 0000000..9dad8df --- /dev/null +++ b/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_de.qm diff --git a/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_de.ts b/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_de.ts new file mode 100644 index 0000000..65c406f --- /dev/null +++ b/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_de.ts @@ -0,0 +1,63 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="de_DE"> +<context> + <name>QObject</name> + <message> + <location filename="../main.cpp" line="42"/> + <source>GUI interface to SQLiteStudio, a SQLite manager.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="46"/> + <source>Enables debug messages in console (accessible with F12).</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="47"/> + <source>Redirects debug messages into standard output (forces debug mode).</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="48"/> + <source>Enables Lemon parser debug messages for SQL code assistant.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="49"/> + <source>Enables debugging of every single SQL query being sent to any database.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="50"/> + <source>Limits SQL query messages to only the given <database>.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="50"/> + <source>database</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="51"/> + <source>Lists plugins installed in the SQLiteStudio and quits.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="59"/> + <source>file</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="59"/> + <source>Database file to open</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="81"/> + <location filename="../main.cpp" line="96"/> + <source>Error</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_es.qm b/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_es.qm Binary files differnew file mode 100644 index 0000000..9dad8df --- /dev/null +++ b/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_es.qm diff --git a/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_es.ts b/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_es.ts new file mode 100644 index 0000000..2e4f578 --- /dev/null +++ b/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_es.ts @@ -0,0 +1,63 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="es_ES"> +<context> + <name>QObject</name> + <message> + <location filename="../main.cpp" line="42"/> + <source>GUI interface to SQLiteStudio, a SQLite manager.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="46"/> + <source>Enables debug messages in console (accessible with F12).</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="47"/> + <source>Redirects debug messages into standard output (forces debug mode).</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="48"/> + <source>Enables Lemon parser debug messages for SQL code assistant.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="49"/> + <source>Enables debugging of every single SQL query being sent to any database.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="50"/> + <source>Limits SQL query messages to only the given <database>.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="50"/> + <source>database</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="51"/> + <source>Lists plugins installed in the SQLiteStudio and quits.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="59"/> + <source>file</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="59"/> + <source>Database file to open</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="81"/> + <location filename="../main.cpp" line="96"/> + <source>Error</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_fr.qm b/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_fr.qm Binary files differnew file mode 100644 index 0000000..0165b48 --- /dev/null +++ b/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_fr.qm diff --git a/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_fr.ts b/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_fr.ts new file mode 100644 index 0000000..8ff363f --- /dev/null +++ b/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_fr.ts @@ -0,0 +1,64 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="fr_FR"> +<context> + <name>QObject</name> + <message> + <location filename="../main.cpp" line="42"/> + <source>GUI interface to SQLiteStudio, a SQLite manager.</source> + <translatorcomment>Interface GUI de SQLiteStudio un outil pour SQLite</translatorcomment> + <translation></translation> + </message> + <message> + <location filename="../main.cpp" line="46"/> + <source>Enables debug messages in console (accessible with F12).</source> + <translation>Messages de déboguage avec la console(accessible avec F12).</translation> + </message> + <message> + <location filename="../main.cpp" line="47"/> + <source>Redirects debug messages into standard output (forces debug mode).</source> + <translation>Messages de déboguage redirigés vers sortie standard(mode déboguage forcé).</translation> + </message> + <message> + <location filename="../main.cpp" line="48"/> + <source>Enables Lemon parser debug messages for SQL code assistant.</source> + <translation>Message de déboguage avec l'analyseur Lemon pour un assistant code SQL.</translation> + </message> + <message> + <location filename="../main.cpp" line="49"/> + <source>Enables debugging of every single SQL query being sent to any database.</source> + <translation>Déboguage pour toutes requêtes SQL simple utilisé pour la plupart des bases de données.</translation> + </message> + <message> + <location filename="../main.cpp" line="50"/> + <source>Limits SQL query messages to only the given <database>.</source> + <translation>Limites des meesages de la requête SQL pour la <database>.</translation> + </message> + <message> + <location filename="../main.cpp" line="50"/> + <source>database</source> + <translation>Base de données</translation> + </message> + <message> + <location filename="../main.cpp" line="51"/> + <source>Lists plugins installed in the SQLiteStudio and quits.</source> + <translation>Listes des plugins installés dans SQLiteStudio et quitter.</translation> + </message> + <message> + <location filename="../main.cpp" line="59"/> + <source>file</source> + <translation>Fichier</translation> + </message> + <message> + <location filename="../main.cpp" line="59"/> + <source>Database file to open</source> + <translation>Fichier de la base de données à ouvrir</translation> + </message> + <message> + <location filename="../main.cpp" line="81"/> + <location filename="../main.cpp" line="96"/> + <source>Error</source> + <translation>Erreur</translation> + </message> +</context> +</TS> diff --git a/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_pt_BR.qm b/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_pt_BR.qm Binary files differnew file mode 100644 index 0000000..c02994c --- /dev/null +++ b/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_pt_BR.qm diff --git a/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_pt_BR.ts b/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_pt_BR.ts new file mode 100644 index 0000000..f549b1e --- /dev/null +++ b/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_pt_BR.ts @@ -0,0 +1,63 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="pt_BR"> +<context> + <name>QObject</name> + <message> + <location filename="../main.cpp" line="42"/> + <source>GUI interface to SQLiteStudio, a SQLite manager.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="46"/> + <source>Enables debug messages in console (accessible with F12).</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="47"/> + <source>Redirects debug messages into standard output (forces debug mode).</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="48"/> + <source>Enables Lemon parser debug messages for SQL code assistant.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="49"/> + <source>Enables debugging of every single SQL query being sent to any database.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="50"/> + <source>Limits SQL query messages to only the given <database>.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="50"/> + <source>database</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="51"/> + <source>Lists plugins installed in the SQLiteStudio and quits.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="59"/> + <source>file</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="59"/> + <source>Database file to open</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="81"/> + <location filename="../main.cpp" line="96"/> + <source>Error</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_ru.qm b/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_ru.qm Binary files differnew file mode 100644 index 0000000..c8e1e69 --- /dev/null +++ b/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_ru.qm diff --git a/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_ru.ts b/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_ru.ts new file mode 100644 index 0000000..3b24e3c --- /dev/null +++ b/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_ru.ts @@ -0,0 +1,63 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="ru_RU"> +<context> + <name>QObject</name> + <message> + <location filename="../main.cpp" line="42"/> + <source>GUI interface to SQLiteStudio, a SQLite manager.</source> + <translation>Графический интерфейс для SQLiteStudio, менеджера баз данных SQLite.</translation> + </message> + <message> + <location filename="../main.cpp" line="46"/> + <source>Enables debug messages in console (accessible with F12).</source> + <translation>Включает вывод отладочных сообщений в консоль (доступную по нажатию F12).</translation> + </message> + <message> + <location filename="../main.cpp" line="47"/> + <source>Redirects debug messages into standard output (forces debug mode).</source> + <translation>Перенаправляет отладочные сообщения в стандартный поток (принудительный отладочный режим).</translation> + </message> + <message> + <location filename="../main.cpp" line="48"/> + <source>Enables Lemon parser debug messages for SQL code assistant.</source> + <translation>Включает вывод отладочных сообщений анализатора Lemon для автодополнения SQL кода.</translation> + </message> + <message> + <location filename="../main.cpp" line="49"/> + <source>Enables debugging of every single SQL query being sent to any database.</source> + <translation>Включает отладку каждого запроса SQL, посылаемого к любой базе данных.</translation> + </message> + <message> + <location filename="../main.cpp" line="50"/> + <source>Limits SQL query messages to only the given <database>.</source> + <translation>Ограничивает сообщения запросов SQL только для указанной <базы данных>.</translation> + </message> + <message> + <location filename="../main.cpp" line="50"/> + <source>database</source> + <translation>база данных</translation> + </message> + <message> + <location filename="../main.cpp" line="51"/> + <source>Lists plugins installed in the SQLiteStudio and quits.</source> + <translation>Выводит список установленных в SQLiteStudio модулей и осуществляет выход.</translation> + </message> + <message> + <location filename="../main.cpp" line="59"/> + <source>file</source> + <translation>файл</translation> + </message> + <message> + <location filename="../main.cpp" line="59"/> + <source>Database file to open</source> + <translation>Файл базы данных для открытия</translation> + </message> + <message> + <location filename="../main.cpp" line="81"/> + <location filename="../main.cpp" line="96"/> + <source>Error</source> + <translation>Ошибка</translation> + </message> +</context> +</TS> diff --git a/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_sk.qm b/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_sk.qm Binary files differnew file mode 100644 index 0000000..1776294 --- /dev/null +++ b/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_sk.qm diff --git a/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_sk.ts b/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_sk.ts new file mode 100644 index 0000000..1b4c3a2 --- /dev/null +++ b/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_sk.ts @@ -0,0 +1,63 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="sk_SK"> +<context> + <name>QObject</name> + <message> + <location filename="../main.cpp" line="42"/> + <source>GUI interface to SQLiteStudio, a SQLite manager.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="46"/> + <source>Enables debug messages in console (accessible with F12).</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="47"/> + <source>Redirects debug messages into standard output (forces debug mode).</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="48"/> + <source>Enables Lemon parser debug messages for SQL code assistant.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="49"/> + <source>Enables debugging of every single SQL query being sent to any database.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="50"/> + <source>Limits SQL query messages to only the given <database>.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="50"/> + <source>database</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="51"/> + <source>Lists plugins installed in the SQLiteStudio and quits.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="59"/> + <source>file</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="59"/> + <source>Database file to open</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="81"/> + <location filename="../main.cpp" line="96"/> + <source>Error</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_zh_CN.qm b/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_zh_CN.qm new file mode 100644 index 0000000..be651ee --- /dev/null +++ b/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_zh_CN.qm @@ -0,0 +1 @@ +<d!`
\ No newline at end of file diff --git a/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_zh_CN.ts b/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_zh_CN.ts new file mode 100644 index 0000000..e5f6a78 --- /dev/null +++ b/SQLiteStudio3/sqlitestudio/translations/sqlitestudio_zh_CN.ts @@ -0,0 +1,63 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="zh_CN"> +<context> + <name>QObject</name> + <message> + <location filename="../main.cpp" line="42"/> + <source>GUI interface to SQLiteStudio, a SQLite manager.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="46"/> + <source>Enables debug messages in console (accessible with F12).</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="47"/> + <source>Redirects debug messages into standard output (forces debug mode).</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="48"/> + <source>Enables Lemon parser debug messages for SQL code assistant.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="49"/> + <source>Enables debugging of every single SQL query being sent to any database.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="50"/> + <source>Limits SQL query messages to only the given <database>.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="50"/> + <source>database</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="51"/> + <source>Lists plugins installed in the SQLiteStudio and quits.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="59"/> + <source>file</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="59"/> + <source>Database file to open</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../main.cpp" line="81"/> + <location filename="../main.cpp" line="96"/> + <source>Error</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> |
