]> git.openstreetmap.org Git - rails.git/commitdiff
I moved Potlatch's locales but didn't update this, which broke all i18n
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Wed, 23 Sep 2009 23:34:43 +0000 (23:34 +0000)
committerÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Wed, 23 Sep 2009 23:34:43 +0000 (23:34 +0000)
app/controllers/amf_controller.rb

index 0439ed710f7c4a5a353e1fdd787173d0277e5ed6..86ca3f5fbe193250a301cbb810d68b6b9d5d7862 100644 (file)
@@ -883,7 +883,7 @@ class AmfController < ApplicationController
   end
 
   def getlocales
-    Dir.glob("#{RAILS_ROOT}/config/potlatch/localised/*").collect { |f| File.basename(f) }
+    Dir.glob("#{RAILS_ROOT}/config/potlatch/locales/*").collect { |f| File.basename(f, ".yml") }
   end
   
   ##