Permalink
Browse files

Fixed bug.

  • Loading branch information...
1 parent 4bd1452 commit b0e428698b12f8cef591280e46d26c7dc3e71dbb @clemens committed Dec 3, 2008
Showing with 2 additions and 1 deletion.
  1. +1 −1 app/helpers/application_helper.rb
  2. +1 −0 config/environment.rb
@@ -2,7 +2,7 @@
module ApplicationHelper
def show_locale_files
output = ''
- @locale_files.sort.each do |locale_file|
+ Dir["#{LOCALES_DIRECTORY}#{I18n.locale}.{rb,yml}"].sort.each do |locale_file|
output << "\n#{locale_file.sub(RAILS_ROOT + "/", "")}:\n\n"
counter, lineWidth = 1, 80
lines = *open(locale_file).map(&:rstrip).each do |line|
@@ -70,5 +70,6 @@
LOCALES_DIRECTORY = "#{RAILS_ROOT}/config/locales/"
LOCALES_AVAILABLE = Dir["#{LOCALES_DIRECTORY}/*.{rb,yml}"].collect do |locale_file|
+ I18n.load_path << locale_file
File.basename(File.basename(locale_file, ".rb"), ".yml")
end.uniq.sort

0 comments on commit b0e4286

Please sign in to comment.