Re: ToDo: show size of partitioned table

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: ToDo: show size of partitioned table
Дата
Msg-id 20190402191531.GA23006@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: ToDo: show size of partitioned table  (Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>)
Ответы Re: ToDo: show size of partitioned table  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
On 2019-Mar-13, Amit Langote wrote:

> +    if (show_indexes)
> +    {
> +        objects_name = gettext_noop("indexes");
...
> +        if (pattern)
> +            /* translator: objects_name is "index", "table" */
> +            psql_error("Did not find any partitioned %s named \"%s\".\n",
> +                       object_name,
> +                       pattern);
...
> +        /* translator: objects_name is "indexes", "tables" */
> +        appendPQExpBuffer(&title, _("List of partitioned %s"), objects_name);
> +

This stuff doesn't work from a translation standpoint; sentence building
is not allowed.  You have to do stuff like:

    if (tables)
    {
        errmsg = gettext_noop("Could not find any partitioned table");
        tabletitle = gettext_noop("List of partitioned tables");
    }
 ...
    if (pattern)
        /* translator: objects_name is "index", "table" */
        psql_error(gettext(errmsg), object_name, pattern);
      ...
    appendPQExpBuffer(&title, gettext(tabletitle));

and so on.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Erik Rijkers
Дата:
Сообщение: Re: [HACKERS] generated columns
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: ToDo: show size of partitioned table