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