[ghemical-devel] [Fwd: Re: [ghemical-users] Translate Ghemical]

Tommi Hassinen Tommi.Hassinen at uku.fi
Tue Dec 9 03:34:19 EST 2008


We tried this(N_ macro directive) and it was working. Right now we are working on cleaning of the files that we worked on and merging all the files for localization. When this will be done, I will paste URL where can will be all modified source, translated po and html files (translated on Macedonian and Albanian). We also started making screenshots for translation of the html documentation.

I can say that the hard job is done, but I have to point out the huge help of the community. So thats why we wanna help and give our work to the community, to help others who wants to localize and use this application on their mother-thounge language.

Regards, Vlado.


Thanks Vlado ; I'm happy to hear that the N_ macro works. I haven't tried it yet.
I started to clean-up and re-arrange some messages printed out by libghemical and ghemical.
I noticed that many messages are of "assertion" type, meaning that they only exist for catching
some bad errors and are displayed only when the program is in a state it never should be.
I'm adding a new method like this in libghemical :

void assertion_failed(const char * fn, int ln, const char * description)
{
	cout << _("FATAL ERROR : file ") << fn << _(" line ") << ln << _(" assertion failed : ");
	cout << (description != NULL ? description : _("<no description>")) << endl;
	cout << _("The program will now abort.") << endl;
	
	exit(EXIT_FAILURE);
}

So it gives a standard template for these assertion-type messages. It also displays source
file name and line numbers which are most important for developers. There also is an optional
descriotion text about the situation ; it should be very short (or even an mathematical expression)
so I made a decision that it should not be translated, even though the rest of the assertion message
is translated. The method is called like this:

if (error_test) assertion_failed(__FILE__, __LINE__, "optional message not translated");

I believe that this separation of assertion messages from other messages makes things easier
for both developers and users alike.

So I'm waiting for your modified sources for further code merging.

With best regards,
Tommi



More information about the ghemical-devel mailing list