Displaying 1 result from an estimated 1 matches for "lang_info".
Did you mean:
arg_info
2006 Nov 26
0
[758] trunk/wxruby2: i18n support: added Locale class, methods for get/set languages & encodings
...rent 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
+ 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
+ end
+
+ def get_language_name
+ self.class.get_language_name(get_language)
+ end
+end
</ins></span></pre></...