//Add/remove localization sources Configuration.Localization.Sources.Add( new DictionaryBasedLocalizationSource( "MultiTenant_MVC", new XmlEmbeddedFileLocalizationDictionaryProvider( Assembly.GetExecutingAssembly(), "FS.MultiTenant_MVC.Localization.MultiTenant_MVC" ) ) );
Properties for Core project: Assembly name: FS.MultiTenant_MVC.Core Default namespace: FS.MultiTenant_MVC
Localization folder has folder called MultiTenant_MVC with the xml files like: MultiTenant_MVC.xml, MultiTenant_MVC-de.xml etc.
Constants: namespace FS.MultiTenant_MVC { /// <summary> /// Some general constants for the application. /// </summary> public class MultiTenant_MVCConsts { public const string LocalizationSourceName = "MultiTenant_MVC"; } }
So everything here looks fine but I get this error when running the app and then view debug using F12: Could not find localization source: MultiTenant_MVC
I created the purchased product as: MultiTennant_MVC. Afterwards I changed all the names, namespaces etc. in Visual Studio to: MultiTenant_MVC First name was spelled incorrectly with 2 n’s.
Now the language translations are not done – everything is displayed with the [ ] brackets and always in english.
What should I change?