• Resolved metisdreams

    (@metisdreams)


    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.

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

    (@metisdreams)

    Quick follow-up, I managed to change all the month names using LocoTranslate but had to do it in the WordPress core PO files, so am hoping I can figure out to make sure it moves them to a different location. But at least its solved. Maybe this is why they could not be overwritten by the TranslatePress excluded strings? Either way, it works now.

    Hi,

    Thank you for rewriting the issue here.

    Please go to the Advanced Tab and search for Date Format and input there the different date-format you want to show to the other languages.
    Here is the list with all supported date formats:
    https://www.php.net/manual/en/datetime.format.php

    Please let us know if this fixes the issue.

    Cheers,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to disable date translation’ is closed to new replies.