2 This file is part of LilyPond, the GNU music typesetter.
4 Copyright (C) 1997--2010 Jan Nieuwenhuizen <janneke@gnu.org>
6 LilyPond is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 LilyPond is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef INTERNATIONAL_HH
21 #define INTERNATIONAL_HH
25 #include "std-string.hh"
28 Internationalisation: _i ("to be translated") gets an entry in the POT file
29 gettext () must be invoked explicitly to do the actual "translation".
30 See flower/getopt-long.cc.
34 // don't inline: get warnings only once
36 Internationalisation: _ ("to be translated") gets "translated" by GNU gettext
38 string _ (char const *ch);
41 Internationalisation: _f ("Usage: %s [FILE]", "lilypond") gets "translated" by
44 string _f (char const *format, ...)
45 __attribute__ ((format (printf, 1, 2)));
46 string _f (char const *format, string s, string s2 = "", string s3 = "");
50 string v_f (char const *format, va_list args);
52 #endif // INTERNATIONAL_HH