We are using Asp.net Zero v 5.1 and localization isn't working properly. I'm getting the following output from ASP.NET Core Web Server, despite the fact that <text> elements are present for all over them in Evsuite.Admin.Core\Localization\Admin\Admin.xml :
Evsuite.Admin.Web.Mvc> [14:11:31 WRN] Can not find 'Tenants' in localization source 'Admin'! Evsuite.Admin.Web.Mvc> [14:11:31 WRN] Can not find 'Editions' in localization source 'Admin'! Evsuite.Admin.Web.Mvc> [14:11:31 WRN] Can not find 'Dashboard' in localization source 'Admin'! Evsuite.Admin.Web.Mvc> [14:11:31 WRN] Can not find 'Administration' in localization source 'Admin'! Evsuite.Admin.Web.Mvc> [14:11:31 WRN] Can not find 'OrganizationUnits' in localization source 'Admin'! Evsuite.Admin.Web.Mvc> [14:11:31 WRN] Can not find 'Roles' in localization source 'Admin'! Evsuite.Admin.Web.Mvc> [14:11:31 WRN] Can not find 'Users' in localization source 'Admin'! Evsuite.Admin.Web.Mvc> [14:11:31 WRN] Can not find 'Languages' in localization source 'Admin'! Evsuite.Admin.Web.Mvc> [14:11:31 WRN] Can not find 'AuditLogs' in localization source 'Admin'! Evsuite.Admin.Web.Mvc> [14:11:31 WRN] Can not find 'Maintenance' in localization source 'Admin'! Evsuite.Admin.Web.Mvc> [14:11:31 WRN] Can not find 'Subscription' in localization source 'Admin'! Evsuite.Admin.Web.Mvc> [14:11:31 WRN] Can not find 'VisualSettings' in localization source 'Admin'! Evsuite.Admin.Web.Mvc> [14:11:31 WRN] Can not find 'Settings' in localization source 'Admin'! Evsuite.Admin.Web.Mvc> [14:11:31 WRN] Can not find 'DemoUiComponents' in localization source 'Admin'!
What do I need to do for the text values for the localization keys to render correctly?
3 Answer(s)
-
0
- Did you mark your XML file as embedded resource?
- Do any of the translations in that file work at all?
- Can you show the definition for one of those keys?
- Did you restart your web server?
-
0
I changed the file to an embedded resource and that solved the problem. Since that was a file that was generated as part of my default project, it never occured to me that I would have to modify it's build properties. Anyway, thanks for the help, glad that's working now :)
-
0
That's great :)