fix build

This commit is contained in:
Régis Hanol 2013-11-19 17:16:07 +01:00
parent 291acca4fa
commit 3a8bc60bf2

View File

@ -11,7 +11,7 @@ module JsLocaleHelper
plugin_translations.merge! YAML::load(File.open(file))
end
# merge translations (plugin translations overwrite default translations)
translations[locale_str]['js'].merge!(plugin_translations[locale_str]['js'])
translations[locale_str]['js'].merge!(plugin_translations[locale_str]['js']) if translations[locale_str] && plugin_translations[locale_str]
# We used to split the admin versus the client side, but it's much simpler to just
# include both for now due to the small size of the admin section.