プロジェクト

全般

プロフィール

Vote #73079

完了

Update config.i18n.load_path for plugin-supplied locales

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
I18n_37
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
37
version_id:
75
issue_org_id:
12753
author_id:
23403
assigned_to_id:
1
comments:
7
status_id:
5
tracker_id:
3
plus1:
1
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

With Rails 3 @Redmine::Plugin.register@ should update @Rails.application.config.i18n.load_path@ for plugin-supplied locales to allow them to override system locales. @I18n.load_path@ is overriden with system locales by an @after_initialize@ hook in @active_support/i18n_railtie.rb@, thus currently plugins like https://github.com/edavis10/redmine_language_change won't work.

The attached patch is against 2.1-stable branch.


journals

Can you add a test to your patch?
--------------------------------------------------------------------------------
+1

Need the string customization scheme in plugins of previous Redmine versions back, too!
--------------------------------------------------------------------------------
Hi there,

any news on this? Did you write a test? :-)
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
This is absolutely needed.
--------------------------------------------------------------------------------
redmine_language_change plugin works fine for me without the patch applied but it's committed in r12482 anyway as it seems safer to use Rails config instead.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

duplicates,Closed,14758,Can't override default locale with plugin

Admin Redmine さんが約4年前に更新

  • カテゴリI18n_37 にセット
  • 対象バージョン2.5.0_75 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0