[gcompris/gcomprixogoo] Added support for Asturian language.



commit fa0fc2820495ea2b3c1c0846c9cd9e12045f60de
Author: Bruno Coudoin <bruno coudoin free fr>
Date:   Wed Mar 10 00:14:02 2010 +0100

    Added support for Asturian language.

 boards/flags/ast.svgz |  Bin 0 -> 3030 bytes
 src/gcompris/config.c |    6 ++++++
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/boards/flags/ast.svgz b/boards/flags/ast.svgz
new file mode 100644
index 0000000..86a84e6
Binary files /dev/null and b/boards/flags/ast.svgz differ
diff --git a/src/gcompris/config.c b/src/gcompris/config.c
index 29e1c49..6082e4c 100644
--- a/src/gcompris/config.c
+++ b/src/gcompris/config.c
@@ -60,6 +60,7 @@ static gchar *linguas[] = {
   "af_ZA.UTF-8", 	N_("Afrikaans"),
   "am_ET.UTF-8", 	N_("Amharic"),
   "ar_AE.UTF-8", 	N_("Arabic"),
+  "ast_ES.UTF-8", 	N_("Asturian"),
   "az_AZ.UTF-8", 	N_("Turkish (Azerbaijan)"),
   "bg_BG.UTF-8",	N_("Bulgarian"),
   "br_FR.UTF-8",	N_("Breton"),
@@ -560,6 +561,11 @@ set_locale_flag(gchar *locale)
     filename = gc_file_find_absolute("flags/%.2s.svgz", locale);
   }
 
+  /* Not found, Try now with the short long locale name */
+  if(!filename) {
+    filename = gc_file_find_absolute("flags/%.3s.svgz", locale);
+  }
+
   if(filename)
     {
       RsvgHandle *svg_handle;



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