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


Reply via email to