Re: Traditional Chinese translations for backend, pgsql,

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: forth <forth(at)mail2000(dot)com(dot)tw>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Traditional Chinese translations for backend, pgsql,
Date: 2001-10-06 16:15:00
Message-ID: Pine.LNX.4.30.0110052328410.654-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

I'm getting a number of errors from these files such as:

src/backend/po/zh_TW.po:64: invalid control sequence
src/backend/po/zh_TW.po:67: invalid control sequence
src/backend/po/zh_TW.po:114: invalid control sequence
src/backend/po/zh_TW.po:207: invalid control sequence
src/backend/po/zh_TW.po:252: invalid control sequence
src/backend/po/zh_TW.po: warning: PO file header missing, fuzzy, or invalid
warning: charset conversion will not work
found 6 fatal errors

Apparently, in the particular character encoding you employ backslashes
occur on occasion, such as here

"¤£¤¹³\ \"root\" °õ¦æ PostgreSQL ¦øªA¾¹¡C\n"
"\n"
"¦øªA¾¹¥²¶·¥H«D¯SÅv¨Ï¥ÎªÌ¨­¤À±Ò°Ê¥HÁקK\n"
"¥i¯àªº¨t²Î¦w¥þ°ÝÃD¡A½Ð°Ñ¾\¤å¥ó¥HÀò±o\n"
"¦³Ãö¦p¦ó¥¿½T±Ò°Ê¦øªA¾¹ªº¸ê°T¡C\n"
"\n"

However, these strings are interpreted with C escapes, and this is an
invalid string.

I don't know of a good way to fix this, since in your editing tool you
probably don't see these backslashes, instead you see the multibyte
characters they are part of. If you have Emacs, try out the PO mode.
Otherwise you might want to ask around how other users of your language
handle this. (E.g., how do you enter strings in your language in C source
code without running into hidden backslashes?)

--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Peter Eisentraut 2001-10-06 16:15:34 Re: Simplified Chinese translation file for nls support
Previous Message Vsevolod Lobko 2001-10-06 10:16:54 [PATCH] unconditionally enable pltcl-unknown