8000 On second thought, use an empty string instead of "none" when not con… · micdev42/postgres@46dc33f · GitHub
[go: up one dir, main page]

Skip to content

Commit 46dc33f

Browse files
committed
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.
1 parent 63b0b39 commit 46dc33f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/psql/help.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ slashUsage(unsigned short int pager)
163163

164164
currdb = PQdb(pset.db);
165165
if (currdb == NULL)
166-
currdb = _("none");
166+
currdb = "";
167167

168168
output = PageOutput(69, pager);
169169

0 commit comments

Comments
 (0)
0