1 Notes on GCC's Native Language Support
3 By and large, only diagnostic messages have been internationalized.
4 Some work remains in other areas; for example, GCC does not yet allow
5 non-ASCII letters in identifiers.
7 Not all of GCC's diagnostic messages have been internationalized. Programs
8 like `enquire' and `genattr' (in fact all gen* programs) are not
9 internationalized, as their users are GCC maintainers who typically need
10 to be able to read English anyway; internationalizing them would thus
11 entail needless work for the human translators. Messages used for
12 debugging, such as used in dumped tables, should also not be translated.
14 The GCC library should not contain any messages that need
15 internationalization, because it operates below the internationalization
18 Currently, the only language translation supplied is en_UK (British
21 Unlike some other GNU programs, the GCC sources contain few instances
22 of explicit translation calls like _("string"). Instead, the
23 diagnostic printing routines automatically translate their arguments.
24 For example, GCC source code should not contain calls like `error
25 (_("unterminated comment"))'; it should contain calls like `error
26 ("unterminated comment")' instead, as it is the `error' function's
27 responsibility to translate the message before the user sees it.
29 By convention, any function parameter in the GCC sources whose name
30 ends in `msgid' is expected to be a message requiring translation.
31 For example, the `error' function's first parameter is named `msgid'.
32 GCC's exgettext script uses this convention to determine which
33 function parameter strings need to be translated. The exgettext
34 script also assumes that any occurrence of `%eMSGID}' on a source
35 line, where MSGID does not contain `%' or `}', corresponds to a
36 message MSGID that requires translation; this is needed to identify
37 diagnostics in GCC spec strings.
39 If you modify source files, you'll need to use a special version of the
40 GNU gettext package to propagate the modifications to the translation
43 All patches needed for GCC have been incorporated into the official
44 gettext CVS. These sources may be accessed via anonymous cvs. The root for
45 the gettext CVS is :pserver:anoncvs@anoncvs.cygnus.com:/cvs/gettext
46 Password is `anoncvs' like for the GCC CVS.
48 After having built and installed these gettext tools, you have to
49 configure GCC with --enable-maintainer-mode to get the master catalog