Add placeholder file for nb translations and arrange to merge nb and
authorTom Hughes <tom@compton.nu>
Thu, 18 Mar 2010 22:33:05 +0000 (22:33 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 18 Mar 2010 22:33:05 +0000 (22:33 +0000)
no translations at startup.

config/initializers/i18n.rb
config/locales/nb.yml [new file with mode: 0644]

index ac4ad81d62bce072b94291c2beea0a786c951634..b2af5004e463abee8834b404a7864396651de934 100644 (file)
@@ -12,6 +12,9 @@ module I18n
       def init_translations
         old_init_translations
 
+        merge_translations(:nb, translations[:no])
+        translations[:no] = translations[:nb]
+
         friendly = translate('en', 'time.formats.friendly')
 
         available_locales.each do |locale|
diff --git a/config/locales/nb.yml b/config/locales/nb.yml
new file mode 100644 (file)
index 0000000..c40049e
--- /dev/null
@@ -0,0 +1,2 @@
+nb:
+  dummy: dummy