pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
localization
4+ messages / 4 participants
[nested] [flat]

* localization
@ 2001-12-20 21:24 Carsten Grewe <DerReisende@schatzis.org>
  2001-12-21 09:09 ` Re: localization Karel Zak <zakkr@zf.jcu.cz>
  0 siblings, 1 reply; 4+ messages in thread

From: Carsten Grewe @ 2001-12-20 21:24 UTC (permalink / raw)
  To: pgsql-general

Hi,

I am a bit lost here. I have tried to convince pgsql to show numbers with a 
decimal-comma (german style) instead of the decimal-point. I was told in this 
list, that the important variables are set during initdb. So I set all 
variables I could imagine (LANG, LC_COLLATE, LC_CTYPE, LC_NUMERIC etc. - also 
LANG should have been enough in my understanding) to de_DE, made dumpall, rm 
data, initdb and tried again. Still 150.54 not 150,54 in psql. I been looking 
for further documentation, but it does not seem to be a big problem for most 
users. I must do something wrong - could you please give me a hint.

Thanks,
Carsten



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: localization
  2001-12-20 21:24 localization Carsten Grewe <DerReisende@schatzis.org>
@ 2001-12-21 09:09 ` Karel Zak <zakkr@zf.jcu.cz>
  0 siblings, 0 replies; 4+ messages in thread

From: Karel Zak @ 2001-12-21 09:09 UTC (permalink / raw)
  To: Carsten Grewe <DerReisende@schatzis.org>; +Cc: pgsql-general

On Thu, Dec 20, 2001 at 10:24:31PM +0100, Carsten Grewe wrote:
> Hi,
> 
> I am a bit lost here. I have tried to convince pgsql to show numbers with a 
> decimal-comma (german style) instead of the decimal-point. I was told in this 
> list, that the important variables are set during initdb. So I set all 
> variables I could imagine (LANG, LC_COLLATE, LC_CTYPE, LC_NUMERIC etc. - also 
> LANG should have been enough in my understanding) to de_DE, made dumpall, rm 
> data, initdb and tried again. Still 150.54 not 150,54 in psql. I been looking 
> for further documentation, but it does not seem to be a big problem for most 
> users. I must do something wrong - could you please give me a hint.

 The backend ignore LC_NUMERIC. If you want output numbers in locale
 depend format use to_char() (for example to_char(1234.5, '9G999D9').

        Karel

-- 
 Karel Zak  <zakkr@zf.jcu.cz>
 http://home.zf.jcu.cz/~zakkr/
 
 C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Localization
@ 2019-05-30 05:59 Yonatan Misgan <yonamis@dtu.edu.et>
  2019-05-30 18:49 ` Re: Localization Alvaro Herrera <alvherre@2ndquadrant.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Yonatan Misgan @ 2019-05-30 05:59 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>


Hello Dear, how are you doing? I am Yonathan Misgan from Ethiopia. Currently I am working on open source database localization. I highly requested your advice on how to support my hard code in PostgreSQL. I am developed Ethiopian locales after all I have difficulties on how to use this locale. How can am I include the locales into the developed environment. I mean where I put and how can I use this my own locale file. For example, I have the resource files of Ethiopian locale (the XML file) and the hard code part for the calendar but where I put this file in PostgreSQL to access as Ethiopian locale and in what format also I need to put. Thank you.

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Localization
  2019-05-30 05:59 Localization Yonatan Misgan <yonamis@dtu.edu.et>
@ 2019-05-30 18:49 ` Alvaro Herrera <alvherre@2ndquadrant.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Alvaro Herrera @ 2019-05-30 18:49 UTC (permalink / raw)
  To: Yonatan Misgan <yonamis@dtu.edu.et>; +Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

On 2019-May-30, Yonatan Misgan wrote:

> Hello Dear, how are you doing? I am Yonathan Misgan from Ethiopia.
> Currently I am working on open source database localization. I highly
> requested your advice on how to support my hard code in PostgreSQL. I
> am developed Ethiopian locales after all I have difficulties on how to
> use this locale. How can am I include the locales into the developed
> environment. I mean where I put and how can I use this my own locale
> file. For example, I have the resource files of Ethiopian locale (the
> XML file) and the hard code part for the calendar but where I put this
> file in PostgreSQL to access as Ethiopian locale and in what format
> also I need to put. Thank you.

I'm not sure what's the localization XML you're talking about -- we
don't have any such thing in Postgres.  We do have localization in
Postgres, but it's used for error messages, the output of --help of
various programs, and so on.  The way to start there is to see
https://babel.postgresql.org about getting your language added; there
are other important links in that page also.

If that's not what you meant, I think you'll have to explain more.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services





^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2019-05-30 18:49 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-12-20 21:24 localization Carsten Grewe <DerReisende@schatzis.org>
2001-12-21 09:09 ` Karel Zak <zakkr@zf.jcu.cz>
2019-05-30 05:59 Localization Yonatan Misgan <yonamis@dtu.edu.et>
2019-05-30 18:49 ` Re: Localization Alvaro Herrera <alvherre@2ndquadrant.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox