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] Prioritize application i18n above engine i18n

#3537

Engine translations are added at the end of the I18n.load_path, so they take precedence over application translations.

Application developers should be able to overwrite engine translations.

http://github.com/atd/rails/commit/6161e719012e856a59248fe338ff1c01...

Reported by Antonio Tapiador · December 2nd, 2009 @ 03:02 PM

State: resolved
Milestone: none
Assigned to: José Valim José Valim
Importance: Low

Activity

  1. Francesc Esplugas
    Francesc Esplugas

    +1 Please, can you attach the file to lighthouse?

    December 8th, 2009 @ 09:34 PM

  2. Antonio Tapiador
    Antonio Tapiador
    • Tag changed from engines, i18n to 18, engines
    • Title changed from Prioritize application i18n above engine i18n to [patch] Prioritize application i18n above engine i18n

    December 9th, 2009 @ 09:06 AM

  3. Antonio Tapiador
    Antonio Tapiador
    • Tag changed from 18, engines to engines, i18n

    December 9th, 2009 @ 09:07 AM

  4. José Valim
    José Valim
    • Assigned user set to José Valim

    January 3rd, 2010 @ 12:34 AM

  5. José Valim
    José Valim

    Why not simply unshift?

    I18n.load_paths.unshift *locale_files
    

    January 3rd, 2010 @ 11:30 AM

  6. Antonio Tapiador
    Antonio Tapiador

    IMO, Engine developers should be able to change Rails translations. And finally, application developers should have the highest priority.

    So translations order should be:
    Rails - Engines - Application

    January 7th, 2010 @ 09:48 AM

  7. José Valim
    José Valim
    • State changed from new to resolved

    January 24th, 2010 @ 09:24 AM