[dasher: 71/217] Update AlphInfo.h



commit a1fe4a680029dac80ed582390483d0d57f2eb3cd
Author: sehtia <raghav500 gmail com>
Date:   Fri Oct 16 16:21:33 2015 -0700

    Update AlphInfo.h
    
    Added a LanguageCode field to abide to IETF format. Also added a getter method to retrieve the field.

 Src/DasherCore/Alphabet/AlphInfo.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/Src/DasherCore/Alphabet/AlphInfo.h b/Src/DasherCore/Alphabet/AlphInfo.h
index d971912..26dfbc5 100644
--- a/Src/DasherCore/Alphabet/AlphInfo.h
+++ b/Src/DasherCore/Alphabet/AlphInfo.h
@@ -80,6 +80,8 @@ public:
   const std::string &GetGameModeFile() const {return GameModeFile;}
 
   const std::string & GetPalette() const {return PreferredColours;}
+  
+  const std::string & GetLanguageCode() const {return LanguageCode;}
 
   symbol GetParagraphSymbol() const {return iParagraphCharacter;}
 
@@ -137,6 +139,7 @@ private:
   std::string TrainingFile;
   std::string GameModeFile;
   std::string PreferredColours;
+  std::string LanguageCode; //LanguageCode in IETF Format. https://en.wikipedia.org/wiki/IETF_language_tag
   Opts::AlphabetTypes Type;
   Opts::ScreenOrientations Orientation;
 


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