Background of the issue:
I am trying to translate patterns on my page using WPML. I expected to see a language meta box that would allow me to link the patterns in the editor screen.
Symptoms:
I don't see the pattern, and when I try to add a new translated pattern in a new language by clicking + on the pattern list screen (wp-admin/edit.php?post_type=wp_block), I can add the pattern but the content is not copied over. Then, if I click on the pattern admin link in this language once it's created, I don't see the pattern.
Only when I click back in my browser can I go to the edit screen of the pattern, and then when I click on the pattern link again, it is on the list of the patterns in that language, but it's not connected to the original language. I have patterns marked as translatable in the WPML settings
Questions:
Why is the language meta box missing on the patterns?
How can I ensure the translated pattern content is copied over and linked to the original language?
While one of my teammates handles your ticket, I will provide you with some initial debugging steps.
It’s possible that this custom post type is set to "Not Translatable". You can check this by going to WPML → Settings → Post Types Translation. If it is indeed set to "Not Translatable", try changing it to "Translatable".
The CPT for patterns is a native WordPress one (wp-blocks).
We also have weird issue with string translations, and we are wondering, because we have website that is using autoscalling instances, is it possible that po/mo files are not stored on both instances which would cause some instance to have access to it, and other not?
Is it possible to somehow dictate where these files will be stored?
Because we also have one 'static' instance that can have files stored that need to be shared between autoscalling instances.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hello,
take kindly note that this behavior us currently expected.
To translate Block Themes and their Templates, Templates Parts, Navigation Menus, and Patterns you will need to use WPML > Translation Management.
Create a job and translate it automatically or assign the job to yourself and then access the translation at WPML > Translations.
Note, that it is currently not possible to translate such post types manually using the Site Editor. If you do so, you might run into unexpected issues regarding the display conditions of their post types.
The topic ‘[Closed] Language meta box missing on patterns’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.