WordPress.org

Ready to get started?Download WordPress

Forums

WP-Polls
[resolved] Translation not working in frontend (9 posts)

  1. dway
    Member
    Posted 3 years ago #

    Hi !

    The translation (in french for me) is not working in the widget : I see "Total Voters" instead of the translation.

    Same is happening in the archive page, everything is in english instead of french.

    Note that all the admin part is correctly tranlated in french :)

    Thx for your time !

  2. Lester Chan
    Member
    Plugin Author

    Posted 3 years ago #

    restore all templates to default in WP-Admin -> Polls -> Templates

  3. dway
    Member
    Posted 3 years ago #

    Thx lester Chan !
    Should have found that alone sorry...
    But if I understand right, it means the polls are all set to one language only, and if I use a multilangual website, it will show only the language set in the templates ?

    Thx for your time !

  4. Lester Chan
    Member
    Plugin Author

    Posted 3 years ago #

    Yeap, unfortunately.

  5. dway
    Member
    Posted 3 years ago #

    well that's ok. I'm thinking : is there any way to change the way the plugin is finding the current language ? I think you use the WP_LANG global to know about it, could you tell me if I could modify (and where) the plugin to take advantage of another global variable I set to the right language ?
    Thx for your time, for your plugin and your reactivity !
    dway.

  6. Lester Chan
    Member
    Plugin Author

    Posted 3 years ago #

    Yeap, I don't "find" the language, I just make use of what is set in WordPress. so it is the use of global language variable

  7. dway
    Member
    Posted 3 years ago #

    Ok thx :)
    Could you tell me where in your code you get this info ? So I will adapt it for some tests. I mean I suppose that you get the info once and then use some var to be used all over your code. Thx !

  8. Lester Chan
    Member
    Plugin Author

    Posted 3 years ago #

  9. dway
    Member
    Posted 3 years ago #

    :) ok thx

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags