Project

General

Profile

« Previous | Next » 

Revision 45139df9

Added by Marc Dequènes over 14 years ago

  • ID 45139df9038a35cad76201f266bd303abb5eaaf3

[fix] fixed listing avalaible languages

View differences:

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

Also available in: Unified diff