Stellarium 0.11.4
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure

core/StelTranslator.hpp File Reference

Define some translation macros. More...

#include <QMap>
#include <QString>
#include "StelUtils.hpp"
#include <QDebug>
#include "gettext.h"

Go to the source code of this file.

Classes

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

Defines

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

Detailed Description

Define some translation macros.


Define Documentation

#define N_ ( str   )     gettext_noop(str)

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

A call to N_() doesn't translate.

#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.

#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.

Generated on Sat Aug 25 22:13:31 2012 for Stellarium by  doxygen 1.6.3