]> git.donarmstrong.com Git - lilypond.git/blob - flower/include/international.hh
Fix some bugs in the dynamic engraver and PostScript backend
[lilypond.git] / flower / include / international.hh
1 /*
2   international.hh -- declare stuff for internationalization
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1997--2006 Jan Nieuwenhuizen <janneke@gnu.org>
7 */
8
9 #ifndef INTERNATIONAL_HH
10 #define INTERNATIONAL_HH
11
12 #include "std-string.hh"
13
14 /**
15    Internationalisation: _i ("to be translated") gets an entry in the POT file
16    gettext () must be invoked explicitely to do the actual "translation".
17    See flower/getopt-long.cc.
18 */
19 #define _i(sz) sz
20
21 // don't inline: get warnings only once
22 /**
23    Internationalisation: _ ("to be translated") gets "translated" by GNU gettext
24 */
25 string _ (char const *ch);
26
27 /**
28    Internationalisation: _f ("Usage: %s [FILE]", "lilypond") gets "translated" by
29    GNU gettext
30 */
31 string _f (char const *format, ...)
32            __attribute__ ((format (printf, 1, 2)));
33 string _f (char const *format, string s, string s2 = "", string s3 = "");
34
35 #endif // INTERNATIONAL_HH
36