Strings translations are lost after restore
-
Today we made a full backup of our live, 3 languages website, and restored it on the local development server. The translations did not restore, and, as there are quite a few, it is rather difficult and time-consuming to re-enter them manually.
The 3 defined languages are there, with their order correctly set; that is the first tab from the settings page of the plugin.
The “Settings” (third) tab is also correct (default language, URL modifications, synchronizations etc.).
But the “Strings translations” (second) tab is wrong. The strings are there all right, even the ones we registered in functions.php and those belonging to the plugins and widgets we use, but they are not translated; the 3 versions of the strings are all in the default language.
We carefully read this thread: https://www.ads-software.com/support/topic/exporting-full-wp-mysql-db-losing-polylang-strings-translations but could not manage to get back our translations.
We noticed that the tabs 1 and 3 (“Languages” and “Settings”) are saved in the options table, but the strings translations are in the posts table. We tried to manually update the 3 records in the local database with the content of the corresponding records in the live database. No result. A SELECT from the database shows that the records are correct, that is each polylang_mo_xx has the right translation, but in the WordPress admin console the 3 versions of the same string display the default value. Of course, the front-end is all wrong.
We thought the backup/ restore process would be a straightforward one, but Polylang behaved so oddly!
Please analyse the problem and let us know how to avoid or fix it, since this is the second time a thread is open on this topic.
Our site uses WP 4.01 and Polylang 1.6.2.
- The topic ‘Strings translations are lost after restore’ is closed to new replies.