Re: Bug in psql

Поиск
Список
Период
Сортировка
От Chris BSomething
Тема Re: Bug in psql
Дата
Msg-id CADrHaBHae5sOXRDXELisFm4tA5wJrK2SJe6zObvR=PJG1oGvxg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Bug in psql  (Greg Sabino Mullane <htamfids@gmail.com>)
Список 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 по дате отправления: