lange@mond.dida.physik.uni-essen.de wrote:
Could you please tell me, how to use locales in GNU-Pascal. Do I have to use an own database for strings, which need to be translated? Is it possible to use i18n files?
I'm not aware of any i18n code for GPC yet. Porting GNU gettext to Pascal would be a worthwhile task, however, and if you could do some work on it, it would benefit many programmers ...
I haven't used gettext much myself, but AFAIK, there's basically two things to do:
- Adapt the utilities to scan Pascal instead of C source. This should not be very difficult, since the Pascal and C syntax WRT string constants is very similar (even though GPC allows both '' and "" strings).
- Port the gettext library to Pascal or translate its headers.
Frank