Project

General

Profile

Actions

Defect #14758

closed

Can't override default locale with plugin

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

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Plugin API
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Duplicate
Affected version:

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

Is duplicate of Redmine - Patch #12753: Update config.i18n.load_path for plugin-supplied localesClosedJean-Philippe Lang

Actions
Actions #1

Updated by Daniel Felix over 10 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

Actions #2

Updated by Ilya S over 10 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.

Actions #3

Updated by Go MAEDA over 10 years ago

This issue is probably duplicated with #12753.

Actions #4

Updated by Toshi MARUYAMA over 10 years ago

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

Go MAEDA wrote:

This issue is probably duplicated with #12753.

Indeed.

Actions #5

Updated by Toshi MARUYAMA over 10 years ago

  • Is duplicate of Patch #12753: Update config.i18n.load_path for plugin-supplied locales added
Actions

Also available in: Atom PDF