From: jakub Date: Thu, 18 Nov 2010 10:09:29 +0000 (+0100) Subject: Merge branch 'stardict' of ssh://drop.maemo.org/git/mdictionary into stardict X-Git-Url: https://vcs.maemo.org/git/?a=commitdiff_plain;h=eb480052819374706a71f479cc8b062806f8484c;hp=f86f31535d8c34e40a83e5a722b06a5a490af0da;p=mdictionary Merge branch 'stardict' of ssh://drop.maemo.org/git/mdictionary into stardict Conflicts: src/plugins/stardict/StarDialog.cpp src/plugins/stardict/StarDictPlugin.cpp src/plugins/stardict/en_US.ts src/plugins/stardict/pl_PL.ts --- diff --git a/src/plugins/stardict/StarDialog.cpp b/src/plugins/stardict/StarDialog.cpp index 8f608f2..da50275 100644 --- a/src/plugins/stardict/StarDialog.cpp +++ b/src/plugins/stardict/StarDialog.cpp @@ -42,14 +42,17 @@ void StarDialog::initializeUI() { widget->setLayout(mainVerticalLayout); infoLabel = new QLabel; infoLabel->setWordWrap(true); + QVBoxLayout* buttonLayout = new QVBoxLayout; if(type == New) { browseLayout = new QHBoxLayout; browseButton = new QPushButton(tr("Browse")); - + browseButton->setMaximumWidth(150); + infoLabel->setText(tr("Dictionary file: not selected")); setWindowTitle(tr("Add new StarDict dictionary")); 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); } 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 f30dbc8..c7a2557 100644 --- a/src/plugins/stardict/StarDictPlugin.cpp +++ b/src/plugins/stardict/StarDictPlugin.cpp @@ -51,7 +51,7 @@ void StarDictPlugin::retranslate() { QTranslator *translator = new QTranslator(this); if(!translator->load(":/stardict/translations/" + locale)) { - translator->load(":/stardicts/translations/en_US"); + 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 f7b5541..f04d8ed 100644 --- a/src/plugins/stardict/en_US.ts +++ b/src/plugins/stardict/en_US.ts @@ -4,27 +4,126 @@ StarDialog - + Strip accents (searching takes more time, but spelling doesn't have to be exact) + + + Add new StarDict dictionary + + StarDictPlugin - - StarDict dictionary cannot be read from file + + Browse + + + + + Dictionary file: not selected + + + + + StarDict Settings + + + + + Plugin: + + + + + Book name: + + + + + Version: + + + + + Word count: + + + + + Author: + + + + + E-mail: + + + + + Website: + + + + + Description: + + + + + Date: + + + + + Strip accents + + + + + Add + + + + + Save settings + + + + + Select dictionary file + + + + + StarDict Files (*.dict *dict.dz *.idx *idx.gz *.ifo) + + + + + Dictionary file: %1 + + + + + File path is not set + + + + + Dictionary files are not complete - XdxfCachingDialog - - %n second(s) - - %n second - %n seconds - + StarDictPlugin + + + StarDict dictionary cannot be read from file + +>>>>>>> 7dd7dae9cc55a957c22cd4c3dd93d32d1deb5328 diff --git a/src/plugins/stardict/pl_PL.ts b/src/plugins/stardict/pl_PL.ts index 40a705b..6a89422 100644 --- a/src/plugins/stardict/pl_PL.ts +++ b/src/plugins/stardict/pl_PL.ts @@ -4,81 +4,77 @@ StarDialog - + 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) + Usuń akcenty (wyszukiwanie trwa dłużej, ale szukane słowo nie musi być wpisane dokładnie) - - - StarDictPlugin - - StarDict dictionary cannot be read from file - + + Add new StarDict dictionary + Dodaj nowy słownik StarDict - - - XdxfCachingDialog - Caching dictionary, please wait - Optymalizacja słownika, proszę czekać + + Browse + Przeglądaj - Cancel - Anuluj + + Dictionary file: not selected + Plik ze słownikiem nie został wybrany - Estimated time left: - Pozostały czas: + + StarDict Settings + Ustawienia StarDict - - %n second(s) - - %n sekunda - %n sekundy - %n sekund - - - - - XdxfDialog - Optimize for quicker searches (may take some time) - Optymalizuj dla szybszego wyszukiwania (może zająć trochę czasu) + + Plugin: + - 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) + + Book name: + Słownik: - Add new XDXF dictionary - Dodaj nowy słownik XDXF + + Version: + Wersja: - Browse - Przeglądaj + + Word count: + Liczba słów: - Dictionary file: not selected - Plik ze słownikiem nie został wybrany + + Author: + Autor: - XDXF Settings - Ustawienia XDXF + + E-mail: + - From: - Z: + + Website: + Strona: - To: - Na: + + Description: + Opis: - Description: - Opis: + + Date: + Data: + Strip accents Usuń akcenty @@ -87,55 +83,47 @@ 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