Project

General

Profile

« Previous | Next » 

Revision 45139df9

Added by Marc Dequènes over 11 years ago

  • ID 45139df9038a35cad76201f266bd303abb5eaaf3

[fix] fixed listing avalaible languages

View differences:

lib/cyborghood/language.rb
30 30
    end
31 31

  
32 32
    def available_languages
33
      list = ['en'] + Dir.new(Config::L10N_DIR).select{|d| p d; File.directory?(d) and d[0..0] != "." }
33
      list = ['en'] + Dir.new(Config::L10N_DIR).select{|d| File.directory?(File.join(Config::L10N_DIR, d)) and d[0..0] != "." }
34 34
      # local admin can restrict available languages
35 35
      # (may be useful if l10n is partial due to third party plugins)
36 36
      list = list & @config.i18n.restricted_language_set if @config.i18n.restricted_language_set

Also available in: Unified diff