Thread: Location of language .mo files or'Zašto postgres ne govori Hrvatski' ???

Location of language .mo files or'Zašto postgres ne govori Hrvatski' ???

From
Darko Prenosil
Date:
    Anyone knows right install location and name for language .mo files ?

    I created new .po file, configure and make was OK.
Translation is also checked as explained on PostgreSQL site.
When I install, .mo file is copied to:
/usr/local/pgsql/share/locale/hr_HR/LC_MESSAGES/postgres.mo (RedHat).
    In postgresql.conf is already line that looks like this:
LC_MESSAGES = 'hr_HR'.

So why I do not see the translated messages ?
Can I set some sort of debbug level to see which lang is postgres actually
using ?

I am ready to contribute this translation file (it is for Croatian language).
More than 60% of file is translated, but I will work some more on it.

Regards !

Re: Location of language .mo files or

From
Peter Eisentraut
Date:
Zdravo,

Darko Prenosil writes:

> When I install, .mo file is copied to:
> /usr/local/pgsql/share/locale/hr_HR/LC_MESSAGES/postgres.mo (RedHat).
>     In postgresql.conf is already line that looks like this:
> LC_MESSAGES = 'hr_HR'.
>
> So why I do not see the translated messages ?

Hard to tell.  Try making a PO file for a frontend application (such as
psql or pg_dump), set the environment variables, and then see what
happens.  Possibly, there are less disturbing factors involved that way
than on the server side.

--
Peter Eisentraut   peter_e@gmx.net


Re: Location of language .mo files or'Zašto postgres ne govori Hrvatski' ???

From
Darko Prenosil
Date:
On Tuesday 26 November 2002 18:42, Peter Eisentraut wrote:
> Zdravo,
>
> Darko Prenosil writes:
> > When I install, .mo file is copied to:
> > /usr/local/pgsql/share/locale/hr_HR/LC_MESSAGES/postgres.mo (RedHat).
> >     In postgresql.conf is already line that looks like this:
> > LC_MESSAGES = 'hr_HR'.
> >
> > So why I do not see the translated messages ?
>
> Hard to tell.  Try making a PO file for a frontend application (such as
> psql or pg_dump), set the environment variables, and then see what
> happens.  Possibly, there are less disturbing factors involved that way
> than on the server side.

    I find out what was wrong. I did not "make clean", and postgres backend was
already compiled and linked without --enable-nls. So make only maked my
hr_HR.mo, but did not recompiled the backend.  After "make clean" and "make
install" evetithing is working just fine.
Thank You anyway for Your effort !!!

Zdravo i tebi !