Stellarium 0.13.2
Classes | Macros
StelTranslator.hpp File Reference

Define some translation macros. More...

#include "config.h"
#include <QMap>
#include <QString>

Go to the source code of this file.

Classes

class  StelTranslator
 Class used to translate strings to any language. More...
 

Macros

#define q_(str)   StelTranslator::globalTranslator->qtranslate(str)
 Return the gettext translated english text str using the current global translator. More...
 
#define qc_(str, ctxt)   StelTranslator::globalTranslator->qtranslate(str, ctxt)
 Return the gettext translated english text str in context ctxt using the current global translator. More...
 
#define N_(str)   str
 A pseudo function call that serves as a marker for the automated extraction of messages. More...
 

Detailed Description

Define some translation macros.

Definition in file StelTranslator.hpp.

Macro Definition Documentation

#define N_ (   str)    str

A pseudo function call that serves as a marker for the automated extraction of messages.

A call to N_() doesn't translate.

Definition at line 44 of file StelTranslator.hpp.

#define q_ (   str)    StelTranslator::globalTranslator->qtranslate(str)

Return the gettext translated english text str using the current global translator.

The returned value is a localized QString.

Definition at line 34 of file StelTranslator.hpp.

#define qc_ (   str,
  ctxt 
)    StelTranslator::globalTranslator->qtranslate(str, ctxt)

Return the gettext translated english text str in context ctxt using the current global translator.

The returned value is a localized QString.

Definition at line 39 of file StelTranslator.hpp.