X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=flower%2Finclude%2Finternational.hh;h=3da5a26a2754a54ffdcda3b909603c9521169179;hb=1cf3d59c1559fb9774c4c1c8cae155cfe54a927c;hp=730b9924e6e38511733763ef734f8aa63a155b86;hpb=1e95a0be01466d1c98644f7705c8e07e41cc645c;p=lilypond.git diff --git a/flower/include/international.hh b/flower/include/international.hh index 730b9924e6..3da5a26a27 100644 --- a/flower/include/international.hh +++ b/flower/include/international.hh @@ -3,14 +3,27 @@ source file of the GNU LilyPond music typesetter - (c) 1997--1998 Han-Wen Nienhuys + (c) 1997--1998 Jan Nieuwenhuizen */ #ifndef INTERNATIONAL_HH #define INTERNATIONAL_HH -#define _(str) str +#include "string.hh" -#endif /* INTERNATIONAL_HH */ +// don't inline: get warnings only once +/** + Internationalisation: _ ("to be translated") gets "translated" by GNU gettext +*/ +String _ (char const *ch); + +/** + Internationalisation: _f ("Usage: %s [FILE]", "lilypond") gets "translated" by + GNU gettext +*/ +String _f (char const* format, ...); +String _f (char const* format, String s, String s2 = "", String s3 = ""); + +#endif // INTERNATIONAL_HH