aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn/Localization.cs
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-04-05 21:57:09 -0400
committerlempamo <[email protected]>2017-04-05 21:57:09 -0400
commit07376e9ecd6687b2c4278661d0eaf3795d5124c3 (patch)
tree76c1d65a001044251162351de788ba242dfe56de /ShiftOS_TheReturn/Localization.cs
parentc8f7cd286327a70280a7db132e45943b44273235 (diff)
downloadshiftos_thereturn-07376e9ecd6687b2c4278661d0eaf3795d5124c3.tar.gz
shiftos_thereturn-07376e9ecd6687b2c4278661d0eaf3795d5124c3.tar.bz2
shiftos_thereturn-07376e9ecd6687b2c4278661d0eaf3795d5124c3.zip
language selection screen!
Diffstat (limited to 'ShiftOS_TheReturn/Localization.cs')
-rw-r--r--ShiftOS_TheReturn/Localization.cs14
1 files changed, 13 insertions, 1 deletions
diff --git a/ShiftOS_TheReturn/Localization.cs b/ShiftOS_TheReturn/Localization.cs
index de5e158..a9d24b8 100644
--- a/ShiftOS_TheReturn/Localization.cs
+++ b/ShiftOS_TheReturn/Localization.cs
@@ -37,6 +37,7 @@ namespace ShiftOS.Engine
{
List<string> GetJSONTranscripts();
void WriteDefaultTranscript();
+ void WriteTranscript();
string GetCurrentTranscript();
string[] GetAllLanguages();
}
@@ -44,6 +45,7 @@ namespace ShiftOS.Engine
public static class Localization
{
private static ILanguageProvider _provider = null;
+ private static string _languageid = null;
public static string[] GetAllLanguages()
{
@@ -67,7 +69,7 @@ namespace ShiftOS.Engine
}
else
{
- _provider.WriteDefaultTranscript();
+ _provider.WriteTranscript();
}
}
@@ -197,5 +199,15 @@ namespace ShiftOS.Engine
{
_provider = p;
}
+
+ public static void SetLanguageID(string id)
+ {
+ _languageid = id;
+ }
+
+ public static string GetLanguageID()
+ {
+ return _languageid;
+ }
}
}