Project

General

Profile

How to reload translations from a plugin?

Added by John Kubiatowicz over 12 years ago

I've been unable to figure out how to change translations in an en.yml file that is in a plugin. I've restarted redmine multiple times but do not see changes. I know that the file is being considered, because adding keys works fine. I'm just unable to change keys.

Sorry if this is a dumb question, but is there some persistent cache somewhere for I18n translations? It must be persistent, since translations do not seem to get reloaded on restart of the application.

About my application's environment:
Ruby version 1.8.7 (x86_64-linux)
RubyGems version 1.8.11
Rack version 1.1
Rails version 2.3.14
Active Record version 2.3.14
Active Resource version 2.3.14
Action Mailer version 2.3.14
Active Support version 2.3.14
Application root /source/tessellation/test-site/redmine
Environment production
Database adapter mysql
Database schema version 20111220055819

About your Redmine plugins
Redmine Git Hosting Plugin 0.4.2
Redmine OpenID Selector plugin 0.0.1


Replies (2)

RE: How to reload translations from a plugin? - Added by Alex A over 12 years ago

rake db:migrate_plugins RAILS_ENV=production ?

RE: How to reload translations from a plugin? - Added by John Kubiatowicz over 12 years ago

Surprisingly, that (migrate_plugins) didn't seem to work when I tried it a few days ago.

What does seem to have worked, however, is time. I haven't looked at my site for 2 days (holidays, you know), and it seems to have incorporated my changes.

Must be a cache that times out somewhere. Anyone know what the story is? Will be hard to develop if I cannot easily change translations....

    (1-2/2)