プロジェクト

全般

プロフィール

Vote #68642

未完了

Plugins captions for name and descriptions has not i18n support

Admin Redmine さんがほぼ2年前に追加. ほぼ2年前に更新.

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

0%

予定工数:
category_id:
37
version_id:
0
issue_org_id:
6926
author_id:
779
assigned_to_id:
0
comments:
5
status_id:
1
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

The admin plugin's view doesn't support translations.

Those fields right now are not able to be translated but they should.

I've added l() function to the view so that can be translated at init.rb.
I've attached a patch for it against the last Redmine version (r4410).


journals

This patch seems to break plugins that do not have translated name and description.
--------------------------------------------------------------------------------
Thanks for reviewing the patch :-)

Yes, you're right, but I think those strings should be able to be translated always. At least, the description.
I'm not sure if there is a easy and elegant way to translate just if there is a translation :/

Can't it be added to the plugins documentation as a requirement for updating a plugin to the new Redmine version or create a new one? Just a thought...

Thanks for your time.
--------------------------------------------------------------------------------
You could use something like this:

plugin.description.is_a? Symbol ? l(plugin.description) : plugin.description

A new requirement is not to be taken lightheartly. It could be optional (and/or recommended) though.
--------------------------------------------------------------------------------
Thanks Holger,

I was trying with that solution and I got the patch I attech. No I have plugins with translations adn plugins without translations working.

--------------------------------------------------------------------------------
I think that localized plugin names can be confusing and I'm not aware of a software that provides this feature. For the description, I think we should wait for #5518 so that plugins do not have to provide a valid translation for each language that is present in the core.
--------------------------------------------------------------------------------


related_issues

relates,New,8058,Separation of content language from UI language

Admin Redmine さんがほぼ2年前に更新

  • カテゴリI18n_37 にセット

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

いいね!0
いいね!0