4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
8 * \author Jean-Marc Lasgouttes
10 * Full author contact details are available in file CREDITS.
16 #include "support/docstring.h"
24 * Native Language Support
26 * The general idea is that any string that should be translated is handled
30 * Static strings are special, obviously and must be flagged as follows:
31 * static str = N_("string");
33 * And wherever they are used:
36 * Every file where there are strings needs:
37 * #include "gettext.h"
39 * Remember to mention each of these files in "po/POFILES.in"
41 * The main() needs a locale_init() and a gettext_init() in the beginning.
45 * General translation notes:
46 * Commands/options are not translated
47 * Debug messages are not translated
48 * Panic/fatal (that should not happen) messages need not be translated
55 docstring const _(std::string const &);
60 //# define _(str) (str)
64 # define N_(str) (str) // for detecting static strings