Displaying 2 results from an estimated 2 matches for "sys_lang".
Did you mean:
nls_lang
2007 Mar 17
1
newbie: wxruby on fedora5
...load at all to start with:
"load error: Wx"
but got things running by pasting the set up stuff from Wx.rb into the
demo file...haven''t had time to figure out why yet.
i copied over the copyright also, so now i''ve 2 in that file - lucky me.
The unicode sample fell over on
sys_lang
get_system_encoding_name
and the Tree control fell over on the constant
Blue
both probs seemed to be solved with begin/rescue blocks.
2006 Nov 26
0
[758] trunk/wxruby2: i18n support: added Locale class, methods for get/set languages & encodings
...lt;span class="lines">@@ -66,6 +66,14 @@
</span><span class="cx"> panel = Wx::Panel.new(self)
</span><span class="cx"> sizer = Wx::BoxSizer.new(Wx::VERTICAL)
</span><span class="cx">
</span><ins>+ sys_lang = Wx::Locale.get_system_language_name
+ text = Wx::StaticText.new(panel, -1, "System language: #{sys_lang}")
+ sizer.add(text, 0, Wx::ALL, 5)
+
+ sys_enc = Wx::Locale.get_system_encoding_name
+ text = Wx::StaticText.new(panel, -1, "System default encoding: #{sys_enc}"...