Thread: Another transation fix

Another transation fix

From
Bruce Momjian
Date:
Here is another try at fixing the translation message.  Instead of
removing the backslashes in the message, I escaped them.  Per discussion
with Joe Conway.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
Index: zh_TW.po
===================================================================
RCS file: /cvsroot/pgsql-server/src/bin/initdb/po/zh_TW.po,v
retrieving revision 1.1
retrieving revision 1.3
diff -c -c -r1.1 -r1.3
*** zh_TW.po    30 Jul 2004 05:28:36 -0000    1.1
--- zh_TW.po    31 Jul 2004 20:00:26 -0000    1.3
***************
*** 197,203 ****
  
  #: initdb.c:1864
  msgid "ok\n"
! msgstr "���\\n"
  
  #: initdb.c:1894
  #, c-format
--- 197,203 ----
  
  #: initdb.c:1864
  msgid "ok\n"
! msgstr "���\\\n"
  
  #: initdb.c:1894
  #, c-format
***************
*** 257,263 ****
  
  #: initdb.c:1973
  msgid "  --no-locale               equivalent to --locale=C\n"
! msgstr "  --no-locale               �\���P --locale=C\n"
  
  #: initdb.c:1974
  msgid "  -U, --username=NAME       database superuser name\n"
--- 257,263 ----
  
  #: initdb.c:1973
  msgid "  --no-locale               equivalent to --locale=C\n"
! msgstr "  --no-locale               �\\���P --locale=C\n"
  
  #: initdb.c:1974
  msgid "  -U, --username=NAME       database superuser name\n"
***************
*** 468,474 ****
  "\n"
  msgstr ""
  "\n"
! "���榨�\�A�{�b�A�i�H�ΤU�C�R�O�Ұʸ��Ʈw���A��:\n"
  "\n"
  "    %s%s%s/postmaster -D %s%s%s\n"
  "��\n"
--- 468,474 ----
  "\n"
  msgstr ""
  "\n"
! "���榨�\\�A�{�b�A�i�H�ΤU�C�R�O�Ұʸ��Ʈw���A��:\n"
  "\n"
  "    %s%s%s/postmaster -D %s%s%s\n"
  "��\n"

Re: Another transation fix

From
Joe Conway
Date:
Bruce Momjian wrote:
> Here is another try at fixing the translation message.  Instead of
> removing the backslashes in the message, I escaped them.  Per discussion
> with Joe Conway.

Now I'm getting three errors instead of one:

msgfmt -o po/zh_TW.mo po/zh_TW.po
po/zh_TW.po:199: `msgid' and `msgstr' entries do not both end with '\n'
po/zh_TW.po:260:40: invalid control sequence
po/zh_TW.po:471:11: invalid control sequence
msgfmt: found 3 fatal errors

Not sure if it is relevant, but here are my locale related environment
variables:

LANG=C
LANGUAGE=C
LC_ALL=C

This is on a Fedora core 2 machine. Anyone have any ideas how to
properly fix this?

Thanks,

Joe

Re: Another transation fix

From
Peter Eisentraut
Date:
Joe Conway wrote:
> FWIW, I can compile with the attached patch.

That looks awfully close to what we started from... :-/

--
Peter Eisentraut
http://developer.postgresql.org/~petere/


Re: Another transation fix

From
Joe Conway
Date:
Joe Conway wrote:
> Bruce Momjian wrote:
>> Here is another try at fixing the translation message.  Instead of
>> removing the backslashes in the message, I escaped them.  Per discussion
>> with Joe Conway.
>
> Now I'm getting three errors instead of one:
>
> msgfmt -o po/zh_TW.mo po/zh_TW.po
> po/zh_TW.po:199: `msgid' and `msgstr' entries do not both end with '\n'
> po/zh_TW.po:260:40: invalid control sequence
> po/zh_TW.po:471:11: invalid control sequence
> msgfmt: found 3 fatal errors

FWIW, I can compile with the attached patch.

Joe
? src/bin/initdb/po/de.mo
? src/bin/initdb/po/fr.mo
? src/bin/initdb/po/it.mo
? src/bin/initdb/po/pt_BR.mo
? src/bin/initdb/po/ru.mo
? src/bin/initdb/po/sv.mo
? src/bin/initdb/po/zh_TW.mo
Index: src/bin/initdb/po/zh_TW.po
===================================================================
RCS file: /cvsroot/pgsql-server/src/bin/initdb/po/zh_TW.po,v
retrieving revision 1.3
diff -c -r1.3 zh_TW.po
*** src/bin/initdb/po/zh_TW.po    31 Jul 2004 20:00:26 -0000    1.3
--- src/bin/initdb/po/zh_TW.po    31 Jul 2004 22:02:59 -0000
***************
*** 197,203 ****

  #: initdb.c:1864
  msgid "ok\n"
! msgstr "���\\\n"

  #: initdb.c:1894
  #, c-format
--- 197,203 ----

  #: initdb.c:1864
  msgid "ok\n"
! msgstr "���\\n"

  #: initdb.c:1894
  #, c-format
***************
*** 257,263 ****

  #: initdb.c:1973
  msgid "  --no-locale               equivalent to --locale=C\n"
! msgstr "  --no-locale               �\\���P --locale=C\n"

  #: initdb.c:1974
  msgid "  -U, --username=NAME       database superuser name\n"
--- 257,263 ----

  #: initdb.c:1973
  msgid "  --no-locale               equivalent to --locale=C\n"
! msgstr "  --no-locale               �\���P --locale=C\n"

  #: initdb.c:1974
  msgid "  -U, --username=NAME       database superuser name\n"
***************
*** 468,474 ****
  "\n"
  msgstr ""
  "\n"
! "���榨�\\�A�{�b�A�i�H�ΤU�C�R�O�Ұʸ��Ʈw���A��:\n"
  "\n"
  "    %s%s%s/postmaster -D %s%s%s\n"
  "��\n"
--- 468,474 ----
  "\n"
  msgstr ""
  "\n"
! "���榨�\�A�{�b�A�i�H�ΤU�C�R�O�Ұʸ��Ʈw���A��:\n"
  "\n"
  "    %s%s%s/postmaster -D %s%s%s\n"
  "��\n"