aula icon indicating copy to clipboard operation
aula copied to clipboard

Make validation errors translatable

Open rittermo opened this issue 8 years ago • 7 comments

Entering a special character like “!,.@” in an idea title produces a validation error that reads “unerwartet '.'erwartet letter or digit, space oder end of input”. The validation message should be changed to “Sonderzeichen wie „[unallowed character]“ sind im Titel der Idee nicht erlaubt.”


Original text: Erstellung von neuer Idee "Mehr Stuff!!": Scheitert mit Fehler "unerwartet '!'erwartet letter or digit, space oder end of input" Fehler erscheint unhervorgehoben oben im Dokument, wodurch ich ihn nicht sofort entdeckt habe und erst einmal verwirrt war, wieso es nicht klappte.

rittermo avatar May 18 '16 08:05 rittermo

(we should probably fix this for all occurrances, not only the ones that we encounter during testing.)

fisx avatar May 18 '16 12:05 fisx

@fisx In v0.13.0 the error message seems unchanged. Would it be easier if we look at the wording of all validation errors as a whole for iteration 2?

rittermo avatar May 21 '16 10:05 rittermo

@rittermo ok, I'm re-opening this and moving it to it.2.

These messages are generated with a template from case-specific sentence fragments, so to get precisely the wording you suggested would be awkward and I was hoping it's not necessary. Probably better to talk about this in person?

fisx avatar May 21 '16 11:05 fisx

@fisx Yes, sure. I’m sure we can find a good solution with the existing templates. Let’s do this in person towards the end of next week.

rittermo avatar May 21 '16 11:05 rittermo

we need to come up with a way to take out all german text for review by editors. it'll be interesting to extend whatever system we can come up with to the generated errors here.

fisx avatar Jun 24 '16 12:06 fisx

Related to: https://github.com/liqd/aula/pull/752

andorp avatar Jul 04 '16 09:07 andorp

related: #788.

fisx avatar Jul 20 '16 12:07 fisx