diff options
| author | 2015-01-30 17:00:07 -0500 | |
|---|---|---|
| committer | 2015-01-30 17:00:07 -0500 | |
| commit | 016003905ca0e8e459e3dc33e786beda8ec92f45 (patch) | |
| tree | 34aba2d2e0d66fbf2c3821ee8358f56e40c4c95e /Plugins/ConfigMigration | |
| parent | 724c012ada23ef480c61fe99e3c9784b91aeb1ca (diff) | |
Imported Upstream version 3.0.2upstream/3.0.2
Diffstat (limited to 'Plugins/ConfigMigration')
| -rw-r--r-- | Plugins/ConfigMigration/ConfigMigration.pro | 4 | ||||
| -rw-r--r-- | Plugins/ConfigMigration/ConfigMigration_pl.qm | bin | 0 -> 7282 bytes | |||
| -rw-r--r-- | Plugins/ConfigMigration/ConfigMigration_pl.ts | 152 | ||||
| -rw-r--r-- | Plugins/ConfigMigration/configmigration.cpp | 2 | ||||
| -rw-r--r-- | Plugins/ConfigMigration/configmigration.json | 2 | ||||
| -rw-r--r-- | Plugins/ConfigMigration/configmigration.qrc | 3 | ||||
| -rw-r--r-- | Plugins/ConfigMigration/configmigrationwizard.cpp | 4 |
7 files changed, 164 insertions, 3 deletions
diff --git a/Plugins/ConfigMigration/ConfigMigration.pro b/Plugins/ConfigMigration/ConfigMigration.pro index 965cfeb..aae8b5b 100644 --- a/Plugins/ConfigMigration/ConfigMigration.pro +++ b/Plugins/ConfigMigration/ConfigMigration.pro @@ -29,3 +29,7 @@ FORMS += \ RESOURCES += \ configmigration.qrc + + +TRANSLATIONS += ConfigMigration_pl.ts + diff --git a/Plugins/ConfigMigration/ConfigMigration_pl.qm b/Plugins/ConfigMigration/ConfigMigration_pl.qm Binary files differnew file mode 100644 index 0000000..b62b803 --- /dev/null +++ b/Plugins/ConfigMigration/ConfigMigration_pl.qm diff --git a/Plugins/ConfigMigration/ConfigMigration_pl.ts b/Plugins/ConfigMigration/ConfigMigration_pl.ts new file mode 100644 index 0000000..08919fd --- /dev/null +++ b/Plugins/ConfigMigration/ConfigMigration_pl.ts @@ -0,0 +1,152 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="pl_PL"> +<context> + <name>ConfigMigration</name> + <message> + <location filename="configmigration.cpp" line="36"/> + <source>A configuration from old SQLiteStudio 2.x.x has been detected. Would you like to migrate old settings into the current version? <a href="%1">Click here to do that</a>.</source> + <translation>Wykryto ustawienia ze starej wersji SQLiteStudio 2.x.x. Czy chcesz zmigrować stare ustawienia do aktualnej wersji? <a href="%1">Kliknij, aby to zrobić</a>.</translation> + </message> + <message> + <location filename="configmigration.cpp" line="136"/> + <source>Bug reports history (%1)</source> + <translation>Historia zgłoszonych błędów (%1)</translation> + </message> + <message> + <location filename="configmigration.cpp" line="145"/> + <source>Database list (%1)</source> + <translation>Lista baz danych (%1)</translation> + </message> + <message> + <location filename="configmigration.cpp" line="154"/> + <source>Custom SQL functions (%1)</source> + <translation>Własne funkcje SQL (%1)</translation> + </message> + <message> + <location filename="configmigration.cpp" line="163"/> + <source>SQL queries history (%1)</source> + <translation>Historia zapytań SQL (%1)</translation> + </message> +</context> +<context> + <name>ConfigMigrationWizard</name> + <message> + <location filename="configmigrationwizard.ui" line="14"/> + <source>Configuration migration</source> + <translation>Migracja ustawień</translation> + </message> + <message> + <location filename="configmigrationwizard.ui" line="24"/> + <source>Items to migrate</source> + <translation>Elementy do zmigrowania</translation> + </message> + <message> + <location filename="configmigrationwizard.ui" line="27"/> + <source>This is a list of items found in the old configuration file, which can be migrated into the current configuration.</source> + <translation>To jest lista elementów znalezionych w starym pliku konfiguracyjnym, które mogą być zmigrowane do aktualnych ustawień.</translation> + </message> + <message> + <location filename="configmigrationwizard.ui" line="58"/> + <source>Options</source> + <translation>Opcje</translation> + </message> + <message> + <location filename="configmigrationwizard.ui" line="64"/> + <source>Put imported databases into separate group</source> + <translation>Umieść zaimportowane bazy danych w osobnej grupie</translation> + </message> + <message> + <location filename="configmigrationwizard.ui" line="76"/> + <source>Group name</source> + <translation>Nazwa grupy</translation> + </message> + <message> + <location filename="configmigrationwizard.cpp" line="60"/> + <source>Enter a non-empty name.</source> + <translation>Wprowadź niepustą nazwę.</translation> + </message> + <message> + <location filename="configmigrationwizard.cpp" line="68"/> + <source>Top level group named '%1' already exists. Enter a group name that does not exist yet.</source> + <translation>Grupa o nazwie '%1' istnieje już na najwyższym poziomie. Wprowadź nazwę grupy, która jeszcze nie istnieje.</translation> + </message> + <message> + <location filename="configmigrationwizard.cpp" line="102"/> + <source>Could not open old configuration file in order to migrate settings from it.</source> + <translation>Nie udało się otworzyć starego pliku ustawień w celu zmigtowania z niego ustawień.</translation> + </message> + <message> + <location filename="configmigrationwizard.cpp" line="110"/> + <source>Could not open current configuration file in order to migrate settings from old configuration file.</source> + <translation>Nie udało się otworzyć aktualnego pliku ustawień w celu zmigrowania do niego ustawień ze starego pliku konfiguracyjnego.</translation> + </message> + <message> + <location filename="configmigrationwizard.cpp" line="119"/> + <source>Could not commit migrated data into new configuration file: %1</source> + <translation>Nie udało się zatwierdzenie zmigrowanych danych w nowym pliku ustawień: %1</translation> + </message> + <message> + <location filename="configmigrationwizard.cpp" line="163"/> + <source>Could not read bug reports history from old configuration file in order to migrate it: %1</source> + <translation>Nie udał się odczyt historii zgłoszeń błędów ze starego pliku konfiguracyjnego w celu jej zmigrowania: %1</translation> + </message> + <message> + <location filename="configmigrationwizard.cpp" line="180"/> + <source>Could not insert a bug reports history entry into new configuration file: %1</source> + <translation>Nie udało się dodać wpisów historii zgłoszeń błędów do nowego pliku ustawień: %1</translation> + </message> + <message> + <location filename="configmigrationwizard.cpp" line="201"/> + <source>Could not read database list from old configuration file in order to migrate it: %1</source> + <translation>Nie udało się odczytać listy baz danych ze starego pliku ustawień w celu jej zmigtowania: %1</translation> + </message> + <message> + <location filename="configmigrationwizard.cpp" line="215"/> + <source>Could not query for available order for containing group in new configuration file in order to migrate the database list: %1</source> + <oldsource>Could query for available order for containing group in new configuration file in order to migrate the database list: %1</oldsource> + <translation>Nie udało się odpytać o dostępną kolejność dla grupy zawierającej w nowym pliku ustawień, w celu zmigrowania listy baz danych: %1</translation> + </message> + <message> + <location filename="configmigrationwizard.cpp" line="226"/> + <source>Could not create containing group in new configuration file in order to migrate the database list: %1</source> + <translation>Nie udało się stworzyć grupy w nowym pliku ustawień, w celu zmigrowania listy baz danych: %1</translation> + </message> + <message> + <location filename="configmigrationwizard.cpp" line="247"/> + <source>Could not insert a database entry into new configuration file: %1</source> + <translation>Nie udało się dodać wpisu bazy danych do nowego pliku ustawień: %1</translation> + </message> + <message> + <location filename="configmigrationwizard.cpp" line="259"/> + <source>Could not query for available order for next database in new configuration file in order to migrate the database list: %1</source> + <oldsource>Could query for available order for next database in new configuration file in order to migrate the database list: %1</oldsource> + <translation>Nie udało się odpytać o dostępną kolejność dla następnej bazy w nowym pliku ustawień, w celu zmigrowania listy baz danych: %1</translation> + </message> + <message> + <location filename="configmigrationwizard.cpp" line="270"/> + <source>Could not create group referencing the database in new configuration file: %1</source> + <translation>Nie udało się utworzyć grupy odwołującej się do bazy danych w nowym pliku ustawień: %1</translation> + </message> + <message> + <location filename="configmigrationwizard.cpp" line="288"/> + <source>Could not read function list from old configuration file in order to migrate it: %1</source> + <translation>Nie udało się odczytać listy funkcji ze starego pliku ustawień w celu jej zmigrowania: %1</translation> + </message> + <message> + <location filename="configmigrationwizard.cpp" line="323"/> + <source>Could not read SQL queries history from old configuration file in order to migrate it: %1</source> + <translation>Nie udało się odczytać historii zapytań SQL ze starego pliku ustawień w celu zmigrowania jej: %1</translation> + </message> + <message> + <location filename="configmigrationwizard.cpp" line="330"/> + <source>Could not read next ID for SQL queries history in new configuration file: %1</source> + <translation>Nie udało się odczytać następnego ID dla historii zapytań SQL w nowym pliku ustawień: %1</translation> + </message> + <message> + <location filename="configmigrationwizard.cpp" line="346"/> + <source>Could not insert SQL history entry into new configuration file: %1</source> + <translation>Nie udało się dodanie wpisu do historii SQL w nowym pliku ustawień: %1</translation> + </message> +</context> +</TS> diff --git a/Plugins/ConfigMigration/configmigration.cpp b/Plugins/ConfigMigration/configmigration.cpp index cd49d24..8d75e37 100644 --- a/Plugins/ConfigMigration/configmigration.cpp +++ b/Plugins/ConfigMigration/configmigration.cpp @@ -5,6 +5,7 @@ #include "statusfield.h" #include "configmigrationwizard.h" #include "db/dbsqlite3.h" +#include "translations.h" #include <QCoreApplication> #include <QDir> #include <QFileInfo> @@ -17,6 +18,7 @@ ConfigMigration::ConfigMigration() bool ConfigMigration::init() { Q_INIT_RESOURCE(configmigration); + loadTranslation("ConfigMigration"); if (cfg.CfgMigration.Migrated.get()) { diff --git a/Plugins/ConfigMigration/configmigration.json b/Plugins/ConfigMigration/configmigration.json index 14e5d4b..a8c62d3 100644 --- a/Plugins/ConfigMigration/configmigration.json +++ b/Plugins/ConfigMigration/configmigration.json @@ -2,7 +2,7 @@ "type": "GeneralPurposePlugin", "title": "Configuration migration", "description": "Performs migration from SQLiteStudio 2.1.x configuration to version 3.0.0.", - "version": 10001, + "version": 10002, "author": "SalSoft", "gui": true } diff --git a/Plugins/ConfigMigration/configmigration.qrc b/Plugins/ConfigMigration/configmigration.qrc index 9df7d5e..a46382a 100644 --- a/Plugins/ConfigMigration/configmigration.qrc +++ b/Plugins/ConfigMigration/configmigration.qrc @@ -2,4 +2,7 @@ <qresource prefix="/icons"> <file>config_migration.png</file> </qresource> + <qresource prefix="/msg"> + <file>ConfigMigration_pl.qm</file> + </qresource> </RCC> diff --git a/Plugins/ConfigMigration/configmigrationwizard.cpp b/Plugins/ConfigMigration/configmigrationwizard.cpp index afdf705..7868761 100644 --- a/Plugins/ConfigMigration/configmigrationwizard.cpp +++ b/Plugins/ConfigMigration/configmigrationwizard.cpp @@ -212,7 +212,7 @@ bool ConfigMigrationWizard::migrateDatabases(Db* oldCfgDb, Db* newCfgDb) groupResults = newCfgDb->exec(groupOrderQuery.arg("IS NULL")); if (groupResults->isError()) { - notifyError(tr("Could query for available order for containing group in new configuration file in order to migrate the database list: %1") + notifyError(tr("Could not query for available order for containing group in new configuration file in order to migrate the database list: %1") .arg(groupResults->getErrorText())); return false; } @@ -256,7 +256,7 @@ bool ConfigMigrationWizard::migrateDatabases(Db* oldCfgDb, Db* newCfgDb) if (groupResults->isError()) { - notifyError(tr("Could query for available order for next database in new configuration file in order to migrate the database list: %1") + notifyError(tr("Could not query for available order for next database in new configuration file in order to migrate the database list: %1") .arg(groupResults->getErrorText())); return false; } |
