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

parley

Public Member Functions | List of all members
Translator Class Reference

#include <translator.h>

Public Member Functions

 Translator ()
 
 Translator (QObject *parent)
 
 ~Translator ()
 
void addTranslation (QString word, QString fromLanguage, QString toLanguage, QString translation)
 
QSet< QString > * getTranslation (QString word, QString fromLanguage, QString toLanguage)
 

Detailed Description

Keeps the translated words.

Author
Avgoustinos Kadis avgou.nosp@m.stin.nosp@m.os.ka.nosp@m.dis@.nosp@m.kdema.nosp@m.il.n.nosp@m.et

Definition at line 74 of file translator.h.

Constructor & Destructor Documentation

Translator::Translator ( )

Definition at line 20 of file translator.cpp.

Translator::Translator ( QObject *  parent)

Definition at line 24 of file translator.cpp.

Translator::~Translator ( )

Definition at line 29 of file translator.cpp.

Member Function Documentation

void Translator::addTranslation ( QString  word,
QString  fromLanguage,
QString  toLanguage,
QString  translation 
)

Stores the translation of word from language fromLanguage, to language toLanguage.

Parameters
wordword that was translated
fromLanguagelanguage of word
toLanguagelanguage of translation
translationtranslation of word

Definition at line 33 of file translator.cpp.

QSet< QString > * Translator::getTranslation ( QString  word,
QString  fromLanguage,
QString  toLanguage 
)

Returns a QStringList with all the translations of word from fromLanguage to toLanguage.

This function will call the translateWord function of the translation scripts if this word wasn't translated before.

Parameters
word
fromLanguage
toLanguage
Returns
QStringList with the translations (or an empty QStringList if no translations found)

Definition at line 45 of file translator.cpp.


The documentation for this class was generated from the following files:
  • translator.h
  • translator.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:15:57 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