Re: Bug in psql - Mailing list pgsql-bugs

From Chris BSomething
Subject Re: Bug in psql
Date
Msg-id CADrHaBHae5sOXRDXELisFm4tA5wJrK2SJe6zObvR=PJG1oGvxg@mail.gmail.com
Whole thread Raw
In response to Re: Bug in psql  (Greg Sabino Mullane <htamfids@gmail.com>)
List pgsql-bugs


On Thu, 6 Feb 2025 at 04:09, Greg Sabino Mullane <htamfids@gmail.com> wrote:
My patch was just committed by Tom (who did most of the work, thank you Tom!). So now you should see much less of "List
+               if (showViews) {
+                       if (cntTitle != 0) {
+                               strcat(title, ", ");
+                       }
+                       strcat(title, "views");
+                       cntTitle++;
+               }
...

See discussion on my patch about why we cannot do this for translation reasons. Well, we can do it, but we'd be asking the translators to either handle around 64 new strings, or to forcibly accept some assumptions about how their language should work.


Yes, I see.  Although one might argue that  translating individual words is good enough in this case.

Better to have just "tables, indexes, views" with no language specific grammar than give up. Though I think any language can cope well enough with "list tables" or "tables list" without having their grammar sensibilities offended.

And I've got to  imagine that relations as a mathematical technical term doesn't really translate anyway. Let alone explaining in Chinese why an index is a relation.

-       HELP0("  \\dE[Sx+] [PATTERN]     list foreign tables\n");
+       HELP0("  \\dew[x+] [PATTERN]     list foreign-data wrappers\n");
        HELP0("  \\des[x+] [PATTERN]     list foreign servers\n");
-       HELP0("  \\det[x+] [PATTERN]     list foreign tables\n");
+       HELP0("  \\dE[Sx+] [PATTERN]     list foreign tables (basic info)\n");
+       HELP0("  \\det[x+] [PATTERN]     list foreign tables (foreign info)\n");
        HELP0("  \\deu[x+] [PATTERN]     list user mappings\n");
-       HELP0("  \\dew[x+] [PATTERN]     list foreign-data wrappers\n");

I like this part, it's definitely an improvement. 

Cheers,
Greg

--
Crunchy Data - https://www.crunchydata.com
Enterprise Postgres Software Products & Tech Support


pgsql-bugs by date:

Previous
From: Thomas Munro
Date:
Subject: Re: BUG #18146: Rows reappearing in Tables after Auto-Vacuum Failure in PostgreSQL on Windows
Next
From: Mor Lehr
Date:
Subject: Re: Missing semicolumn in anonymous plpgsql block does not raise syntax error