#include <YTransText.h>
Public Member Functions | |
YTransText (const std::string &orig, const std::string &translation) | |
YTransText (const std::string &orig) | |
YTransText (const YTransText &src) | |
YTransText & | operator= (const YTransText &src) |
const std::string & | orig () const |
const std::string & | translation () const |
const std::string & | trans () const |
void | setOrig (const std::string &newOrig) |
void | setTranslation (const std::string &newTrans) |
bool | operator< (const YTransText &other) const |
bool | operator> (const YTransText &other) const |
bool | operator== (const YTransText &other) const |
Helper class for translated strings: Stores a message in the original (untranslated) version along with the translation into the current locale.
|
inline |
Constructor with both original and translated message.
|
inline |
Constructor that automatically translates the original message.
|
inline |
Copy constructor.
|
inline |
operator< : Compares translations.
|
inline |
Assignment operator.
|
inline |
operator== : Compares translations.
|
inline |
operator> : Compares translations.
|
inline |
Return the original message.
|
inline |
Set the original message. Does not touch the translation, so make sure you change both if you want to keep them synchronized!
|
inline |
Set the translation.
|
inline |
Return the translation. ( alias, just as a shortcut )
|
inline |
Return the translation.