]> granicus.if.org Git - postgresql/commitdiff
On second thought, use an empty string instead of "none" when not connected.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 15 Jan 2013 20:09:41 +0000 (22:09 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 15 Jan 2013 20:12:54 +0000 (22:12 +0200)
"none" could mislead to think that you're connected a database with that
name. Also, it needs to be translated, which might be hard without some
context. So in back-branches, use empty string, so that the message is
(currently ""), which is at least unambiguous and doens't require
translation. In master, it's no problem to add translatable strings, so use
a different fix there.

src/bin/psql/help.c

index 58f8a0b0167522dd8a0f13666c2d900bb843246e..4a303f9269a39bfbf725c6a843607b1ebd8401b0 100644 (file)
@@ -165,7 +165,7 @@ slashUsage(unsigned short int pager)
 
        currdb = PQdb(pset.db);
        if (currdb == NULL)
-               currdb = _("none");
+               currdb = "";
 
        output = PageOutput(94, pager);