TranslatePress: Incorrect Link Translation When Using Google Translate
Problem
When using automatic translation via Google Translate in TranslatePress, telephone links like:
<a href="tel:+15846548545">+1 (584) 654-8545</a>
...are being incorrectly translated into other languages like this:
<a href="тел:+15846548545">+1 (584) 654-8545</a>
Solution
To fix this, you need to manually remove incorrect translations from the translation dictionary stored in the WordPress database.
Step 1: Connect to the database
Log in to your database using a tool like phpMyAdmin or the MySQL command line.
Look for tables with names like:
trp_dictionary_en_us_bg_bg
This table contains translations from English (en_US) to Bulgarian (bg_BG). Each language pair has its own table.
Step 2: Search for the incorrect translation
In the translated
column of this table, search for entries containing:
тел:
Or you can search for the full string:
тел:+15846548545
Once found, delete the affected row to remove the incorrect translation from the dictionary.
Step 3: Repeat for other languages
Repeat the same process for each translation table corresponding to other languages configured in TranslatePress.
Optional Tips
- Make a backup of your database before making any changes.
- Consider disabling automatic translation for specific content types to prevent similar issues in the future.