Defect #14758

Can't override default locale with plugin

Added by Ilya S over 4 years ago. Updated over 4 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Plugin API
Target version:-
Resolution:Duplicate Affected version:2.3.2

Description

trunk/config/locales/en.yml:

label_user_mail_option_all: "For any event on all my projects"

trunk/plugins/my_plugin_name/config/locales/en.yml:
label_user_mail_option_all: "For events on all my projects"

Restart Redmine and still see default locale translation. But if i comment this string in trunk/config/locales/en.yml, then appears my_plugin translation.

Ruby 2.0.0-p247, Redmine 2.3.2stable


Related issues

Duplicates Redmine - Patch #12753: Update config.i18n.load_path for plugin-supplied locales Closed

History

#1 Updated by Daniel Felix over 4 years ago

Hi,

as you can see in source:/trunk/lib/redmine/plugin.rb#L82 the plugin files are joined.

Do you see some exception in the log like these?
source:/trunk/lib/redmine/i18n.rb#L37

#2 Updated by Ilya S over 4 years ago

I'm not saying that plugins locales are not joins, i'm saying that plugin locales can't override default locales, may be they loads before default locales, i don't know.
No, i'm not see any exceptions or warnings, nothing happens, plugin locales just don't work until i disable default strings.

Sorry for my english.

#3 Updated by Go MAEDA over 4 years ago

This issue is probably duplicated with #12753.

#4 Updated by Toshi MARUYAMA over 4 years ago

  • Status changed from New to Closed
  • Resolution set to Duplicate

Go MAEDA wrote:

This issue is probably duplicated with #12753.

Indeed.

#5 Updated by Toshi MARUYAMA over 4 years ago

  • Duplicates Patch #12753: Update config.i18n.load_path for plugin-supplied locales added

Also available in: Atom PDF