Chapter 44. Native Language Support

From: Halley Pacheco de Oliveira <halleypo(at)yahoo(dot)com(dot)br>
To: pgsql-docs(at)postgresql(dot)org
Subject: Chapter 44. Native Language Support
Date: 2005-06-12 11:07:33
Message-ID: 20050612110733.63569.qmail@web52706.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

In Chapter 44. Native Language Support, 44.1.2. Concepts
(http://www.postgresql.org/docs/8.0/interactive/nls.html) is written:

The extension of the message catalog file is to no surprise either .po or .mo. The base name is
either the name of the program it accompanies, or the language the file is for, depending on the
situation. This is a bit confusing. Examples are psql.po (PO file for psql) or fr.mo (MO file in
French).

But when I execute in Fedora Core 3:

$ locate psql.po

I get no files, and when I execute:

$ locate psql.mo

I get several files

/usr/share/locale/cs/LC_MESSAGES/psql.mo
/usr/share/locale/de/LC_MESSAGES/psql.mo
/usr/share/locale/es/LC_MESSAGES/psql.mo
/usr/share/locale/fr/LC_MESSAGES/psql.mo
/usr/share/locale/hu/LC_MESSAGES/psql.mo
/usr/share/locale/it/LC_MESSAGES/psql.mo
/usr/share/locale/pt_BR/LC_MESSAGES/psql.mo
/usr/share/locale/sv/LC_MESSAGES/psql.mo
/usr/share/locale/tr/LC_MESSAGES/psql.mo
/usr/share/locale/zh_CN/LC_MESSAGES/psql.mo
/usr/share/locale/zh_TW/LC_MESSAGES/psql.mo
/usr/share/locale/ru/LC_MESSAGES/psql.mo
/usr/share/locale/sl/LC_MESSAGES/psql.mo
/usr/share/locale/nb/LC_MESSAGES/psql.mo

And in psql po directory there is no psql.po

$ pwd
/tmp/postgresql-8.0.1/src/bin/psql/po

$ ls
cs.po es.po fr.po it.po nb.po pt_BR.po ru.po sl.po tr.po zh_TW.po
de.po fa.po hu.po ko.po psql.mo ro.po sk.po sv.po zh_CN.po

So this is really a bit confusing, and I think it should be:

Examples are psql.mo (MO file for psql) or fr.po (PO file in French).

Regards,
Halley




____________________________________________________
Yahoo! Mail, cada vez melhor: agora com 1GB de espaço grátis! http://mail.yahoo.com.br

Browse pgsql-docs by date

  From Date Subject
Next Message Tom Lane 2005-06-12 15:10:38 Re: PostgreSQL 7.4 and 8.0 - psql reference
Previous Message Halley Pacheco de Oliveira 2005-06-12 10:42:58 PostgreSQL 7.4 and 8.0 - psql reference