Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 1 reply, has 2 voices.

Last updated by Nicolas V. 1 year, 5 months ago.

Assisted by: Nicolas V..

Author Posts
August 15, 2023 at 10:40 am #14202437

arnoldV-2

Hi, we translated this website for a lawfirm, using WPML automatic translation.
The client wants the term 'lawyers' to be replaced with 'attorneys', in all the translations.

How would we go about this? I can search in the string translations, include the translations and find all strings containing the term, but I don't fancy opening each translation and manually rewrite the string with the replacement term.

August 15, 2023 at 3:52 pm #14204257

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hello,

Welcome to the WPML support forum.

Unfortunately we don't have an option to replace the word 'lawyers' by 'attorneys' in existing translations.

- For future translations you can easy create a glossary entry following this documentation: https://wpml.org/documentation/translating-your-contents/advanced-translation-editor/how-to-create-and-manage-glossary-entries/

- For existing translations, as you mentioned you can find all strings with that translation in "WPML > String Translation".
- Go to "WPML > String Translation" search in all domains for the word 'lawyers' and check the option "Include translations".
But it will be limited to "strings" from plugins, widgets or page builders. I can see that you're using "Avada builder" so most (if not all) of the translations should be in "String Translation".

- Else you could also use a "Search and replace" plugin to replace all references to 'lawyers' in your database. We don't have such plugin in house so please understand that it is only a recommandation and you should always make a full backup of your site and database before using a plugin that will modify entries in your database.

August 16, 2023 at 7:45 am #14206587

arnoldV-2

Ok. I'll see what we can do.
I was thinking about a search and replace with SQL, but wasn't sure if WPML used serialized arrays to save things in the database. But I doubt the search and replace plugin might be a saver bet in any case.

Thanks for the info.