From d540be333a1090dd6c17fbf8ece7156f91a487e8 Mon Sep 17 00:00:00 2001 From: rgarcia Date: Mon, 31 Oct 2016 11:45:14 +0100 Subject: [PATCH] Makes tolk aware of french and portuguese translations --- config/application.rb | 3 --- {doc => config}/locales/fr.yml | 0 doc/locales/pt-br.yml => config/locales/pt-BR.yml | 0 3 files changed, 3 deletions(-) rename {doc => config}/locales/fr.yml (100%) rename doc/locales/pt-br.yml => config/locales/pt-BR.yml (100%) diff --git a/config/application.rb b/config/application.rb index 8465f081a..ea799001e 100644 --- a/config/application.rb +++ b/config/application.rb @@ -23,9 +23,6 @@ module Consul config.i18n.available_locales = [:en, :es, :fr, 'pt-BR'] config.i18n.fallbacks = {'fr' => 'es', 'pt-br' => 'es'} - # Add the new directories to the locales load path - config.i18n.load_path += Dir[Rails.root.join('doc', 'locales', '*.yml')] - config.assets.paths << Rails.root.join("app", "assets", "fonts") # Do not swallow errors in after_commit/after_rollback callbacks. diff --git a/doc/locales/fr.yml b/config/locales/fr.yml similarity index 100% rename from doc/locales/fr.yml rename to config/locales/fr.yml diff --git a/doc/locales/pt-br.yml b/config/locales/pt-BR.yml similarity index 100% rename from doc/locales/pt-br.yml rename to config/locales/pt-BR.yml