• Resolved selenaquintanilla

    (@selenaquintanilla)


    Hello,

    I’m using the TranslatePress plugin for my website and I’ve encountered an issue. When I’m on the frontend of my site and logged in, the top administration bar gets automatically translated based on the page’s language. However, I’d like the administration bar to remain in its default language at all times, as I don’t speak all the languages I’ve translated my site into.

    Is there a way to prevent the top administration bar from being automatically translated while keeping the rest of the site translated as intended?

    Thank you for your assistance!

    Ps : i tried this already :

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Anghel Emanuel

    (@anghelemanuel99)

    Hello there,

    Thank you for reaching us!

    When you are in backend of your website,the language you should see displayed should be French.

    Unfortunately,when you change the language with TranslatePress,the whole admin bar will get translated.

    As you said that you want to have it in default language because you are not a speaker of another language,you should browse on French instead of any other languages and leave it like that.

    If there`s anything else, please let me know!

    Kind Regards,

    Thread Starter selenaquintanilla

    (@selenaquintanilla)

    “As you said that you want to have it in default language because you are not a speaker of another language,you should browse on French instead of any other languages and leave it like that.”

    Sorry i was not clear for instance i don’t want my toolbar being translated when i browse in another language like italian as the screensot you can see here :

    Should i add a ‘data-no-translation’ somewhere?

    Thread Starter selenaquintanilla

    (@selenaquintanilla)

    I find myself in a bit of a pickle with an issue regarding the automatic translation of the WordPress admin bar, despite my earnest efforts to prevent it. I’ve been using TRP and it has been a charm for the most part, except for this little hiccup. I’m trying to exclude the admin bar from being translated, and even though I’ve specified numerous selectors, it keeps getting translated.

    Here’s a snippet from my HTML where the admin bar is rendered:

    htmlCopy code

    <div id="wpadminbar" class="nojq" data-no-translation=""> ... [rest of the code] <a class="ab-item" aria-haspopup="true" >exempmple</a> ... </div>

    As you can see, I’ve used data-no-translation="" to explicitly mark it for no translation. I’ve tried adding the following selectors to be excluded from translation:

    • #wpadminbar
    • .wpadminbar
    • #wp-toolbar
    • .wp-toolbar

    … and a few more variations. Yet, the translation persists. ??

    I cleared cache several times and tried different browsers to make sure it’s not a caching issue. I’ve also pored over the documentation and previous forum threads, but haven’t found a solution that clicks.

    Has anyone else faced a similar issue or could point me in a direction that might help me find a solution? Any insights or suggestions will be warmly welcomed!

    Thank you so much for taking the time to read my message, and I’m looking forward to any assistance you might offer! ??

    Wishing you all a day of smooth coding! ????

    Warm regards

    Thread Starter selenaquintanilla

    (@selenaquintanilla)

    Please any update soon after this trouble?

    Plugin Support Alex

    (@alexcozmoslabs)

    We need to take the pulse of this ticket. Is it still relevant?
    In the meantime, I set this ticket as Resolved. You can also change its status back to unresolved and let us know by replying to this topic if your request still needs attention.
    Another option is to leave this ticket as it is and open a new one where to mention the issue again and ask for support.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Preventing Automatic Translation of Top Administration Bar in TranslatePress’ is closed to new replies.