Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugal-tweak.git;a=commitdiff;h=e8551ab839987a1e59fe142afbb3af64f0b7af07

commit e8551ab839987a1e59fe142afbb3af64f0b7af07
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Fri Sep 10 14:32:53 2010 +0000

*find the locale system

diff --git a/frugal-mono-tools/ConfSystem.cs b/frugal-mono-tools/ConfSystem.cs
index e931e02..c495fe3 100644
--- a/frugal-mono-tools/ConfSystem.cs
+++ b/frugal-mono-tools/ConfSystem.cs
@@ -16,7 +16,9 @@
//  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 
USA.
//  */
using System;
-using System.IO;
+using System.IO;
+using System.Collections;
+using System.Collections.Generic;
namespace frugalmonotools
{
public class ConfSystem
@@ -27,6 +29,7 @@ namespace frugalmonotools
private string _hostname;
private string _locale;
private string _distribution; //can't change it
+               public List<string>  LocaleSystem = new List<string>();
public string GetHostname()
{
return _hostname;
@@ -55,6 +58,16 @@ namespace frugalmonotools
{
this.SetHostname(Outils.ReadFile(cch_hostname).ToString().Replace("\n",""));
this._distribution=Outils.ReadFile(cch_release).ToString().Replace("\n","");
+                       _findLocaleSystem();
+               }
+               private void _findLocaleSystem()
+               {
+                       string output = Outils.getoutput("locale -a");
+                       string[] locales = output.Split('\n');
+                       foreach(string locale in locales)
+                       {
+                               LocaleSystem.Add(locale);
+                       }
}
public void Save()
{
diff --git a/frugal-mono-tools/gtk-gui/MainWindow.cs 
b/frugal-mono-tools/gtk-gui/MainWindow.cs
index 2c5b94a..ddd9f23 100644
--- a/frugal-mono-tools/gtk-gui/MainWindow.cs
+++ b/frugal-mono-tools/gtk-gui/MainWindow.cs
@@ -317,7 +317,7 @@ public partial class MainWindow
this.ONG_principal = new global::Gtk.Notebook ();
this.ONG_principal.CanFocus = true;
this.ONG_principal.Name = "ONG_principal";
-               this.ONG_principal.CurrentPage = 2;
+               this.ONG_principal.CurrentPage = 3;
// Container child ONG_principal.Gtk.Notebook+NotebookChild
this.vbox4 = new global::Gtk.VBox ();
this.vbox4.Name = "vbox4";
diff --git a/frugal-mono-tools/gtk-gui/gui.stetic 
b/frugal-mono-tools/gtk-gui/gui.stetic
index eb303e3..4ab7b76 100644
--- a/frugal-mono-tools/gtk-gui/gui.stetic
+++ b/frugal-mono-tools/gtk-gui/gui.stetic
@@ -27,7 +27,7 @@
<widget class="Gtk.Notebook" id="ONG_principal">
<property name="MemberName" />
<property name="CanFocus">True</property>
-        <property name="CurrentPage">2</property>
+        <property name="CurrentPage">3</property>
<child>
<widget class="Gtk.VBox" id="vbox4">
<property name="MemberName" />
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to