Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Generally, when using WPML you should not upload images on translations.
WPML will display the original media on all translations and use the same file. To achive this WPML will created database entries to connect the original media with the translated contents.
If you upload media in second languages, then the WPML Media Sync will cause unnecessary DB entries for all languages and you will find duplicated files on the server, as you have uploaded them once for each language.
If you would like to use a different media in a second language, you can upload it at WPML > Media Translation.
As part of our regular process, we typically upload only one featured image along with inline images when creating an article. During translation, we generally only translate the content, and it is rare for us to change the featured or inline images in the translated articles. The same images are typically used across all translations unless there's a specific need to update them.
With that in mind, could you confirm if this process would lead to any unnecessary duplication of images or database entries? We're particularly concerned about whether following this approach might still cause issues with duplicated images across languages. We would appreciate your insights on this.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hello Vimal,
Your approach is correct.
Example:
1) Create a post and add media to it
2) Translate the post
WPML by default will create one database entry for each media file in each language. This will create an entry inside the media library for each language.
This means, while on the media library, when changing the admin language inside the top bar, you should see the same amount of images and you should be abl eto edit the meta information in each language.
At the same time, the duplication of media will allow to access the media when editing a post in a second language.
WPML will not duplicate the physical media files, it will only create database entries.
This means, if you have 30.000 images (files) and 9 active languages you will have 270.000 entries inside the media library (once for each language).
I further wanted to ask if you tested to adjust the archive templates by using a post query dedicated for the specific template?
Best regards
Andreas
The topic ‘[Closed] Very slow queries’ is closed to new replies.