diff --git a/AssemblyVersion.cs b/AssemblyVersion.cs index eb9d4fd..5e81be6 100644 --- a/AssemblyVersion.cs +++ b/AssemblyVersion.cs @@ -16,5 +16,5 @@ using System.Reflection; // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("3.0.0.345")] -[assembly: AssemblyFileVersion("3.0.0.345")] +[assembly: AssemblyVersion("3.0.0.346")] +[assembly: AssemblyFileVersion("3.0.0.346")] diff --git a/Core/Host.cs b/Core/Host.cs index ed46439..b15b935 100644 --- a/Core/Host.cs +++ b/Core/Host.cs @@ -619,6 +619,16 @@ namespace ScrewTurn.Wiki { Log.LogEntry(message, t, name); } + /// + /// Changes the language of the current user. + /// + /// The language code. + public void ChangeCurrentUserLanguage(string language) { + int timezone = Preferences.LoadTimezoneFromCookie() ?? Settings.DefaultTimezone; + if(SessionFacade.LoginKey == null) Preferences.SavePreferencesInCookie(language, timezone); + else Preferences.SavePreferencesInUserData(language, timezone); + } + /// /// Aligns a Date and Time object to the User's Time Zone preferences. /// diff --git a/Documentation.shfb b/Documentation.shfb index 8712cb3..eb597ca 100644 --- a/Documentation.shfb +++ b/Documentation.shfb @@ -37,7 +37,7 @@ False 2.0.50727 False - True + False False ScrewTurn Wiki Developer's Documentation diff --git a/Help/ScrewTurnWiki.chm b/Help/ScrewTurnWiki.chm index 6fb5efa..6284cdf 100644 Binary files a/Help/ScrewTurnWiki.chm and b/Help/ScrewTurnWiki.chm differ diff --git a/PluginFramework/IHost.cs b/PluginFramework/IHost.cs index b38b33a..f72972d 100644 --- a/PluginFramework/IHost.cs +++ b/PluginFramework/IHost.cs @@ -282,6 +282,12 @@ namespace ScrewTurn.Wiki.PluginFramework { /// If is empty. void LogEntry(string message, LogEntryType entryType, string user, object caller); + /// + /// Changes the language of the current user. + /// + /// The language code. + void ChangeCurrentUserLanguage(string language); + /// /// Aligns a Date and Time object to the User's Time Zone preferences. ///