Skip Navigation

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

Problem:
The client created a pattern and added it to the theme folder, but after following the instructions and adding it via XML code, the pattern was not available for translation.
Solution:
1. We recommended the client to take a copy of their pattern file code.
2. We instructed them to replace the original code with the new code provided in our response. https://pastebin.com/CYa6V8cZ
3. After replacing the code, we advised the client to navigate to WPML-> Theme and Plugin Localization, select their theme, and scan it for strings.
4. Finally, we suggested searching for the pattern strings in WPML-> String Translation using the provided link. https://ile.ua/wp-admin/admin.php?page=wpml-string-translation%2Fmenu%2Fstring-translation.php&context=wpml-fix

If the solution provided is not relevant due to being outdated or not applicable to your 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. Should you need further assistance, please do not hesitate to open a new support ticket. Contact WPML support

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

Last updated by Osama Mersal 8 months, 2 weeks ago.

Assisted by: Osama Mersal.

Author Posts
March 18, 2024 at 9:41 am #15419886

tarasL

I created a pattern and added it to the theme folder.
Then, following the instructions on your site, I added it via XML code. But that doesn't solve the problem - it is not translated (and apparently not available for translation).
What should I do?

March 18, 2024 at 10:57 am #15420465

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

1) Would you please elaborate more on the issue to help me understand it better?

It would be very helpful if you could share screenshots or a screen-recorded video while reproducing the issue.

2) Could you please share your Debug information with me?
You can read a detailed explanation about it here. (http://wpml.org/faq/provide-debug-information-faster-support)
The debug info will give me much information about how your site is configured.

Best regards,
Osama

March 18, 2024 at 1:09 pm #15421127

tarasL

The pattern is present on the page but is not translated. The video will not show you the problem. I can provide access to the admin area

March 18, 2024 at 2:42 pm #15421784

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for your update. I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please backup your database and website ❌

✙ I would need your permission to de-activate and re-activate the Plugins and Theme and change site configurations. This is also why the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

March 19, 2024 at 10:30 am #15425508

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for the access details. Please go to this page and translate the untranslated pattern. (hidden link)

After that, please check if the pattern is translated correctly on the front end. (hidden link)

Best regards,
Osama

March 19, 2024 at 10:38 am #15425559

tarasL

Thanks, but you're translating the wrong pattern I'm using.
I warned you about that

March 19, 2024 at 11:48 am #15426024

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

I installed a local copy of your site to check the issue without affecting your site. I was able to fix the issue by the following steps:

1- Delete the pattern file from the theme/patterns/history
2- Edit the "Single Product" template
3- Transform it into blocks
4- Add the history pattern and update the template
5- Go to WPML-> Translation Management
6- Translate the "Single Product" template

Best regards,
Osama

March 19, 2024 at 11:51 am #15426071

tarasL

Converting the "Single Product" into blocks won't break them?

March 19, 2024 at 12:08 pm #15426210

tarasL

It broke the whole design of the product card. There's no test site.
Is there no way to translate my block?

March 19, 2024 at 12:32 pm #15426364

tarasL

now everything is fine. Thank you

March 19, 2024 at 10:02 pm #15429049

tarasL

make this ticket private.

March 20, 2024 at 11:25 am #15430672

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

I'm afraid I can't make this ticket private. The private status is chosen when you open the ticket.

If there is a reply you want me to make private, please let me know.

Best regards,
Osama

March 20, 2024 at 11:36 am #15430728

tarasL

MARCH 19, 2024 AT 12:04 PM
and MARCH 19, 2024 AT 12:18 PM

March 20, 2024 at 11:38 am #15430762

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Done