Umbraco 8 Dashboard Language files, programmatically
I have created a test dashboard, just to try it out, it appears but the language files does not seem to work, since the tab just says [alias-name]
I'm creating the dashboard programmatically with a cs file, and adding the language files etc. on the side.
But it does not appear to work.
My CS file:
[Weight(-10)]
public class TestDashboard : IDashboard
{
public string[] Sections => new[] { "content" };
public IAccessRule[] AccessRules => Array.Empty<IAccessRule>();
public string Alias => "TestCustomDashboard";
public string View => "/Business/Dashboards/Test/View/test.html";
}
Lang File Danish
<?xml version ="1.0" encoding="utf-8" standalone="yes"?>
<language alias="da" intName="Danish" localName="Dasnk" lcid="6" culture="da-DK">
<area alias="sections">
<key alias="TestCustomDashboard">Test mit specielle dashboard</key>
</area>
</language>
Umbraco 8 Dashboard Language files, programmatically
I have created a test dashboard, just to try it out, it appears but the language files does not seem to work, since the tab just says [alias-name]
I'm creating the dashboard programmatically with a cs file, and adding the language files etc. on the side. But it does not appear to work.
My CS file:
Lang File Danish
Lang File English
My View
The file structure:
I have read the documentation and viewed a briding course video on Umbraco.tv but have been unable to find the answers.
https://our.umbraco.com/documentation/Extending/Dashboards/#registering-with-c-type
Hi,
To localize a string use "localize" tag, like this:
Thanks,
Alex
In the bridging course video on Umbraco.tv it said i had to have lang files for the name on the tab.
Right now it just shows the alias.
Your language file is trying to set the alias for a section instead of a dashboard.
Try this instead:
See: https://our.umbraco.com/documentation/Extending/Dashboards/
That worked perfectly ^^ Thank you :D
is working on a reply...