Re: Translation issue: use of "%s"

From: Jean-Michel POURE <jm(dot)poure(at)freesurf(dot)fr>
To: Andreas Pflug <Andreas(dot)Pflug(at)web(dot)de>
Cc: pgadmin-hackers(at)postgresql(dot)org
Subject: Re: Translation issue: use of "%s"
Date: 2003-06-13 13:59:23
Message-ID: 200306131559.23557.jm.poure@freesurf.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Dear Andreas,

> 1) In the case of "Creating a new %s", I think it would help if %s is
> not only the object name itself ("View", "Table", ...) but includes new
> ("new view", "new table", "tableau nouveau", "neue Tabelle", "neuer
> Operator"...). I'll be recoding typeNameList[] the next days for this.
> Are there any other cases you found in pgadmin.pot?

It won't make it in several languages. Non european languages follow strange
rules that are hard to even imagine (sometimes no verb, sometimes no
adjective, sometimes only aggregates, etc...).

You should simply create different strings: "Create a new view", "Create a new
table", etc...

> 2) do you have an example in pgAdmin3 for that?
No, it was just a 0.02 cents remark.

To summarise, when possible, sentences should never be built by a
search/replace mechanism like "%s". If you use "%s", be sure the replaced
string is completely invariable (the name of a user, etc...).

Cheers,
Jean-Michel

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dave Page 2003-06-13 13:59:30 Re: Translation issue: use of "%s"
Previous Message Andreas Pflug 2003-06-13 13:38:47 Re: Translation issue: use of "%s"