Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

[PATCH] Auto-load i18n configurations for all plugins, not just engines

#3282

Many plugins, especially those that define helper methods for ActionView views, will want to define I18n locale information. Currently the plugin loader only checks for files under {plugin_dir}/config/locales/ for engines. This patch supports config/locales directories for all plugins.

I tested it against 2.3 stable on Ruby 1.8.6.

Reported by Gaius Centus Novus · September 27th, 2009 @ 10:51 PM

State: stale
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Gaius Centus Novus
    Gaius Centus Novus
    • Tag changed from 2-3-stable, i18n, loader, patch, plugins to 2-3-stable, bugmash, i18n, loader, patch, plugins

    September 27th, 2009 @ 10:51 PM

  2. Blue Box Stephen
    Blue Box Stephen

    +1 to Gaius change idea, but the patch included above doesn't appear to apply cleanly to 2-3-stable (and is missing a path). I've attached a patch. It corrects the aforementioned errors and should apply to 2-3-stable.

    September 28th, 2009 @ 01:08 AM

  3. Gaius Centus Novus
    Gaius Centus Novus

    Weird; I must've diff'd from the wrong directory.

    +1 to Blue Box Stephen's version -- it does exactly what I had intended.

    September 28th, 2009 @ 01:28 AM

  4. Rizwan Reza
    Rizwan Reza
    • Tag changed from 2-3-stable, bugmash, i18n, loader, patch, plugins to 2-3-stable, i18n, loader, patch, plugins

    February 12th, 2010 @ 12:46 PM

  5. Santiago Pastorino
    Santiago Pastorino
    • State changed from new to open
    • Importance changed from to

    This issue has been automatically marked as stale because it has not been commented on for at least three months.

    The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.

    Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.

    February 2nd, 2011 @ 04:55 PM

  6. Santiago Pastorino
    Santiago Pastorino
    • State changed from open to stale

    February 2nd, 2011 @ 04:55 PM