Patch #6926
openPlugins captions for name and descriptions has not i18n support
0%
Description
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).
Files
Related issues
Updated by Jean-Philippe Lang about 14 years ago
This patch seems to break plugins that do not have translated name and description.
Updated by Juanje Ojeda Croissier about 14 years ago
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.
Updated by Holger Just about 14 years ago
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.
Updated by Juanje Ojeda Croissier about 14 years ago
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.
Updated by Jean-Philippe Lang almost 14 years ago
- Category changed from Translations to I18n
- Assignee deleted (
Azamat Hackimov)
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.