• Resolved axsl

    (@axsl)


    Hi!
    I started using TranslatePress (free version) and i can say that I’m very pleased for now. I haven’t tested it on the live site yet but i hope everything will be fine.
    But,there is a problem with the translation of some elements/text.
    When i try to translate a button text, the menu text is translated at the same time.
    I tried changing the element ID and class but nothing changes.
    Is there any other solution to this problem?

    Thanks in advance !

Viewing 4 replies - 1 through 4 (of 4 total)
  • Dragos

    (@dragosvrejiu)

    Hello,

    Thank you for your interest in our plugin!

    Our plugin translates everything string by string and saves the translation into your wp_trp* tables from the database.

    So if a word is translated once, it will be replaced everywhere it is found because it is basically seen as the same string.

    If you do not wish to translate the menu text for example,add the data-no-translation attribute and it will be excluded from translation.

    You can find more in our documentation:https://translatepress.com/docs/developers/exclude-certain-text-or-element-from-being-translated/

    With the best wishes,

    Thread Starter axsl

    (@axsl)

    Hello,
    I tried the instructions and yes, it excludes a certain text or element from being translated, but now menu has been translated into mixed languages.
    Thanks for reply.

    Dragos

    (@dragosvrejiu)

    As a workaround, you could add the class translation-block to your string and a whitespace character right after to diferentiate it from the first one.

    Here is an example on how to use the stated class:

    <div class=”translation-block”>

    Translate everything inside

    </div>

    And here you can find whitespace characters:https://en.wikipedia.org/wiki/Whitespace_character

    Try adding one to your word and see if this works in your situation.

    With the best wishes,

    Thread Starter axsl

    (@axsl)

    Hi!
    Yes, it works now.
    Thank you very much for your erffort and help.
    Great support , Cheers!

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

The topic ‘Translation problem’ is closed to new replies.