Copied to clipboard

Flag this post as spam?

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


  • nicolas ruiz 74 posts 95 karma points
    Mar 27, 2012 @ 11:04
    nicolas ruiz
    0

    Forms Localization

    Hi there,

    I still can not find a way to use the U5 embedded dictionary to localize forms ErrorMessage texts...

    Here is the actual version, from a Model cs file.

    class myFormModel
    {
    [Required(ErrorMessage="First Name Required")] [StringLength(50, ErrorMessage = "First Name Too Long")] public string FirstName { get; set; }
    }

    I managed to gain access to Umbraco.GetDictionaryItem from here (Model file) but I can not use it directly in the decoration, in place of the hard-coded text. It should result in an compilation error (instanciation needed on a non-static blah blah) though I can use the 'GetDictionaryItem' in any get function (or, at least, no compilation error so far).

    Do I have to wait for Contour v5 or is there a way to get it work so I don't have to use MVC resources file ?

    Thanks,

    Nicolas.

  • 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