[GRASS-dev] Re: [GRASS-SVN] r45267 - grass/branches/releasebranch_6_4/locale/po

[not sure if this got past yahoo's quasi-functional spam proofing,
trying again]

Martin:

it's referring to the parameter options not module keywords...
Probably we should split descriptions option into two parts - keys
which are not translated and labels which can be translated.

as easy as:

tool_opt->descriptions =
    "break;" _("break lines at each intersection;")
    "rmdupl;" _("remove duplicate geometry features (pay attention to categories!);")
    "rmdangle;" _("remove dangles, threshold ignored if < 0;")
    "chdangle;" _("change the type of boundary dangle to line, "
                  "threshold ignored if < 0, input line type is ignored;")
  ...

in the code?

?,
Hamish

Hi,

2011/2/1 Hamish <hamish_b@yahoo.com>:

tool_opt->descriptions =
"break;" _("break lines at each intersection;")
"rmdupl;" _("remove duplicate geometry features (pay attention to categories!);")
"rmdangle;" _("remove dangles, threshold ignored if < 0;")
"chdangle;" _("change the type of boundary dangle to line, "
"threshold ignored if < 0, input line type is ignored;")
...

in the code?

what about G_asprintf()

char *desc = NULL;
desc = G_asprintf("break;%s;rmdumpl;%s", _("break..."), _("remove"))
tool_opt->descriptions = desc;

?

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

2011/2/1 Martin Landa <landa.martin@gmail.com>:

what about G_asprintf()

char *desc = NULL;
desc = G_asprintf("break;%s;rmdumpl;%s", _("break..."), _("remove"))
tool_opt->descriptions = desc;

should G_asprintf(&desc, ...) of course. See r45281 as an example.

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Hi,

2011/2/1 Martin Landa <landa.martin@gmail.com>:

char *desc = NULL;
desc = G_asprintf("break;%s;rmdumpl;%s", _("break..."), _("remove"))
tool_opt->descriptions = desc;

should G_asprintf(&desc, ...) of course. See r45281 as an example.

if no objections I will do similar modifications in other modules (in trunk).

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

On Mon, Feb 14, 2011 at 5:21 PM, Martin Landa <landa.martin@gmail.com> wrote:

Hi,

2011/2/1 Martin Landa <landa.martin@gmail.com>:

char *desc = NULL;
desc = G_asprintf("break;%s;rmdumpl;%s", _("break..."), _("remove"))
tool_opt->descriptions = desc;

should G_asprintf(&desc, ...) of course. See r45281 as an example.

if no objections I will do similar modifications in other modules (in trunk).

Is there a chance to not break all translations? (I didn't check in detail)

Markus

2011/2/15 Markus Neteler <neteler@osgeo.org>:

2011/2/1 Martin Landa <landa.martin@gmail.com>:

char *desc = NULL;
desc = G_asprintf("break;%s;rmdumpl;%s", _("break..."), _("remove"))
tool_opt->descriptions = desc;

should G_asprintf(&desc, ...) of course. See r45281 as an example.

if no objections I will do similar modifications in other modules (in trunk).

Is there a chance to not break all translations? (I didn't check in detail)

of course r45281 requires update of translation. I think there is no
chance to break the translations.

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa