new module installation error
When i install my own module i get this error.
Unsupported language "pt-BR". If you want to support this language, please configure your application accordingly.
Hello Gadonski,
Have you enabled localization for your project ? If so can you send a screenshot of the languages settings and your ~/App_Data/Sitefinity/Configuration/resourcesConfig.config and elaborate some more about the module implementation you have.
Best wishes,
Ivan Dimitrov
the Telerik team
my resourcesConfig.config
I've got the same problem, my resources are defined as the following:
<
cultures
>
<
clear
/>
<
add
culture
=
"en-US"
uiCulture
=
"en"
key
=
"english-en-us"
/>
<
add
culture
=
"pt-BR"
uiCulture
=
"pt"
key
=
"portuguese-pt-br"
/>
<
add
culture
=
"es-ES"
uiCulture
=
"es"
key
=
"spanish-es-es"
/>
</
cultures
>
<
backendCultures
>
<
clear
/>
<
add
culture
=
"en-US"
uiCulture
=
"en"
key
=
"english-en-us"
/>
</
backendCultures
>
sf.DocumentLibrary().CreateNew().Do(lib =>
lib.Title = ModuleName; // ERROR
lib.UrlName = ModuleName;
);
Unsupported language "pt-BR". If you want to support this language, please configure your application accordingly.
System.Threading.Thread.CurrentThread.CurrentCulture =
System.Threading.Thread.CurrentThread.CurrentUICulture =
new
CultureInfo(
"en-US"
);
moduleNode.AvailableLanguages
Hi Bruno ,
This is bug in the module installation. The module is trying to get the culture from the server and this makes mismatch. The issue should be fixed for the forthcoming SP 1. Basically inside the Install method of the module you should set the CurrentUICulture to the default backend culture which you can get from the ResourceConfig
var cult = Config.Get<ResourcesConfig>().DefaultBackendCulture.UICulture;
All the best,
Ivan Dimitrov
the Telerik team
Hi Dev Team
I have the exact same issue.
How do i set the CurrentUICulture?
And when is the ETA of the SP1.
Thanks in advance.
Regards
Dave
Hello Bruno,
You can use
System.Threading.Thread.CurrentThread.CurrentUICulture to set the UICulture. SP1 should be released this week.
All the best,
Ivan Dimitrov
the Telerik team
I have installed new module in a new project but it is displayed in back-end ? with the same code I installed module in existing project and it worked.. Does it require extra setting? Any solutions
Thanks