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"
21 * Native Language Support
23 * The general idea is that any string that should be translated is handled
27 * Static strings are special, obviously and must be flagged as follows:
28 * static str = N_("string");
30 * And wherever they are used:
33 * Every file where there are strings needs:
34 * #include "gettext.h"
36 * Remember to mention each of these files in "po/POFILES.in"
38 * The main() needs a locale_init() and a gettext_init() in the beginning.
42 * General translation notes:
43 * Commands/options are not translated
44 * Debug messages are not translated
45 * Panic/fatal (that should not happen) messages need not be translated
52 lyx::docstring const _(std::string const &);
57 //# define _(str) (str)
61 # define N_(str) (str) // for detecting static strings