• Resolved heveraert

    (@heveraert)


    Dear Helper,

    I am very fond of the easy to use Translatepress in combination with Elementor.

    Since it is the first time, I had to learn & did not add ‘Exclude strings from translations’ in the very beginning.
    I did it later but it seems not to work.

    I excluded (in TRANSLATEPRESS > ADVANCED)
    1. Exclude selector ‘#donottranslate’ that I have put in some dynamic fields (css class = donottranslate)
    2. Do not translate certain paths & exclude the uploads media path by ‘/wp-content/uploads/*’
    3. Exclude translation of the plugins/themes by installing ‘TranslatePress – Disable Gettext Translation’. I do not want to have the plugins translated.

    To test 1. & 2., I deleted all records of the media ‘/wp-content/uploads/*.jpg’ records in trp_dictionary_ & trp_original_strings.
    So far so good, but when I enter the website the media records are added in trp_dictionary_ & trp_original_strings again, as well as the #donottranslate fields.
    What can be the cause?
    For 3. What do I need to do so that the plugin does its work? trp_gettext… do still have all the plugin translate records.

    Does it harm to delete in all databases (trp_dictionay, trp_gettext, trp_original) the records with status = 0?

    Hope this is clear.
    Regards,
    Hilde

    • This topic was modified 2 years, 6 months ago by heveraert.
Viewing 3 replies - 1 through 3 (of 3 total)
  • had the same problem. i wondered why my database got flooded with thousand of rows in those tables of TRP_ . It literally took me ages to understand how to exclude certain words from translation. In the end i added data-no-translation=’true’ attribute to every html node. Very annoying and long work but was the only way to stop database from growing further. after updating my html code, i emptied the TRP tables and started with translation again. but the table wp_trp_original_meta is still growing and growing. i don’t know which kind of data it stores and why.

    in my opinion the problem with TRP is that it collects every single char and string from a wp site even if you do not need it. for instance if you use Query Monitor Plugin, TRP also collects the words from the interface which is ridiculous. Would be smarter to only collect data when i want to translate a certain string. its really much smarter that way and from the point of view of a dev no problem at all.

    Hey there,

    Thanks for reaching out to us!

    The way TP works right now it detects every char available on your website and parses them. We did run a few tests of our own but sometimes you might encounter issues with your database for lage websites.

    About your first 2 cases, this should not be happening, please open a ticket here so we can have a better look at this: https://translatepress.com/support/ask-a-presale-question/

    Best Regards,

    Thread Starter heveraert

    (@heveraert)

    Dear @andrei202,

    I was asked to re-ask my initial question via your ticket system which I did & recieved an answer that was not an answer to my 2 questions. I am still waiting on the answers.

    Can you check?
    I would appreciate it,

    Thanks & regards,
    Hilde

    • This reply was modified 2 years, 5 months ago by heveraert.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Exclude translations’ is closed to new replies.