Stellarium 0.11.1
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure
Classes | Defines
core/StelTranslator.hpp File Reference
#include <QMap>
#include <QString>
#include "StelUtils.hpp"
#include "gettext.h"

Go to the source code of this file.


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


#define q_(str)   StelTranslator::globalTranslator.qtranslate(str)
#define N_(str)   gettext_noop(str)

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.