mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#18953: Registering new culture when added through command line
Work Item: 18953 --HG-- branch : 1.x
This commit is contained in:
@@ -39,6 +39,8 @@ namespace Orchard.Localization.Commands {
|
||||
Context.Output.WriteLine(T("Supplied culture name {0} is not valid.", cultureName));
|
||||
return;
|
||||
}
|
||||
|
||||
_cultureManager.AddCulture(cultureName);
|
||||
_orchardServices.WorkContext.CurrentSite.SiteCulture = cultureName;
|
||||
|
||||
Context.Output.WriteLine(T("Site culture set to {0} successfully", cultureName));
|
||||
|
Reference in New Issue
Block a user