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 1 reply, has 2 voices.

Last updated by Alejandro 4 months, 2 weeks ago.

Assigned support staff: Alejandro.

Author Posts
April 4, 2019 at 4:15 pm #3536921

hooiC

I am trying to: show the german app store image on the german homepage. On homepage - click 'App herunterladen', the images need to be translated.
We've translated the image app-store in media Translation but it's unaffected.

Link to a page where the issue can be seen: hidden link

I expected to see: German app store image

Instead, I got: UK app store image

I think the footer.php need to have something like this
<img src="/wp-content/uploads/2018/12/<?php _e('app-store.png', 'avada'); ?>" style="width: 151px; margin:10px;" alt="Download on the App Store" />

what we have currently is:
<img src="/wp-content/uploads/2018/12/app-store.png" style="width: 151px; margin:10px;" alt="Download on the App Store" />

April 5, 2019 at 6:29 am #3540899

Alejandro
Supporter

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Rome (GMT+02:00)

Welcome to WPML Support.
I'll do my best to help you sort this issue out.

I don't really know if that could work, maybe try with the __() function instead: https://developer.wordpress.org/reference/functions/__/

Try it out and then go to WPML > theme and plugin localization and scan your theme.

The string will be found in WPML > String Translation.

I would give you 2 suggestions, though :

1) do not just wrap the actual filename around the __() function but the entire directory path (src attribute value)

2) Also translate the alt title (it's good for your SEO)

See if that works.

The topic ‘[Closed] Update footer PHP file popup with PNG per language’ is closed to new replies.