Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 801babf

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 bb9a9a9 commit 801babf

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
@@ -165,7 +165,7 @@ slashUsage(unsigned short int pager)
165165

166166
currdb = PQdb(pset.db);
167167
if (currdb == NULL)
168-
currdb = _("none");
168+
currdb = "";
169169

170170
output = PageOutput(86, pager);
171171

0 commit comments

Comments
 (0)