[gnome-boxes] installer: Strip encoding from language name



commit 0db4b68fbed2984e7e891628fa19575060e78ffc
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Fri Dec 28 20:29:08 2012 +0200

    installer: Strip encoding from language name
    
    The support for encodings in langauge/keyboard config will soon be
    dropped in libosinfo so better strip this already.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=690829

 src/unattended-installer.vala |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/unattended-installer.vala b/src/unattended-installer.vala
index 323641e..5b42143 100644
--- a/src/unattended-installer.vala
+++ b/src/unattended-installer.vala
@@ -716,9 +716,10 @@ private class Boxes.UnattendedInstaller: InstallerMedia {
             return media_langs_list.nth_data (0);
         }
 
-        debug ("No media language, using %s locale", system_langs[0]);
+        var lang = system_langs[0].replace (".utf8", "");
+        debug ("No media language, using %s locale", lang);
 
-        return system_langs[0];
+        return lang;
     }
 
     private void remove_disk_from_domain_config (Domain domain, string disk_path) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]