summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-01-15 22:09:41 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-01-15 22:14:08 +0200
commit801babf0d7d5fe3caecbeab0eaf1c4f6bf5eb59e (patch)
tree6c575c66f081f534a01295d6a4531b5d9ae82938
parentbb9a9a9d37f664c2dd7d715b25058e8bc21f99b0 (diff)
On second thought, use an empty string instead of "none" when not connected.
"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.
-rw-r--r--src/bin/psql/help.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/psql/help.c b/src/bin/psql/help.c
index 213b87c5393..c31d3d6b416 100644
--- a/src/bin/psql/help.c
+++ b/src/bin/psql/help.c
@@ -165,7 +165,7 @@ slashUsage(unsigned short int pager)
currdb = PQdb(pset.db);
if (currdb == NULL)
- currdb = _("none");
+ currdb = "";
output = PageOutput(86, pager);