From: Marcin Kaźmierczak Date: Tue, 16 Nov 2010 13:29:45 +0000 (+0100) Subject: add stardict plugin translations X-Git-Url: https://vcs.maemo.org/git/?a=commitdiff_plain;h=7dd7dae9cc55a957c22cd4c3dd93d32d1deb5328;p=mdictionary add stardict plugin translations --- diff --git a/src/plugins/stardict/StarDialog.cpp b/src/plugins/stardict/StarDialog.cpp index 6f18d02..c3b6131 100644 --- a/src/plugins/stardict/StarDialog.cpp +++ b/src/plugins/stardict/StarDialog.cpp @@ -63,15 +63,18 @@ void StarDialog::initializeUI() { infoLabel = new QLabel; infoLabel->setWordWrap(true); + QVBoxLayout* buttonLayout = new QVBoxLayout; if(type == New) { setWindowTitle(tr("Add new StarDict dictionary")); browseLayout = new QHBoxLayout; browseButton = new QPushButton(tr("Browse")); + browseButton->setMaximumWidth(150); infoLabel->setText(tr("Dictionary file: not selected")); browseLayout->addWidget(infoLabel, 0, Qt::AlignLeft); + browseLayout->addLayout(buttonLayout); browseLayout->addWidget(browseButton, 0, Qt::AlignRight); mainVerticalLayout->addLayout(browseLayout); @@ -97,7 +100,7 @@ void StarDialog::initializeUI() { accentsLayout = new QHBoxLayout; accentsCheckBox = new QCheckBox(tr("Strip accents")); accentsCheckBox->setToolTip(accentsToolTip); - accentsLayout->addWidget(accentsCheckBox); + accentsLayout->addWidget(accentsCheckBox); #ifdef Q_WS_MAEMO_5 accentsInfoToolButton = new QToolButton; accentsInfoToolButton->setIcon(QIcon::fromTheme("general_information")); diff --git a/src/plugins/stardict/StarDict.qrc b/src/plugins/stardict/StarDict.qrc index 0642344..bf6c980 100644 --- a/src/plugins/stardict/StarDict.qrc +++ b/src/plugins/stardict/StarDict.qrc @@ -1,6 +1,6 @@ - - translations/pl_PL.qm + translations/en_US.qm + translations/pl_PL.qm diff --git a/src/plugins/stardict/StarDictPlugin.cpp b/src/plugins/stardict/StarDictPlugin.cpp index bf75e6a..aa055e4 100644 --- a/src/plugins/stardict/StarDictPlugin.cpp +++ b/src/plugins/stardict/StarDictPlugin.cpp @@ -50,8 +50,8 @@ void StarDictPlugin::retranslate() { QTranslator *translator = new QTranslator(this); - if(!translator->load(":/xdxf/translations/" + locale)) { - translator->load(":/xdxf/translations/en_US"); + if(!translator->load(":/stardict/translations/" + locale)) { + translator->load(":/stardict/translations/en_US"); } QCoreApplication::installTranslator(translator); } diff --git a/src/plugins/stardict/en_US.ts b/src/plugins/stardict/en_US.ts index 64c07a0..06f924d 100644 --- a/src/plugins/stardict/en_US.ts +++ b/src/plugins/stardict/en_US.ts @@ -2,159 +2,123 @@ - XdxfCachingDialog + StarDialog - - - Caching dictionary, please wait + + Strip accents (searching takes more time, but spelling doesn't have to be exact) - - Cancel + + Add new StarDict dictionary - - Estimated time left: + + Browse - - - %n second(s) - - %n second - %n seconds - - - - - XdxfDialog - - Optimize for quicker searches (may take some time) + + Dictionary file: not selected - - Strip accents (searching takes more time, but spelling doesn't have to be exact) + + StarDict Settings - - Add new XDXF dictionary + + Plugin: - - Browse + + Book name: - - Dictionary file: not selected + + Version: - - XDXF Settings + + Word count: - - Plugin: + + Author: - - From: + + E-mail: - - To: + + Website: - + Description: - - Strip accents + + Date: - - Optimize + + Strip accents - + Add - + Save settings - + Select dictionary file - - XDXF Files (*.xdxf) + + StarDict Files (*.dict *dict.dz *.idx *idx.gz *.ifo) - + Dictionary file: %1 - + File path is not set - - - XdxfPlugin - - - - Cache database cannot be opened for %1 dictionary. Searching in XDXF file. You may want to recache. - - - - - - XDXF file cannot be read for %1 - - - - - XDXF file is in wrong format - - - - - XDXF dictionary cannot be read from file - - - - - - XDXF file cannot be read for %1 dictionary + + Dictionary files are not complete + + + StarDictPlugin - - Database caching error, please try again. + + StarDict dictionary cannot be read from file diff --git a/src/plugins/stardict/pl_PL.ts b/src/plugins/stardict/pl_PL.ts index 9800a1c..e330f57 100644 --- a/src/plugins/stardict/pl_PL.ts +++ b/src/plugins/stardict/pl_PL.ts @@ -2,161 +2,124 @@ - XdxfCachingDialog + StarDialog - - - Caching dictionary, please wait - Optymalizacja słownika, proszę czekać + + Strip accents (searching takes more time, but spelling doesn't have to be exact) + Usuń akcenty (wyszukiwanie trwa dłużej, ale szukane słowo nie musi być wpisane dokładnie) - - Cancel - Anuluj + + Add new StarDict dictionary + Dodaj nowy słownik StarDict - - Estimated time left: - Pozostały czas: + + Browse + Przeglądaj - - - %n second(s) - - %n sekunda - %n sekundy - %n sekund - + + + Dictionary file: not selected + Plik ze słownikiem nie został wybrany - - - XdxfDialog - - Optimize for quicker searches (may take some time) - Optymalizuj dla szybszego wyszukiwania (może zająć trochę czasu) + + StarDict Settings + Ustawienia StarDict - - Strip accents (searching takes more time, but spelling doesn't have to be exact) - Usuń akcenty (wyszukiwanie trwa dłużej, ale szukane słowo nie musi być wpisane dokładnie) + + Plugin: + - - Add new XDXF dictionary - Dodaj nowy słownik XDXF + + Book name: + Słownik: - - Browse - Przeglądaj + + Version: + Wersja: - - Dictionary file: not selected - Plik ze słownikiem nie został wybrany + + Word count: + Liczba słów: - - XDXF Settings - Ustawienia XDXF + + Author: + Autor: - - Plugin: + + E-mail: - - From: - Z: + + Website: + Strona: - - To: - Na: + + Description: + Opis: - - Description: - Opis: + + Date: + Data: - + Strip accents Usuń akcenty - - Optimize - Optymalizuj - - - + Add Dodaj - + Save settings Zapisz ustawienia - + Select dictionary file Wybierz plik ze słownikiem - - XDXF Files (*.xdxf) - Pliki XDXF (*.xdxf) + + StarDict Files (*.dict *dict.dz *.idx *idx.gz *.ifo) + Pliki StarDict (*.dict *dict.dz *.idx *idx.gz *.ifo) - + Dictionary file: %1 Plik ze słownikiem: %1 - + File path is not set Ścieżka do pliku nie jest ustawiona - - - XdxfPlugin - - - - - Cache database cannot be opened for %1 dictionary. Searching in XDXF file. You may want to recache. - Nie można otworzyć bazy danych dla słownika %1. Szukanie w pliku XDXF. Możesz spróbować ponownie włączyć optymalizację. - - - - XDXF file cannot be read for %1 - Nie można odczytać pliku XDXF dla %1 - - - - XDXF file is in wrong format - Niewłaściwy format pliku XDXF - - - - XDXF dictionary cannot be read from file - Nie można odczytać słownika XDXF z pliku - - - - - XDXF file cannot be read for %1 dictionary - Nie mozna odczytać pliku XDXF dla słownika %1 + + Dictionary files are not complete + Brak części plików słownika + + + StarDictPlugin - - Database caching error, please try again. - Błąd optymalizacji, proszę spróbować ponownie. + + StarDict dictionary cannot be read from file + Nie można odczytać słownika StarDict z pliku diff --git a/src/plugins/stardict/translations/en_US.qm b/src/plugins/stardict/translations/en_US.qm index 900f716..9dad8df 100644 Binary files a/src/plugins/stardict/translations/en_US.qm and b/src/plugins/stardict/translations/en_US.qm differ diff --git a/src/plugins/stardict/translations/pl_PL.qm b/src/plugins/stardict/translations/pl_PL.qm index 07a9e30..17a6ab3 100644 Binary files a/src/plugins/stardict/translations/pl_PL.qm and b/src/plugins/stardict/translations/pl_PL.qm differ