lang_defs.h

Bernhard Reiter bernhard at intevation.de
Mon Feb 7 10:52:44 CET 2005


Hi Jakson,

On Sun, Feb 06, 2005 at 06:45:04PM -0300, Jakson Aquino wrote:
> On May 21, 2001, Andreas Beyer wrote:
> > translation of StatistX. I don't think it is wise to expand the
> > translation-via-macros method to an infinite number of languages. 
> 
> I agree with Andreas Beyer. 

You probably also saw my answer in 2001:
http://intevation.de/pipermail/statist-list/2001/000009.html

This is why we improved the gettext mechanisms since then.

> It seems that lang_defs.h
> was created as a way of internationalizing statist.
> However, it's not practical to have messages written
> directly in the source code in more than two
> languages. Thus, I think that we don't need the file
> lang_defs.h anymore. I'm submitting a patch where,
> with some deletions and with no addition, the program
> is compiling as before, but without using the file
> lang_defs.h.

The idea behind this was, to keep statist as simple 
and small as possible. Now that we have two languages
in the source code, I think we should just keep them
there and use gettext for the additional ones.
The ideal solution would be that someone makes a special version 
of gettext so that we can extract the German translation directly
from the source. ;)

I'll look at the patch, 
it is probably fine to just have two possibilities
in the source code and simplify it.

> DLL are files used by dos and windows, right? 

AFAIK yes. 

> While
> reading info pages for gettext, I found the following
> passage which implies that gettext can be used under
> DOS:
> 
>    "To convert a PO file to a `.dll' file, the 
>     `msgfmt' program can be used with the option
>     `--csharp'.  The result will be a `.dll' 
>     file containing a subclass of 
>     `GettextResourceSet', which itself is a
>      subclass of `ResourceSet'.  To convert a 
>     `.dll' file containing a `GettextResourceSet'
>     subclass back to a PO file, the `msgunfmt' 
>     program can be used with the option `--csharp'."
> 
> I had made an attempting of creating a .dll file, but
> I got the following error:
> 
> [jakson at localhost po]$ msgfmt --csharp -l pt_BR -d
> /temp --verbose pt_BR.po
> msgfmt: C# compiler not found, try installing pnet
> msgfmt: compilation of C# class failed, please try
> --verbose
> 353 translated messages, 18 fuzzy translations.
> [jakson at localhost po]$ 
> 
> Is anyone interested in internationalizing Statist for
> DOS? I will not become responsible for such a task,
> because it's not easy to me, and because I'm already
> satisfied with Linux.

Let us wait until somebody jumps up for DOS,
if possible I do not want to break the possibilities
that statist has under DOS, but I have not used them myself
since a very long while. 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/statist-list/attachments/20050207/2d623cda/attachment.bin


More information about the Statist-list mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)