• Resolved Per Alm

    (@per-alm)


    I’m interested in a translation to Swedish.
    It’s nice to be able to self-define the labels but as there are error messages only given in English the behavior can be a little bit confusing for the voters.
    If you want I can help you with the translation.

    https://wordpress.org/plugins/yop-poll/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author YOP

    (@yourownprogrammer)

    Hi Per Alm,

    Please specify the error messages you are referring to and we will tell you where in the code you can translate them.

    Best wishes,

    YOP Team

    Thread Starter Per Alm

    (@per-alm)

    The voting error messages, for ex:
    You have run out of votes!
    But there are severals.

    Regards,
    Per Alm

    Plugin Author YOP

    (@yourownprogrammer)

    Hey,

    To translate “You have run out of votes!” edit inc/yop_poll_model.php and in the register_vote function look up this line $this->error = __( 'You have run out of votes!', 'yop_poll' ); and change the message.

    You’ll find most of the error/success messages in the register_vote function.

    Let us know if you need more help.

    Regards,

    YOP Team

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Languages – Swedish’ is closed to new replies.