Closed hi-ko closed 4 years ago
@hi-ko thank you for the feedback, this is gonna be fixed
hello @hi-ko, please try the new unreleased versions 2.1-alpha1 or 3.1-alpha1
thank you!
Yes, now the message is being send with "translation missing: de.zulip_notify_updated". I guess it is not possible to define en as fallback?
Thanks for fixing this!
@hi-ko it is possible, but it depends on Redmine installation
please try running
RAILS_ENV=production rails console
..on Rails console, check the following:
I18n.default_locale
I got en
as default locale on my installation and messages are translated into english as default
same here:
irb(main):001:0> I18n.default_locale
=> :en
but the plugin returns ""translation missing: ..." since I testet with redmine application default language "de". What I meant was: nice to have would be a fall back to a (plugin defined) fall back locale: en to avoid these nasty warnings ;-)
Thanks for your excellent work!
The code reads Setting.default_language but does not handle missing translations for the system default language in lib/redmine_zulip/issue_patch.rb e.g.
To reproduce set redmine default language to de (german) which has no tranlsation yet in config/locales and you will get a http 500 on ticket updates and in the redmine log: