Commit 916577ec authored by Yuri Chornoivan's avatar Yuri Chornoivan
Browse files

Use URLs with transport encryption

parent 14649df3
...@@ -47,13 +47,13 @@ void BrowserWidget::setupProviders() ...@@ -47,13 +47,13 @@ void BrowserWidget::setupProviders()
DictionaryProvider provider; DictionaryProvider provider;
provider.name = QStringLiteral("De-Es Beolingus"); provider.name = QStringLiteral("De-Es Beolingus");
provider.url = QStringLiteral("http://beolingus.org/dings.cgi?service=dees&query=\\{@}"); provider.url = QStringLiteral("https://dict.tu-chemnitz.de/dings.cgi?service=dees&query=\\{@}");
provider.languages << QStringLiteral("de") << QStringLiteral("es"); provider.languages << QStringLiteral("de") << QStringLiteral("es");
m_providers.append(provider); m_providers.append(provider);
providerComboBox->addItem(provider.name); providerComboBox->addItem(provider.name);
provider.name = QStringLiteral("De-En Beolingus"); provider.name = QStringLiteral("De-En Beolingus");
provider.url = QStringLiteral("http://beolingus.org/dings.cgi?query=\\{@}"); provider.url = QStringLiteral("https://dict.tu-chemnitz.de/dings.cgi?service=deen?query=\\{@}");
provider.languages << QStringLiteral("de") << QStringLiteral("en"); provider.languages << QStringLiteral("de") << QStringLiteral("en");
m_providers.append(provider); m_providers.append(provider);
providerComboBox->addItem(provider.name); providerComboBox->addItem(provider.name);
...@@ -65,37 +65,37 @@ void BrowserWidget::setupProviders() ...@@ -65,37 +65,37 @@ void BrowserWidget::setupProviders()
providerComboBox->addItem(provider.name); providerComboBox->addItem(provider.name);
provider.name = QStringLiteral("De-Es Leo"); provider.name = QStringLiteral("De-Es Leo");
provider.url = QStringLiteral("http://dict.leo.org/?lp=esde&search=\\{@}"); provider.url = QStringLiteral("https://dict.leo.org/?lp=esde&search=\\{@}");
provider.languages << QStringLiteral("de") << QStringLiteral("es"); provider.languages << QStringLiteral("de") << QStringLiteral("es");
m_providers.append(provider); m_providers.append(provider);
providerComboBox->addItem(provider.name); providerComboBox->addItem(provider.name);
provider.name = QStringLiteral("De-Fr Leo"); provider.name = QStringLiteral("De-Fr Leo");
provider.url = QStringLiteral("http://dict.leo.org/?lp=frde&search=\\{@}"); provider.url = QStringLiteral("https://dict.leo.org/?lp=frde&search=\\{@}");
provider.languages << QStringLiteral("de") << QStringLiteral("fr"); provider.languages << QStringLiteral("de") << QStringLiteral("fr");
m_providers.append(provider); m_providers.append(provider);
providerComboBox->addItem(provider.name); providerComboBox->addItem(provider.name);
provider.name = QStringLiteral("Ru-En Multitran"); provider.name = QStringLiteral("Ru-En Multitran");
provider.url = QStringLiteral("http://multitran.ru/c/m.exe?SHL=1&CL=1&l1=1&s=\\{@}"); provider.url = QStringLiteral("https://multitran.com/c/m.exe?SHL=1&CL=1&l1=1&s=\\{@}");
provider.languages << QStringLiteral("ru") << QStringLiteral("en"); provider.languages << QStringLiteral("ru") << QStringLiteral("en");
m_providers.append(provider); m_providers.append(provider);
providerComboBox->addItem(provider.name); providerComboBox->addItem(provider.name);
provider.name = QStringLiteral("Ru-De Multitran"); provider.name = QStringLiteral("Ru-De Multitran");
provider.url = QStringLiteral("http://multitran.ru/c/m.exe?SHL=1&CL=1&l1=3&s=\\{@}"); provider.url = QStringLiteral("https://multitran.com/c/m.exe?SHL=1&CL=1&l1=3&s=\\{@}");
provider.languages << QStringLiteral("ru") << QStringLiteral("de"); provider.languages << QStringLiteral("ru") << QStringLiteral("de");
m_providers.append(provider); m_providers.append(provider);
providerComboBox->addItem(provider.name); providerComboBox->addItem(provider.name);
provider.name = QStringLiteral("Ru-Fr Multitran"); provider.name = QStringLiteral("Ru-Fr Multitran");
provider.url = QStringLiteral("http://multitran.ru/c/m.exe?SHL=1&CL=1&l1=4&s=\\{@}"); provider.url = QStringLiteral("https://multitran.com/c/m.exe?SHL=1&CL=1&l1=4&s=\\{@}");
provider.languages << QStringLiteral("ru") << QStringLiteral("fr"); provider.languages << QStringLiteral("ru") << QStringLiteral("fr");
m_providers.append(provider); m_providers.append(provider);
providerComboBox->addItem(provider.name); providerComboBox->addItem(provider.name);
provider.name = QStringLiteral("Heinzelnisse"); provider.name = QStringLiteral("Heinzelnisse");
provider.url = QStringLiteral("http://heinzelnisse.info/dict?setOptions=true&searchItem=\\{@}&dictDeNoSearch=on&dictNoDeSearch=on&dictExactSearch=on&dictPhoneticSearch=on&wikiSearch=on&dictNynorskSearch=on&dictBokmaalSearch=checked&forumKeywordSearch=on&suggestion=on"); provider.url = QStringLiteral("https://heinzelnisse.info/dict?setOptions=true&searchItem=\\{@}&dictDeNoSearch=on&dictNoDeSearch=on&dictExactSearch=on&dictPhoneticSearch=on&wikiSearch=on&dictNynorskSearch=on&dictBokmaalSearch=checked&forumKeywordSearch=on&suggestion=on");
provider.languages << QStringLiteral("no") << QStringLiteral("de"); provider.languages << QStringLiteral("no") << QStringLiteral("de");
m_providers.append(provider); m_providers.append(provider);
providerComboBox->addItem(provider.name); providerComboBox->addItem(provider.name);
......
...@@ -55,7 +55,7 @@ int main(int argc, char* argv[]) ...@@ -55,7 +55,7 @@ int main(int argc, char* argv[])
"© 2004-2007\tPeter Hedlund\n" "© 2004-2007\tPeter Hedlund\n"
"© 2007-2010\tFrederik Gladhorn\n").toString() ); "© 2007-2010\tFrederik Gladhorn\n").toString() );
aboutData.setOtherText( ki18n("Helps you train your vocabulary").toString() ); aboutData.setOtherText( ki18n("Helps you train your vocabulary").toString() );
aboutData.setHomepage( QStringLiteral("http://edu.kde.org/parley") ); aboutData.setHomepage( QStringLiteral("https://edu.kde.org/parley") );
aboutData.setBugAddress( "submit@bugs.kde.org"); aboutData.setBugAddress( "submit@bugs.kde.org");
aboutData.addAuthor(ki18n("Inge Wallin").toString(), aboutData.addAuthor(ki18n("Inge Wallin").toString(),
......
...@@ -62,7 +62,7 @@ void fetchGrammar(KEduVocDocument* doc, int languageIndex) ...@@ -62,7 +62,7 @@ void fetchGrammar(KEduVocDocument* doc, int languageIndex)
{ {
QString locale = doc->identifier(languageIndex).locale(); QString locale = doc->identifier(languageIndex).locale();
QUrl location(QUrl::fromUserInput(QStringLiteral("http://edu.kde.org/parley/locale/") + locale.split('_').at(0).toLower() + QStringLiteral(".kvtml")) ); QUrl location(QUrl::fromUserInput(QStringLiteral("https://edu.kde.org/parley/locale/") + locale.split('_').at(0).toLower() + QStringLiteral(".kvtml")) );
KEduVocDocument grammarDoc; KEduVocDocument grammarDoc;
if (grammarDoc.open(location) == KEduVocDocument::NoError) { if (grammarDoc.open(location) == KEduVocDocument::NoError) {
......
...@@ -70,7 +70,7 @@ X-KDE-PluginInfo-Author=Avgoustinos Kadis ...@@ -70,7 +70,7 @@ X-KDE-PluginInfo-Author=Avgoustinos Kadis
X-KDE-PluginInfo-Email=avgoustinos.kadis@kdemail.net X-KDE-PluginInfo-Email=avgoustinos.kadis@kdemail.net
X-KDE-PluginInfo-Name=parley_example_script X-KDE-PluginInfo-Name=parley_example_script
X-KDE-PluginInfo-Version=1.1 X-KDE-PluginInfo-Version=1.1
X-KDE-PluginInfo-Website=http://edu.kde.org/parley X-KDE-PluginInfo-Website=https://edu.kde.org/parley
X-KDE-PluginInfo-Category=examples X-KDE-PluginInfo-Category=examples
X-KDE-PluginInfo-License=GPL X-KDE-PluginInfo-License=GPL
X-KDE-PluginInfo-EnabledByDefault=true X-KDE-PluginInfo-EnabledByDefault=true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment