Ardour  9.0-pre0-582-g084a23a80d
i18n.h File Reference
#include "pbd/compose.h"
#include "pbd/convert.h"
#include "gettext.h"
#include <vector>
#include <string>
Include dependency graph for i18n.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _(Text)   dgettext (PACKAGE,Text)
 
#define N_(Text)   gettext_noop (Text)
 
#define X_(Text)   Text
 
#define I18N(Array)   PBD::internationalize (PACKAGE, Array)
 
#define S_(Text)   PBD::sgettext (PACKAGE, Text)
 
#define P_(Singular, Plural, HowMany)   dngettext (PACKAGE, (Singular), (Plural), (HowMany))
 

Macro Definition Documentation

◆ _

#define _ (   Text)    dgettext (PACKAGE,Text)

Definition at line 29 of file i18n.h.

◆ I18N

#define I18N (   Array)    PBD::internationalize (PACKAGE, Array)

Definition at line 32 of file i18n.h.

◆ N_

#define N_ (   Text)    gettext_noop (Text)

Definition at line 30 of file i18n.h.

◆ P_

#define P_ (   Singular,
  Plural,
  HowMany 
)    dngettext (PACKAGE, (Singular), (Plural), (HowMany))

Use this to translate strings with plural forms

Definition at line 40 of file i18n.h.

◆ S_

#define S_ (   Text)    PBD::sgettext (PACKAGE, Text)

Use this to translate strings that have different meanings in different places. Text should be of the form Context|Message.

Definition at line 36 of file i18n.h.

◆ X_

#define X_ (   Text)    Text

Definition at line 31 of file i18n.h.