[Bug d/89823] New: Composed message only partially translatable
goeran at uddeborg dot se
gcc-bugzilla@gcc.gnu.org
Tue Mar 26 09:47:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89823
Bug ID: 89823
Summary: Composed message only partially translatable
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: d
Assignee: ibuclaw at gdcproject dot org
Reporter: goeran at uddeborg dot se
Target Milestone: ---
In d/dmd/expressionsem.c there is this piece of code:
> const char *s = exp->op == TOKplusplus ? "increment" : "decrement";
> exp->error("cannot post-%s array slice '%s', use pre-%s instead", s, exp->e1->toChars(), s);
The string "cannot post-%s …" will be extracted for translation, but the
inserted words, "increment" and "decrement", will not.
At a minimum, these words need to be marked for translation too. Better is
probably to make it two complete messages. For Swedish it would work to
compose the sentence this way, but I suspect there are languages further
removed from English where it would be hard.
More information about the Gcc-bugs
mailing list