Ticket #4 (closed feature: fixed)

Opened 4 years ago

Last modified 3 years ago

i18n enhancements

Reported by: gleu Owned by: gleu
Priority: minor Milestone: 1.14
Component: pgadmin Version: trunk
Keywords: Cc:
Platform: all

Description

From Heikki:

There's still a lot of troublesome constructs like “Cannot drop system %s”, where %s is replaced with “View”, “Sequence” etc. That doesn't work for many languages, including Finnish, where the following word needs to be inflected differently depending on the context.

and:

For messages like ”%d seconds”, ”%d rows”, the plural forms of the formatting functions/macros should be used, see  http://www.gnu.org/software/gettext/manual/gettext.html#Plural-forms. Google suggests that wxWidgets has a wxPLURAL macro for plural forms, that works like the _() macro that's used for normal strings.

Attachments

plural.patch Download (19.9 KB) - added by dpage 4 years ago.
Patch from Marek Černocký
ticket4.patch Download (199.3 KB) - added by gleu 3 years ago.
2nd patch

Change History

Changed 4 years ago by gleu

  • status changed from new to assigned
  • owner changed from dpage to gleu

Changed 4 years ago by dpage

Patch from Marek Černocký

Changed 4 years ago by dpage

Attached patch from Marek Černocký:

I write patch for plural forms of translated texts. It solves second
problem from report by Heikki:

 http://archives.postgresql.org/pgadmin-hackers/2009-05/msg00017.php

It use "wxPLURAL" instead "_". I also change "stringextract" script to
know this. Following steps required when patche is aplied:
- regenerate POT template
- merge it with PO files
PO files must have set Plural-Forms correctly, e.g. for czech it si:
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;
\n"
You can find it in gettext documentation (section 10.2.5) or create new
PO file from POT by msginit with appropriate param -l.

Marek

 http://archives.postgresql.org/message-id/1244646913.20153.60.camel@zabiny

Changed 3 years ago by gleu

  • milestone 1.12 deleted

Changed 3 years ago by gleu

2nd patch

Changed 3 years ago by gleu

  • status changed from assigned to closed
  • platform set to all
  • resolution set to fixed
  • milestone set to 1.14
Note: See TracTickets for help on using tickets.