]> git.openstreetmap.org Git - rails.git/commitdiff
Use i18n for submit button for issue comments
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 12 Jun 2019 14:25:19 +0000 (16:25 +0200)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 12 Jun 2019 17:24:06 +0000 (19:24 +0200)
Normally when an en-GB.yml translation is missing, rails falls back to en.yml. But when
using the submit helpers, if the en-GB translation is missing, rails knows how to create
a fallback like 'Create {model_name}' without touching the en.yml file. This string might
then be different from what the test expects, e.g. 'Add Comment'.

So it's important to set the language headers, to avoid phantomjs from picking up your desktop
preferences in this specific case.


No differences found