Project

General

Profile

Overriding Localizations in a Plugin

Added by Jamie Hardt over 14 years ago

I'm trying to write a plugin that adapts redmine to be more amenable to certain crafts in motion picture post-production; I'm a sound supervisor myself, but it could also be applied to things like visual effects. I'd like the views to use a slightly different terminology: "Issues" should be "spots," and "Trackers" should be "Departments," etc, and it seems like the most efficient way of doing this might be just rewriting some of the English localizations.

Is there any way of overriding the English localizations in a plugin? I'd rather not edit the normal English localizations and have my own private version of redmine, I'd like it to be a plugin that just rewrites the text when present.


Replies (1)

RE: Overriding Localizations in a Plugin - Added by Eric Davis about 14 years ago

Jamie Hardt wrote:

Is there any way of overriding the English localizations in a plugin? I'd rather not edit the normal English localizations and have my own private version of redmine, I'd like it to be a plugin that just rewrites the text when present.

Yes, just create a localization file in your plugin and define the new strings. For example (using Redmine trunk):

# vendor/plugins/redmine_motion_picture/config/locales/en.yml
en:
  field_issue: Spot

Eric Davis

    (1-1/1)