(I'm replying to this discussion a bit late .. I just changed jobs and
I'm having a hard time staying on top of personal email.)

On Wed, Dec 23, 2015 at 5:40 AM, Paul Dufresne <[email protected]> wrote:
[..stuff about catgets and gettext..]
> Now, Jim Hall have made a library, catgets, to use the first method.
> He also use that for his fdi (FREEDOS installer).
> He also suggest to use catalog file written in plain ASCII (no
> accentuated letters) to facilitate translations.
>
> Now the fun part about fdisk, is that it contains the catgets.zip
> library created by Jim Hall, which contains his HOWTO doc file about
> translatings. But the fdisk source does not appears to me (at first
> glance) to use it... yet.
>
> I have seen a gernan version of the source too, but that directly
> change the code source messages.
>
> Well, Jim Hall does not seems to mention the gettext method, which I
> believe to be much more used in the open-source in general... That
> said, I tend to feel the catgets feel easier for me to understand, and
> I see no real reason to insist on gettext pernsonaly.
>
> Now, the code source for catgets seems to expect Turbo C++ 3.1 and the
> code source of fdisk seems to expect Turbo C++ 3.0. I would prefer a
> more open C (I don't think either code is in C++, but just C)
> implementation.


Yes, I believe gettext() is the more popular modern method to
translate strings. With catgets() you need to pass the catalog ID, the
set ID, and the message ID. This means you need to know the
3-dimensional "coordinate" as well as the original string. The obvious
benefit to localization with gettext() is that you simply pass the
gettext() library the string to translate; if gettext() can find the
string (a hash in a localization database) it returns the translation
for the selected domain. If gettext() cannot find the string (the hash
lookup fails) then gettext() simply returns the original string.

So gettext() is much simpler for programmer's to use. It is also more
difficult to write, and I implemented the much simpler catgets()
method.

Jim

------------------------------------------------------------------------------
_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to