Localization Failing for all plugins

Added by Thomas M over 8 years ago

Hi,
I've installed some plugins into my up to date (regarding stable releases) 0.8.3 Redmine install.

All of them fail silently (nothing in .log) to localize their strings.
It looks odd that they do not show the "en" version of the string but the label ...

A screenshot is attached (graph plugin in the sidebar for instance).

I've tried with Redmine Graph and Redmine Charts.

Thanks for your help.

Replies (9)

RE: Localization Failing for all plugins - Added by Brad Beattie over 8 years ago

From your screenshot, I assume you're running in French. The graphs plugin has no French localization. If you'd like to provide one, that'd be appreciated. :)

RE: Localization Failing for all plugins - Added by Thomas M over 8 years ago

Your assumption is good ;)

The on-the-fly translation is provided, by the way I've tested with a fr.yml file and it did not solve my issue. Is there something else to do (than creating a yml file) ?

fr.yml Magnifier (183 Bytes)

RE: Localization Failing for all plugins - Added by note sinotite over 8 years ago

I get the same thing with the ezFAQ plugin installation (the only one I've tried) on an English redmine. See attached picture.

pic017.png (2.5 KB)

RE: Localization Failing for all plugins - Added by Brad Beattie over 8 years ago

Odd. Are they installed in the correct directories? e.g. ./vendor/plugins/redmine_graphs?

RE: Localization Failing for all plugins - Added by Eric Davis over 8 years ago

note sinotite wrote:

I get the same thing with the ezFAQ plugin installation (the only one I've tried) on an English redmine. See attached picture.

You want to try my Timesheet plugin? It has a working French localization for 0.8.3 and trunk.

Eric

RE: Localization Failing for all plugins - Added by Yuriy Silvestrov over 8 years ago

I have found that most of all plugins are provided with ./config/locales/*yml localization, but for 0.8.3 version provide only ./lang/*yml localization. Of course, I could copy needed locales and edit it to match the ./lang rules, but is there any other way to switch the behavoir?

RE: Localization Failing for all plugins - Added by Thomas M over 8 years ago

I would have bet that I've done that before ... but copying config/locales/*.yml to lang/, removing the first line and running rake db:migrate_plugin solved the issue.

Brad you've won a French translation ;)

RE: Localization Failing for all plugins - Added by Chaoqun Zou over 8 years ago

Hi, the ezFAQ 0.3.3 should not works properly with redmine 0.8.3, it can only run under redmine last devel.
Apologize for that, please refer to http://www.redmine.org/boards/3/topics/5455 for details.

RE: Localization Failing for all plugins - Added by Mark Anderson over 8 years ago

Thomas M's patching of the yml worked for me without raking to migrate tho I did kill the fcgi process.

BUT - I think the question remains - why is this happening? Its clearly problematic to require all this manual patching.

Thanks tho to all for your clues here that also got me going with labels for the Graphs plugin.

(1-9/9)