Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmoud Nouraei committed Aug 31, 2020
1 parent e932806 commit 722af06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public void ProcessRequest(HttpContext context)
{
//START dnnsoftware.ir
//Localization.SetThreadCultures(new CultureInfo(Language), _portalSettings);
Localization.Localization.SetThreadCultures(DotNetNuke.Services.Localization.Persian.PersianController.NewCultureInfo(Language), _portalSettings);
Localization.SetThreadCultures(DotNetNuke.Services.Localization.Persian.PersianController.NewCultureInfo(Language), _portalSettings);
//END dnnsoftware.ir
Localization.SetLanguage(Language);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public static CultureInfo NewCultureInfo(CultureInfo cultureInfo)
if (cultureInfo.Name.StartsWith("ar-"))
{
//START Persian-DnnSoftware
CultureInfo GregorianCultureInfo = GetGregorianCultureInfo(cultureInfo);
CultureInfo GregorianCultureInfo = GetGregorianCultureInfo(cultureInfo.Name);
//END Persian-DnnSoftware
return GregorianCultureInfo;
}
Expand Down

0 comments on commit 722af06

Please sign in to comment.