[dasher: 73/217] Update AlphIO.cpp



commit 7a7121a160489a87396a8789408644cc0db46226
Author: sehtia <raghav500 gmail com>
Date:   Fri Oct 16 16:45:01 2015 -0700

    Update AlphIO.cpp
    
    Added appropriate default for LanguageCode (In IETF format) along with the respective xml condition.

 Src/DasherCore/Alphabet/AlphIO.cpp |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/Src/DasherCore/Alphabet/AlphIO.cpp b/Src/DasherCore/Alphabet/AlphIO.cpp
index b8e1071..9b6cb3a 100644
--- a/Src/DasherCore/Alphabet/AlphIO.cpp
+++ b/Src/DasherCore/Alphabet/AlphIO.cpp
@@ -99,6 +99,7 @@ CAlphInfo *CAlphIO::CreateDefault() {
   Default.Mutable = false;
   Default.TrainingFile = "training_english_GB.txt";
   Default.GameModeFile = "gamemode_english_GB.txt";
+  Default.LanguageCode = "en-GB"
   Default.PreferredColours = "Default";
   std::string Chars = "abcdefghijklmnopqrstuvwxyz";
 
@@ -393,6 +394,11 @@ void CAlphIO::XmlEndHandler(const XML_Char *name) {
     InputInfo->TrainingFile = CData;
     return;
   }
+  
+  if(strcmp(name, "langcode") == 0) {
+    InputInfo->LanguageCode = CData;
+    return;
+  }
 
   if(strcmp(name, "gamemode") == 0) {
     InputInfo->GameModeFile = CData;


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