Parent

Files

Wx::Locale

Public Class Methods

get_system_encoding_name() click to toggle source

(Not documented)

# File wx/classes/locale.rb, line 7
    def get_system_encoding_name
      Wx::Font::ENCODING_NAMES[ get_system_encoding ]
    end
get_system_language_name() click to toggle source

(Not documented)

# File wx/classes/locale.rb, line 3
    def get_system_language_name
      get_language_name( get_system_language )
    end
set_locale(locale) click to toggle source

Set the current locale by a name, canonical name, or Wx::LANGUAGE_ constant; mainly here because it seems a bit strange in Ruby to have global side-effects in a constructor

# File wx/classes/locale.rb, line 14
    def set_locale(locale)
      if locale.kind_of?(Fixnum)
        new(locale)
      elsif locale.kind_of?(String) and lang_info = find_language_info(locale)
        new(lang_info.language)
      else
        raise ArgumentError, "Unknown language #{locale}"
      end
    end

Public Instance Methods

get_language_name() click to toggle source

(Not documented)

# File wx/classes/locale.rb, line 25
  def get_language_name
    self.class.get_language_name(get_language)
  end

Disabled; run with $DEBUG to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.