Make gloc load plugins lang files.

git-svn-id: http://redmine.rubyforge.org/svn/branches/work@1394 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2008-05-01 10:15:23 +00:00
parent e4d7a21c9e
commit ba4ea8e2fd

View File

@@ -78,7 +78,7 @@ module GLoc
end
def _get_lang_file_list(dir) #:nodoc:
dir= File.join(RAILS_ROOT,'lang') if dir.nil?
dir= File.join(RAILS_ROOT,'{.,vendor/plugins/*}','lang') if dir.nil?
Dir[File.join(dir,'*.{yaml,yml}')]
end