Actions
Patch #20535
closedCSV importer raises I18n::InvalidLocale exception if current user's language is "(auto)"
Start date:
Due date:
% Done:
0%
Estimated time:
Description
CSV importer inplemented in r14493 raises I18n::InvalidLocale exception after uploading CSV file if if current user's language selection is "(auto)".
This is probably caused by source:trunk/lib/redmine/i18n.rb@14493#L63.
lang = user.try(:language) || Setting.default_language
User#language returns "" (zero length string) when the users's language setting is "(auto)".
I think current_language method should be called instead of language method.
Files
Actions