Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • SaphuA 124 posts 87 karma points
    Oct 18, 2009 @ 17:25
    SaphuA
    0

    Custom section header

    Hi,

    I've used the following query to add a custom section to Umbraco:

     

    INSERT INTO

     

     

    [umbracoApp] ([appAlias], [sortOrder], [appIcon], [appName], [appInitWithTreeAlias]) VALUES (N'stats', 9, N'.traystats', N'Statistics', NULL

    )

    INSERT INTO

     

     

    [umbracoAppTree] ([appAlias], [treeAlias], [treeSilent], [treeInitialize], [treeSortOrder], [treeTitle], [treeIconClosed], [treeIconOpen], [treeHandlerAssembly], [treeHandlerType]) VALUES (N'stats', N'stats', 0, 1, 0, N'Statistics', N'folder.gif', N'folder_o.gif', N'Yoroshii.Umbraco.Stats', N'StatsTree'

    )

    However, the header is displayed as [stats], but I want it to show Statistics. How can I fix this?

    Screenshot here:

    http://www.saphua.com/temp/stats.jpg

  • Simon Justesen 436 posts 203 karma points
    Oct 18, 2009 @ 17:37
    Simon Justesen
    0

    It's because there are no translation for your new custom sections, so you need to add a 'stats'-key to the translation-files found in /umbraco/config/lang/

  • أشرف صبري 1 post 71 karma points
    Dec 02, 2015 @ 16:17
    أشرف صبري
    0

    Thanks for your reply. This was a very annoying problem to me.

  • SaphuA 124 posts 87 karma points
    Oct 18, 2009 @ 20:22
    SaphuA
    0

    Thanks for your reply, but unfortunatly that didn't work.

    I added both 'stats' and '[stats]' to the <area alias="sections"> node, but without succes.

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Oct 18, 2009 @ 23:49
    Aaron Powell
    1

    Did you ensure that the application restarted? I can't remember if the language file is cached or not.

  • SaphuA 124 posts 87 karma points
    Oct 20, 2009 @ 17:48
    SaphuA
    0

    Ah that worked, thanks!

    Marked Simon's post as answer, but if someone can give Slace a vote as well it would be appreciated.

Please Sign in or register to post replies

Write your reply to:

Draft