annotate src/intl.h @ 1532:fffb62c7ba1e

Add pgettext for some ambiguous strings There are some strings which are ambiguous to translate. There is the pgettext function to solf that problem. For example, locations can be translated to german by Ortsangaben (geographical) or by Pfad (filesystem). I am sure there are also some ambiguous in other languages.
author mow
date Fri, 10 Apr 2009 09:47:20 +0000
parents 1646720364cf
children 47b191b77e07
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
1 #ifndef __INTL_H__
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
2 #define __INTL_H__
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
3
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
4 #ifdef ENABLE_NLS
1532
fffb62c7ba1e Add pgettext for some ambiguous strings
mow
parents: 1055
diff changeset
5 # include <locale.h>
fffb62c7ba1e Add pgettext for some ambiguous strings
mow
parents: 1055
diff changeset
6 # include "gettext.h"
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
7 # define _(String) dgettext(PACKAGE,String)
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
8 # ifdef gettext_noop
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
9 # define N_(String) gettext_noop(String)
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
10 # else
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
11 # define N_(String) (String)
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
12 # endif /* gettext_noop */
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
13 #else
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
14 # define _(String) (String)
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
15 # define N_(String) (String)
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
16 # define textdomain(String) (String)
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
17 # define gettext(String) (String)
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
18 # define dgettext(Domain,String) (String)
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
19 # define dcgettext(Domain,String,Type) (String)
442
4b2d7f9af171 Big whitespaces cleanup:
zas_
parents: 9
diff changeset
20 # define bindtextdomain(Domain,Directory) (Domain)
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 1
diff changeset
21 # define bind_textdomain_codeset(Domain,String) (Domain)
1532
fffb62c7ba1e Add pgettext for some ambiguous strings
mow
parents: 1055
diff changeset
22 # define pgettext(Context,String) (String)
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
23 #endif /* ENABLE_NLS */
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
24
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents: 1
diff changeset
25 #endif
1055
1646720364cf Adding a vim modeline to all files - patch by Klaus Ethgen
nadvornik
parents: 442
diff changeset
26 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */