Copied to clipboard

Flag this post as spam?

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


  • Sébastien Richer 194 posts 429 karma points
    Jan 04, 2013 @ 21:15
    Sébastien Richer
    0

    New label localizations on package install for application

    I'm creating this package, and in it I have an application, a new section... To label it approprietaly, I went and added in : umbraco\config\lang\fr.xml and en.xml my labels:

    <area alias="sections">
        <key alias="content"><![CDATA[Contenu]]></key>
        <key alias="myNewSection"><![CDATA[My new section]]></key>

    Is there a way to do this through package installation actions? Or do I have to do this in my c# code that runs withe the package installation?

    Thanks!

    Seb

  • Richard Soeteman 3875 posts 12037 karma points MVP
    Jan 05, 2013 @ 05:49
    Richard Soeteman
    100

    Hi Seb,

    Ues you can use a Package action. It's in the Package action contrib dll  http://our.umbraco.org/projects/backoffice-extensions/package-actions-contrib check the documentation for AddLanguageFileKey how to use it.

    Hope this helps,

    Richard

  • Sébastien Richer 194 posts 429 karma points
    Jan 05, 2013 @ 09:22
    Sébastien Richer
    0

    Exactly what I needed! I'll give it a try on monday, thanks!

  • Sébastien Richer 194 posts 429 karma points
    Jan 07, 2013 @ 16:56
    Sébastien Richer
    0

    Thanks Richard, I included AddLanguageFileKey.cs in my package DLL, renamed and added the actions, works perfectly!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies