• Resolved GaylaGroom

    (@gaylagroom)


    I need to keep GTranslate from translating the post titles, since they are business names. It does not work to put the <span class=”notranslate”> code in the title – it stops translating but spews out code on the top of the post.

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author edo888

    (@edo888)

    Hi,

    I see you were able to edit the post title and place the notranslate properly. However inside the context I see you have placed it, but as text. You need to change the editor to HTML mode and edit the HTML and not do it from the visual text editor.

    For your specific case I would recommend to use our paid version where you can define skip phrases in your GTranslate dashboard and we will not translate them: https://gtranslate.io/#pricing

    Thanks! ??

    Thread Starter GaylaGroom

    (@gaylagroom)

    Of course I placed the notranslate property in the text (html) window. It doesn’t work for post titles. Apparently, if I don’t want a company’s name translated from “Creally” to “Crely” (???), I have to buy the paid version of GTranslate.

    Plugin Author edo888

    (@edo888)

    Hi,

    Not sure what you did, but you have the following in HTML source code:

    & lt;span class=& #8221;notranslate& #8221;& gt;Creally& lt;/span& gt;

    You need to have:

    <span class="notranslate">Creally</span>

    Thanks! ??

    • This reply was modified 2 years, 6 months ago by edo888.
    • This reply was modified 2 years, 6 months ago by edo888.
    • This reply was modified 2 years, 6 months ago by edo888.
    • This reply was modified 2 years, 6 months ago by edo888.
    Thread Starter GaylaGroom

    (@gaylagroom)

    You’re right that the in-text notranslate code had been pasted in the wrong window, but that had no effect on the translation of the post title. That is still a problem – GTranslate changes the post title (business name) Creally into Crely (in Spanish). If I put the notranslate code in the post title, I get the correct, untranslated Creally in Spanish, but I get the following code displayed at the top of the live page: Creally – SanPedroLaLaguna.tierra” /> Creally – SanPedroLaLaguna.tierra” />

    Plugin Author edo888

    (@edo888)

    I see you corrected some parts, but others are still wrong. If you do it properly as described in our documentation it will be fine.

    You just need to spend some time thinking about what you are doing wrong and you will make it.

    Thanks! ??

    Thread Starter GaylaGroom

    (@gaylagroom)

    I have thought about it, and I guess I’m just too dumb to understand what I’m doing wrong. Your telling me to quit being dumb and go figure it out myself – it’s so easy if I would just think – is not helpful. Why won’t you just tell me how can I keep a post title from being translated? Contacting GTranslate customer service was not helpful – they referred me to the forum. Searching the forum was not helpful – perhaps you can provide a link to the documentation you’re referring to that will tell me how to get a post title to skip translation using the free version.

    Plugin Author edo888

    (@edo888)

    Here you go: How to skip translations?

    Thanks! ??

    Thread Starter GaylaGroom

    (@gaylagroom)

    I have seen this documentation page, thank you. Option #1 is the only solution that works with the free version, and it doesn’t work with post titles, correct? From everything I’ve been able to discover, WordPress post titles allow very little in the way of code to be added to them, at least by non-programmers.

    As I said, if I put the notranslate code in the post title, I get the correct, untranslated post title (Creally) in Spanish, but I get the following code displayed at the top of the live page: Creally – SanPedroLaLaguna.tierra” /> Creally – SanPedroLaLaguna.tierra” />

    I don’t suppose there’s a way for non-programmers to avoid this problem with the free version?

    Plugin Author edo888

    (@edo888)

    It works for any HTML tag, it doesn’t matter if it is post title or anything else. You are just using it wrong. Your actions should change the HTML source code to have notrnaslate wrapper around the text you do not want to be translated.

    I do not know what exactly you do, but it seems that you place the HTML code somewhere in admin interface which is not expecting to have HTML code present and it gets messed up.

    You need to edit in HTML mode or change your theme to have the proper code in the HTML.

    Thanks! ??

    Thread Starter GaylaGroom

    (@gaylagroom)

    The “admin interface which is not expecting to have HTML code present” is the post title field. Maybe go try typing the span code in your own WordPress post and see how well it works. Anyway, it’s clear to me that non-programmers cannot skip translation in post titles with the free version of GTranslate. Somebody feel free to prove me wrong.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Skip Translation for Post Titles’ is closed to new replies.