how to disable date translation
-
This is a continuation of a previous support request that had been marked resolved but was not resolved.
Overall, the plugin is working great. In my particular project, some portions of the site need to not be translated from English no matter which language is selected. I am able to achieve this successfully by excluding strings as well as adding codes to the template areas where necessary.
However, 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 class=”location”> Oslo
<li class=”date-posted”>
<time datetime=”2021-07-28″ data-no-translation=”” data-no-auto-translation=””>Posted on juli 28, 2021</time><li class=”job-id d-none”>JOB ID: 460
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?Thank you for your help.
- The topic ‘how to disable date translation’ is closed to new replies.