Обсуждение: How do I set a different language to test psql? (/**** QUERY ****/)

Поиск
Список
Период
Сортировка

How do I set a different language to test psql? (/**** QUERY ****/)

От
Kirk Wolak
Дата:
Team,
  I made the /**** QUERY ****/ changes.
And I found the .po files, and modified those to match.

  make checkworld   -- worked

  Anyway, I have NO IDEA how I run psql in a different language.
I tried gnome-language-selector, I installed Russian/Czech.
I switched my entire system to Russian.

  git, make, all respond in russian.

  But not psql?  (First, I assume that I should check that the translations worked),
Second... Does ANYONE do this?  (I snapshotted my VM in case it gets so bad that I have to revert to get English back, so at least I have a safety net).

Thanks in advance.

Kirk...
PS: I would have posted the patch files, but I want to work on the tooling to generate proper patch headers.

Re: How do I set a different language to test psql? (/**** QUERY ****/)

От
Tom Lane
Дата:
Kirk Wolak <wolakk@gmail.com> writes:
>   I made the /**** QUERY ****/ changes.
> And I found the .po files, and modified those to match.

It's not your job to modify the .po files, at least not unless
you join the translation team --- and even then, it'd not happen
till after the core patch gets committed.

>   Anyway, I have NO IDEA how I run psql in a different language.
> I tried gnome-language-selector, I installed Russian/Czech.
> I switched my entire system to Russian.
>   git, make, all respond in russian.
>   But not psql?

Sounds like you did not configure with --enable-nls.  If you
did, it should respond to LC_MESSAGES or the other usual locale
environment variables.

            regards, tom lane