Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter metisdreams

    (@metisdreams)

    Quick follow-up, I was sort of able to get it to work by using Loco Translate (for only 2 examples that were being auto-translated) but it seems like the Disable Automatic Translation plugin doesn’t do anything, nor does the disable automatic translation settings in the TranslatePress plugin. Is there something else I should be doing or do I have to use Loco Translate and the gettext strings for every single word in Norwegian that might occur? The plan for this particular website is to only have the header and footer areas translated and the main content area of the site to be always in English. Please advise. Thanks.

    Plugin Support Alex

    (@alexcozmoslabs)

    Hi,

    What exactly do you want to achieve? Do you want that to don’t translate the string generated by WP Job Manager plugin? You can try to exclude the domain of the plugin from being processed using the Exclude Gettext strings from translation feature from TP Settings –> Advanced tab.
    Here you can find how to find the name of the domain: https://codex.www.ads-software.com/I18n_for_WordPress_Developers#Text_Domains

    Also, if you use automatic translation you can exclude the HTML selectors of these strings which will exclude the strings entirely from being processed y the automatic engine (Exclude selectors only from automatic translation feature from TP Settings –> Advanced tab).

    Thread Starter metisdreams

    (@metisdreams)

    What we want to achieve is that only the headers and footers and a very few pages have both languages displayed. The content in the main area of the page (which was indicated by the html selector ID in the Exclude Gettext strings along with the WP Job Manager plugin domain) is still being translated. The auto-translate setting was not enabled and it is still auto-translating. So, I was asking if there are other settings I need to enable in order to stop it from doing this.

    Thread Starter metisdreams

    (@metisdreams)

    Here is an example of something that I do not want translated and it continues to be translated – I added the selectors via the Advanced Settings. It is the months in the <time datetime> that continue to be translated to Norwegian:

    <ul class="job-listing-meta meta" data-no-translation="" data-no-auto-translation="">
      <li class="job-type full-time">Full Time</li>
      <li class="location"> <a class="google_map_link" href="https://maps.google.com/maps?q=Oslo&zoom=14&size=512x512&maptype=roadmap&sensor=false">Oslo</a> </li>
      <li class="date-posted">
        <time datetime="2021-07-28" data-no-translation="" data-no-auto-translation="">Posted on juli 28, 2021</time>
      </li>
      <li class="job-id d-none"><strong>JOB ID:</strong> 460 </li>
    </ul>
    

    I also added the function to exclude it using your suggested code: https://translatepress.com/docs/developers/exclude-certain-text-or-element-from-being-translated/ and that did not work.

    Is there something else I need to do?

    Plugin Support Alex

    (@alexcozmoslabs)

    Hi,

    If you want to exclude from being processed you need to exclude using the
    Exclude from dynamic translation or Exclude selectors from translation options from the Advanced tab. Try to exclude the .job-listing-meta class and see if it make the difference.

    Plugin Support Alex

    (@alexcozmoslabs)

    Since more than 5 days have passed since you received instructions about the opened topic, and you did not return with an update, we will mark this ticket as successfully resolved.
    If you have other questions regarding TranslatePress, we recommend you create another ticket.

    Thread Starter metisdreams

    (@metisdreams)

    Sorry, was out of the office for a few days. Excluding the .job-listing-meta class from translation options did not work. Both regular translation and dynamic. Everything else has been really good with this plugin. This seems to be the only thing and its hard to determine if the <time datetime> element is being considered part of a plugin, a theme or neither as it does not show up in LocoTranslate either.

    Thread Starter metisdreams

    (@metisdreams)

    This ticket was not successfully resolved.

    Plugin Support Alex

    (@alexcozmoslabs)

    Hi,

    Please, contact us by opening a ticket on https://translatepress.com/support/ where to specify your issue and that you already connected us on the free forum.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘disable automatic translation not working’ is closed to new replies.