boredtaiga
Forum Replies Created
-
I’ve managed to solve this issue in the script by using the $TRP_LANGUAGE global variable. For some reason, the variable resulted in the wrong language (en_US in every case), when called inside the specific php files where the ajax scripts executed from. What I did was to store the $TRP_LANGUAGE’s value from the page where it worked, using $_SESSION and calling the $_SESSION value inside the ajax script. This way I managed to manually translate the untranslatable values.
Although I still don’t know what caused this issue, this is a good bandaid with anyone who’s experiencing problems like this.
boredtaiga
Hello,
I was wondering if you managed to find where the problem is? Do you have any idea what could cause an anomaly like this?
Thanks,
boredtaigaHello,
No, sadly, the problem is still present.
You can only see it in action if you set your language to Hungarian and then go to the front page where the map is and next to the map click on the “Eladó” text so it switches to the next tab.
Then the dynamic strings won’t translate as you will see.
- This reply was modified 5 years, 3 months ago by boredtaiga.
[27-Nov-2019 07:34:34 UTC] WordPress database error Table 'mydbname.wp_2_trp_dictionary_en_us_en_us' doesn't exist for query SELECT original,translated, status FROM
wp_2_trp_dictionary_en_us_en_usWHERE status != 0 AND
original!= 'Min Price' AND MATCH(original) AGAINST ('Min Price' IN NATURAL LANGUAGE MODE ) LIMIT 3 made by do_action('wp_ajax_trp_get_similar_string_translation'), WP_Hook->do_action, WP_Hook->apply_filters, TRP_Translation_Memory->ajax_get_similar_string_translation, TRP_Translation_Memory->get_similar_string_translation
^This is an error I get in debug.log when trying to translate either “Min Price” or “Max Price”
- This reply was modified 5 years, 3 months ago by boredtaiga.
Hi,
I tried your steps, but sadly nothing seemed to help the problem.
During the debug process I have noticed that it does actually translate the string, but it is rather showing it in the wrong language.
The natural strings that I have used are in the English language, but if I set the TranslatePress plugin’s English translation field to something else it will show that string instead of the one in the script even when my language settings are set to Hungarian.
In this example the natural string is “Min Price”, I set the English field in TranslatePress to “Test” and the Hungarian to “Min. ár”, but when I change my language to Hungarian it will be showing the “Test” text instead of “Min. ár”.
The website address is: https://ingatlan.unicool.hu/hu/
Thanks for your help!
Hello,
Thank you for your answer. My problem still exists.
These are the screenshots of the console:
Thanks,
boredtaiga