You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Defines the currently used language of the application. By itself, it does not update rendered views.
25
+
/// Loads all specified languages into global memory.
26
+
/// </summary>
27
+
/// <param name="applicationAssembly">Main application <see cref="Assembly"/>. You can use <see cref="Assembly.GetExecutingAssembly"/></param>
28
+
/// <param name="languagesCollection">A dictionary containing a key pair with the structure: <c>language_code</c> > <c>path_to_the_embedded_resource</c></param>
29
+
/// <param name="reload">If the file was previously loaded, it will be reloaded.</param>
/// Asynchronously loads all specified languages into global memory.
43
+
/// </summary>
44
+
/// <param name="applicationAssembly">Main application <see cref="Assembly"/>. You can use <see cref="Assembly.GetExecutingAssembly"/></param>
45
+
/// <param name="languagesCollection">A dictionary containing a key pair with the structure: <c>language_code</c> > <c>path_to_the_embedded_resource</c></param>
46
+
/// <param name="reload">If the file was previously loaded, it will be reloaded.</param>
/// Changes the currently used language, assuming that they have already been loaded using LoadLanguages.
101
+
/// </summary>
102
+
/// <param name="language">The language code to which you would like to assign the selected file. i.e: <i>pl_PL</i></param>
103
+
/// <returns><see langword="false"/> if the language could not be defined from the dictionary. <para>ATTENTION, the <see cref="TranslationStorage.CurrentLanguage"/> will be updated whether or not the language has been changed.</para></returns>
104
+
publicstaticboolSetLanguage(stringlanguage)
105
+
{
106
+
// We update the language even if we do not change it, because the user may not know what is not working.
/// Asynchronously changes the currently used language, assuming that they have already been loaded using LoadLanguages.
120
+
/// </summary>
121
+
/// <param name="language">The language code to which you would like to assign the selected file. i.e: <i>pl_PL</i></param>
122
+
/// <returns><see langword="false"/> if the language could not be defined from the dictionary. <para>ATTENTION, the <see cref="TranslationStorage.CurrentLanguage"/> will be updated whether or not the language has been changed.</para></returns>
0 commit comments