On 19 Mar, Lars R. Clausen wrote:
I've added the danish translation now.
> Ok, I've delved deeper into the mysteries of gettext -- it's actually kinda
> neat. It seems the POTFILES.in file is in need of an update, which could
> actually be automated like this:
>
> INTLDIRS=../app
> for DIR in $INTLDIRS; do
> grep _\( $DIR/*.c | cut -d: -f1 | uniq | cut -d/ -f2- > POTFILES.in
> done
I just created a script that does this in the po/ dir. This should
probably be run automatically, but i didn't bother with it.
> AFAICT, adding i18n to the other subdirs (objects/*, lib) is but to add
> intl.h and then _(tify them. Worked for line.c. For some reason, the
> translations for the right-button menu and the preferences dialog aren't
> used, even after updating POTFILES. I also get a *lot* of critical
> warnings (Widget != NULL) when I make a new diagram with Danish or
> Norwegian translation. Everything still works, it just blasts out
> warnings. The Swedish translation doesn't suffer from this problem.
> And: Is there some way to specify where to load translations from so I
> don't have to install Dia when I want to test the changes?
I'm not any good at gettext, all the i18n was done by Fredrik
Hallenberg ([EMAIL PROTECTED]), maybe he knows this better?
/ Alex