Mar 21, 2015 at 1:09 PM
Edited Mar 21, 2015 at 1:10 PM
In Orchard 1.7.2
I'm trying to use 'Catálogo' as title for a new taxonomy created by code:
TaxonomyPart taxonomy = _contentManager.New<TaxonomyPart>("Taxonomy");
taxonomy.Name = "Catálogo".ToString(CultureInfo.CurrentCulture);
taxonomy.Slug = _slugService.Slugify("Catalogo");
Problem is after storing the taxonomy I'm not able to retrieve the taxonomy by name. I always get null.
var taxonomy = _taxonomyService.GetTaxonomyByName("Catálogo".ToString(CultureInfo.CurrentCulture));
var taxonomy = _taxonomyService.GetTaxonomyByName("Catalogo");
I need to use accute accent to display the taxonomy in the correct way.
I'm aware of limitations of taxonomies for localization. But I thought it didn't have problems with monolanguage sites like this one I'm working on.