• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

parley

  • sources
  • kde-4.14
  • kdeedu
  • parley
  • scripts_test
scripts_test/main.cpp
Go to the documentation of this file.
1 /***************************************************************************
2 
3  Copyright 2008 Avgoustinos Kadis <avgoustinos.kadis@kdemail.net>
4 
5  ***************************************************************************/
6 
7 /***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 
16 #include "scripts.h"
17 #include "translationscript.h"
18 
19 #include <QStringList>
20 #include <QTextCodec>
21 
22 #include <KDebug>
23 
24 int main()
25 {
26  //QTextCodec* Utf8Codec = QTextCodec::codecForName("utf-8");
27 
28  //TranslationScript script("google_translation.py");
29  //script.getLanguagePairs();
30  //kDebug() << script.translateWord("car","en","it");
31 
32  TranslationScript s("ectaco.py");
33 // kDebug() << s.translateWord("test","en","pl");
34  foreach(const QString & word, s.translateWord("test", "en", "pl"))
35  kDebug() << "trns: " << word;
36 
37  return 0;
38 }
TranslationScript
Class used to load and use a translation script.
Definition: translationscript.h:29
scripts.h
translationscript.h
QString
TranslationScript::translateWord
QStringList translateWord(QString word, QString from, QString to)
Definition: translationscript.cpp:49
main
int main()
Definition: scripts_test/main.cpp:24
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:15:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

parley

Skip menu "parley"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal