Mercurial > geeqie
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 |
rev | line source |
---|---|
1 | 1 #ifndef __INTL_H__ |
2 #define __INTL_H__ | |
3 | |
4 #ifdef ENABLE_NLS | |
1532 | 5 # include <locale.h> |
6 # include "gettext.h" | |
1 | 7 # define _(String) dgettext(PACKAGE,String) |
8 # ifdef gettext_noop | |
9 # define N_(String) gettext_noop(String) | |
10 # else | |
11 # define N_(String) (String) | |
12 # endif /* gettext_noop */ | |
13 #else | |
14 # define _(String) (String) | |
15 # define N_(String) (String) | |
16 # define textdomain(String) (String) | |
17 # define gettext(String) (String) | |
18 # define dgettext(Domain,String) (String) | |
19 # define dcgettext(Domain,String,Type) (String) | |
442 | 20 # define bindtextdomain(Domain,Directory) (Domain) |
9 | 21 # define bind_textdomain_codeset(Domain,String) (Domain) |
1532 | 22 # define pgettext(Context,String) (String) |
1 | 23 #endif /* ENABLE_NLS */ |
24 | |
9 | 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: */ |