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 430 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 4049 posts 12922 karma points MVP 2x
    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 430 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 430 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!

Please Sign in or register to post replies

Write your reply to:

Draft