Skip Navigation

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

Problem:
You are trying to translate the 'Previous / Next' text in the Query block's navigation block within a WordPress FSE template part, but cannot find the pagination text in String Translation.
Solution:
If you're experiencing this issue, we recommend you follow these steps:
1. Navigate to WPML > Settings > Custom XML Configuration tab.
2. Paste the following XML code:

<wpml-config>
  <gutenberg-blocks>
    <gutenberg-block type="core/query-pagination-previous" translate="1">
      <key name="label"></key>
    </gutenberg-block>
    <gutenberg-block type="core/query-pagination-next" translate="1">
      <key name="label"></key>
    </gutenberg-block>
  </gutenberg-blocks>
</wpml-config>

3. After pasting, your screen should resemble the example shown here: screenshot.
4. Make a minor adjustment to the pattern so that WPML can recognize the new elements, then retranslate.

This solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If this does not resolve your issue, please open a new support ticket at WPML support forum.

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.

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by Ilyes 3 months, 2 weeks ago.

Assisted by: Ilyes.

Author Posts
October 1, 2024 at 8:55 pm #16242843

Alexandra

Background of the issue:
I am trying to translate content in my index.html file, which is a WordPress FSE template part. My site is password protected (demo / broadbent). I followed the steps here: https://wpml.org/forums/topic/how-to-translate-a-template-part-using-full-site-editing/. This is for a template part, not a template. I need to translate the Previous / Next text in the Query block's navigation block. See what I see here: hidden link. I looked under String Translation but I am not finding the pagination text. I translated a few instances of the words Next / Previous but nothing is changing when I go to the French version of my page. I turned on the setting to scan the site for strings but still have not found the text.

Symptoms:
When I go to translate, it is only showing static text in a block. The pagination text (Previous / Next) in the Query block's navigation block is not being found or translated.

Questions:
What is the correct way to translate text in the query navigation block?

October 2, 2024 at 3:30 pm #16246556

Alexandra

Hi there,

Following up on this ticket to let you know that the theme, content etc. is all set up in the sandbox provided by WPML support here: hidden link

The content is here: hidden link

Unfortunately, the same issue persists.

October 3, 2024 at 3:02 pm #16250903

Ilyes
Supporter

Languages: French (Français )

Timezone: Pacific/Easter (GMT-05:00)

Hello,

Thank you for taking the time to replicate this,

I first suspected your custom theme, but I was able to replicate this on default themes like twenty-twenty one, here is a sandbox I tested : hidden link

I have escalated this to our compatibility team, I will let you know once I get an update,

Best,

October 3, 2024 at 3:06 pm #16250934

Alexandra

Thank you, Ilyes. Will keep an eye out for news from the compatibility team.

October 7, 2024 at 3:21 pm #16262553

Ilyes
Supporter

Languages: French (Français )

Timezone: Pacific/Easter (GMT-05:00)

Hello,

Good news, we found a way to register these blocks,

1- Go to WPML > Settings > Custom XML Configuration tab
2- Paste this XML code there :

<wpml-config>
  <gutenberg-blocks>
    <gutenberg-block type="core/query-pagination-previous" translate="1">
      <key name="label" />
    </gutenberg-block>
    <gutenberg-block type="core/query-pagination-next" translate="1">
      <key name="label" />
    </gutenberg-block>
  </gutenberg-blocks>
</wpml-config>

3- It should look like this : hidden link

4- Apply a small change to the pattern so that WPML can detect the new elements then retranslate

Best,