Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is trying to translate

admin_texts_wpseo_titles

for SEO purposes and is unsure how to handle placeholders and actual text within the string.
Solution:
We recommend translating only the actual text within the string and keeping the placeholders identical across languages. For example, in the string

%%term_title%% Archives %%page%% %%sep%% %%sitename%%

, only the word "Archives" should be translated, while placeholders like

%%term_title%%

,

%%page%%

,

%%sep%%

, and

%%sitename%%

should remain unchanged. Here is how you should translate it:

English Original: %%term_title%% Archives %%page%% %%sep%% %%sitename%%

 German Translation: %%term_title%% Archive %%page%% %%sep%% %%sitename%%

For further details on how these placeholders work, you can refer to Yoast's documentation here: Yoast SEO Snippet Variables.

If this solution does not resolve your issue or seems outdated, please check for related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. We highly recommend opening a new support ticket if needed.

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 3 replies, has 2 voices.

Last updated by Andreas W. 7 months, 3 weeks ago.

Assisted by: Andreas W..

Author Posts
May 10, 2024 at 11:49 pm #15616521

khalidA-55

Tell us what you are trying to do?

i'm trying to Translate admin_texts_wpseo_titles

Is there any documentation that you are following?
yes https://wpml.org/documentation/plugins-compatibility/using-wordpress-seo-with-wpml/

Is there a similar example that we can see?
Actually i don't know how to translate these admin_texts_wpseo_titles! should i translate just words between %% like in this example:

%%term_title%% Archives %%page%% %%sep%% %%sitename%% ( English )

%%terme_titre%% Archives %%page%% %%sep%% %%nom du site%% ( French ) ???? thanks for your help

string Capture.PNG
May 11, 2024 at 3:29 pm #15617094

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

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

Hello,

These strings placed in between %% are placeholders, they should stay identical.

Please translate them exactly in the same way but only change the text "Archives":

English Original:
%%term_title%% Archives %%page%% %%sep%% %%sitename%%

German Translation
%%term_title%% Archive %%page%% %%sep%% %%sitename%%

Best regards
Andreas

May 11, 2024 at 5:35 pm #15617169

khalidA-55

Hi There
Thanks for your reply, do you mean i should just only translate the word ( Archives ) ?!!

May 11, 2024 at 6:29 pm #15617176

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

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

This string determines how your your Archive Pages will appear on search indexes.

On the search index, it would look like:
T-Shirt Archives T-Shirts - MySite.com

This is explained here on Yoasts documentation:
hidden link

Let me split the string up:

%%term_title%% => This is a placeholder for the Title of the Taxonomy (just copy it)
Archives => This is an actual text string and should be translated
%%page%% => This is a placeholder for the Archive page (just copy it)
%%sep%% => This is a placeholder for a Separator (just copy it)
%%sitename%% => This is a placeholder for the name of your website (just copy it)