WordPress.org

Ready to get started?Download WordPress

Forums

Usernoise modal feedback / contact form
[resolved] Some strings are not translating (14 posts)

  1. John
    Member
    Posted 1 year ago #

    Everything seems to work fine with language files but can't get the 4 options with icons (Idea, Question, Problem, Praise) to be translated. I edited the corresponding .po file but can't get it to work. All other words are correct, but most of them are defined in settings.

    Any ideas?

    http://wordpress.org/extend/plugins/usernoise/

  2. karevn
    Member
    Posted 1 year ago #

    Can you please tell what language are you using? I'll check it then.

    To fix the problem after installing Usernoise, you'll need a Pro version (it has built in category editor) or manually modify wp_terms table - it usually is pretty small and does not take long to edit.

  3. John
    Member
    Posted 1 year ago #

    Language is French.
    Thanks for this but I don't know what you mean by this table - is that part of your plugin or WP?

  4. John
    Member
    Posted 1 year ago #

    OK, found the table with the strings, but what do you suggest here - change the name directly in there...?

  5. karevn
    Member
    Posted 1 year ago #

    That table is a standard WP table, and it is used by Usernoise and others. But it is OK to change those values there.

  6. John
    Member
    Posted 1 year ago #

    OK, thanks will do.
    But it would be much better, if possible, to add those strings in translation .po files.

    Thanks a lot.

  7. ghalleb
    Member
    Posted 1 year ago #

    In fact those fields don't use the wordpress translation mechanism

    In _inc/form.php line 14,

    change
    esc_html($tag->name)
    for
    echo esc_html(__($tag->name, 'usernoise'))

  8. John
    Member
    Posted 1 year ago #

    Doesn't seem to work either for me...
    But I leave this up to the author to decide.

  9. karevn
    Member
    Posted 1 year ago #

    Guys, these strings ARE in .po files. There just were a version that did not use it correctly, so you have wrong values already written into the database.

  10. ghalleb
    Member
    Posted 1 year ago #

    For my part I need to use WordPress translation mechanism (and not the values in the database) because my site is not only in one language.
    That's why changing the values in the database is not a solution.

    So I don't touch value in the table wp_terms and I translate them with __($exp).

    But for a WordPress installation only in one language, my solution may be overkill...

  11. John
    Member
    Posted 1 year ago #

    I have installed only a single version - the latest, about 4 days ago when I posted this message. I found those strings in .po files, translated them but they don't display. Only those ones, all others work correctly.

  12. ghalleb
    Member
    Posted 1 year ago #

    For you it will be easier:

    Go in the database, table wp_terms

    search for slug idea, question, problem, praise and modify the name column to whatever you need

  13. John
    Member
    Posted 1 year ago #

    Right, I already did so and it works. But I just wonder what will happen during the next update.

  14. dhunink
    Member
    Posted 1 year ago #

    I still see untranslated stuff, in the e-mail that's being send out to users when a feedback is approved.
    While all the other stuff is showing in my language (Dutch), this e-mail text isn't.

    I noticed the string isn't in the PO file:
    "Your Feedback %title% has been published by %admin_user%"
    "Thanks for your feedback"
    "You can view it at %link%"

    Where the last link is also wrong by the way, it links to the main website instead of the feedback item.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.