• Resolved gmcordeiro

    (@gmcordeiro)


    I have some questions regarding how translatepress works. The following could be a result of a bug or simply my ignorance about some settings. But firstly, thank you for such a great plugin. I’ve used two other translation methods previously and so far, this is the best.

    For a number of issues that we faced, I simply changed/deleted rows in the -dictionary- or -gettext- tables in the database and sorted things out. However, there is one issue that I simply cannot find a solution for:

    How to stop dynamically created strings from being automatically inserted into the ‘Original’ column of the ‘-dictionary-’ table?

    This is causing issues with downstream translations. In my case, I am referring mainly to dates. For example, when the date 20 May 2020 is created dynamically, it gets entered into the original column of the dictionary table. It does display the translation (20 Mai 2020) on the website fine the first time round. However, in subsequent displays of the date (after a page/section refresh), only the English string will appear because the plugin finds the date 20 May 2020 in the table but does not find a translation for it in the Translated column. Is there a way to stop the automatic database entry? I’m happy to meddle with the code – I just need to know where to look / what to edit.

    Note 1: I have used the settings found in the Advance tab for TranslatePress [Exclude strings from automatic translation and Exclude selectors from translation] but these have not helped.

    Note 2: In the provided link, it is necessary to follow the booking right through to the confirmation page, then make selections and view the date in the “Preisaufschlüsselung” section. Apologies that the page has to be in German otherwise the error does not show.

    • This topic was modified 4 years, 12 months ago by gmcordeiro.

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

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

    (@dragosvrejiu)

    Hello,

    Thank you for reaching out to us.

    Have you tried using the “Disable dynamic translation” setting?

    Let me know!

    With the best regards,

    Thread Starter gmcordeiro

    (@gmcordeiro)

    Thanks @dragosvrejiu for getting back.

    Yes, Disable dynamic translation was the first thing I tried before trying the other settings.

    I have now tried again multiple permutations of disabling dynamic translation and excluding translations using the different advanced settings. I’ve also inserted additional selectors into the code and tried removing those via the translatepress advanced settings to be very specific about targeting the right string. Before testing each new setting, I delete all relevant entries from the database. So far, nothing has worked to get the right result – it’s one of those situations where I might solve one thing but another problem then appears. Not sure what else to try or if I should just accept the mix of languages ??

    Dragos

    (@dragosvrejiu)

    Hello,

    Sorry for the late reply!

    Can you try using our data no translation attribute?https://translatepress.com/docs/developers/exclude-certain-text-or-element-from-being-translated/

    Let me know if this approach suits your needs.

    With the best regards,

    Thread Starter gmcordeiro

    (@gmcordeiro)

    Thanks @dragosvrejiu,

    No worries about the late reply – don’t think our accommodation booking site is going to get much use for a while with the current world situation. Will try out the suggestion and let you know.

    • This reply was modified 4 years, 11 months ago by gmcordeiro.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Stop automatic insertion of dynamic strings to database’ is closed to new replies.