[gfortran,patch] Internationalisation of the Fortran front-end
FX Coudert
fxcoudert@gmail.com
Tue Aug 30 21:35:00 GMT 2005
Hi all,
Attached is a patch (i18n.diff) that adds internationalization to the
fortran front-end: it enables the compiler to issue localised error and
warning messages. This is done in two complementary ways:
1. Messages issued by gfc_error, gfc_warning and other functions
called on constant strings are translated using the msgid convention.
That is, developpers will not have to worry about the localization of
such messages.
2. Some of the messages are handled in a... rudimentary way. For
those, I added manual translation macros: _(). For example, see changes
in arith.c
Finally, I removed some nasty very english-specific constructions: exit
gfc_article()!
I think while this is not a vital feature (although some will argue that
localisation is an important composant of the GNU project), the earlier
it can go in, the less work for the translators (and the better the
translation).
Built and regtested on i686-linux.
OK for 4.1? (and do we want it for 4.0)
FX
PS: I don't know if a complete ChangeLog is needed, or if I can just
list the files and functions and say "Added localisation support". I
added the gcc.pot generated with maintainer mode, so that you can check
it if you want.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: i18n.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20050830/ac0e9938/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gcc.pot
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20050830/ac0e9938/attachment-0001.ksh>
More information about the Fortran
mailing list