Copied to clipboard

Flag this post as spam?

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


  • Sebastiaan Janssen 4899 posts 14655 karma points MVP admin hq
    Jul 06, 2010 @ 16:31
    Sebastiaan Janssen
    0

    Ucomment: How do I translate "This field is required."

    Nowhere in the source code I can find the dictionary key for "This field is required". How can I translate this text? I gues when push comes to shove I could do a replace of the text with jQuery, but that's a bit icky.

  • Sebastiaan Janssen 4899 posts 14655 karma points MVP admin hq
    Jul 07, 2010 @ 09:01
    Sebastiaan Janssen
    0

    Anybody?

  • Sebastiaan Janssen 4899 posts 14655 karma points MVP admin hq
    Jul 07, 2010 @ 09:33
    Sebastiaan Janssen
    0

    Got it, UComments uses the a jquery plugin for form validation, I need to translate that file.

  • Sebastiaan Janssen 4899 posts 14655 karma points MVP admin hq
    Jul 07, 2010 @ 09:56
    Sebastiaan Janssen
    0

    More specifically, you can create custom error labels by inserting something like this:

    <label for="author" class="error">Error translation</label>

    I then style it something like this (note the "display: none;", this will hide the error until validation is in progress):

    label.error
    {
        color: Red;
        display: none;
        height:20px;
        width:160px;
    }

    Quite a nifty little framework this jQuery plugin is, you can customize a lot, nice!

  • 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