fix i18n locale load order to allow customisation

fix interpolation values for i18n
This commit is contained in:
Adam Meehan
2009-06-19 12:06:36 +10:00
parent 4ac4281c8b
commit d61dddfbc6
3 changed files with 3 additions and 9 deletions

View File

@@ -31,7 +31,7 @@ module ValidatesTimeliness
def load_error_messages
if defined?(I18n)
I18n.load_path += [ LOCALE_PATH ]
I18n.load_path.unshift(LOCALE_PATH)
I18n.reload!
else
defaults = YAML::load(IO.read(LOCALE_PATH))['en']