Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 - -
- - - - - - -

Supporter timezone: Africa/Cairo (GMT+02:00)

This topic contains 12 replies, has 2 voices.

Last updated by Mohamed Sayed 1 year, 9 months ago.

Assisted by: Mohamed Sayed.

Author Posts
February 27, 2023 at 6:34 pm #13128177

Christian

Tell us what you are trying to do?
I've scanned for the strings "select your file" and "no file selected" in Theme and plugins localization. I've also searched in String translation. No such strings found.

What is the link to your site?
hidden link

cannot translate these strings in contact form.png
February 27, 2023 at 9:57 pm #13129645

Mohamed Sayed

Hi Christian,
Thanks for contacting WPML support.

The page requires login details so I couldn't check the form, could you please tell me which plugin you use to create this form?

Also, could you please change the browser language and check if the field appears translated?

Regards,
Mohamed

February 28, 2023 at 5:38 am #13131097

Christian

Contact form 7 + contact form 7 multilingual. Regular fields and send button are translated except for those upload buttons.

February 28, 2023 at 8:58 am #13132889

Mohamed Sayed

Hi,

Could you please provide me with temporary access to the staging site so I can check the issue further?

Your next answer will be private, which means only you and I have access to it.

❌ Please backup your database and website before providing us with access details ❌

If you don't see the form below, please don't add your credentials as they will be publicly exposed:
hidden link

Privacy and Security when Providing Debug Information for Support:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/
Thanks for your cooperation

February 28, 2023 at 9:58 am #13133589

Mohamed Sayed

Hi Christian,

I couldn't access the WordPress admin dashboard because it takes me to another login form from "WP staging". When I use the same details, it shows "Access denied".

Please provide the login details of WP staging, I've enabled the private reply.

Screenshot_933.jpg
February 28, 2023 at 12:41 pm #13135361

Christian

Please try now

February 28, 2023 at 5:31 pm #13138555

Mohamed Sayed

Hi Christian,

The two strings are coming from different places.

The "Select your file" string is added with CSS, WPML can translate the content added with PHP but not CSS.

For this one, I suggest using the CSS :lang() Selector to add a different image in the other language. Please check here for more details: hidden link

So something like this could help:

.wpcf7-form-control:lang(fr).wpcf7-file::before {
    content: "Your-translation";
}

The string "No file selected" is added and controlled by the browser, if you checked the page in different browsers you'll see that each one is using a different string. This string will be translated based on the browser language as you see here: hidden link

Regards,
Mohamed

Screenshot_935.jpg
Screenshot_936.jpg
February 28, 2023 at 7:10 pm #13139111

Christian

What do I need to tell the developers of contact form 7 to make all of these strings translatable with WPML?

March 1, 2023 at 10:02 am #13143177

Mohamed Sayed

Hi Christian,

To make a string translation appear on your site, the following conditions have to be met:

- The text must be wrapped in gettext calls.
- There must be a textdomain argument.

Please check here for more details: https://wpml.org/documentation/support/enabling-text-translation-for-themes-not-compatible-with-wpml/

Since the strings are added by (Browser - CSS), they can't be translated with WPML. To fix this, you need to make sure that the strings are added with PHP and that the above conditions are met.

I hope that you will find this answer helpful.

Regards,
Mohamed

March 1, 2023 at 7:22 pm #13148445

Christian

Thank you. I have provided CF7 with your instructions on their support forum.

https://wordpress.org/support/topic/file-attachments-wpml-issue/#post-16518840

March 1, 2023 at 8:47 pm #13149085

Mohamed Sayed

Hi,

Thanks for sharing the link of the support ticket, please let us know if you need any further assistance.

Regards,
Mohamed

March 7, 2023 at 11:25 am #13188669

Christian

Currently no feedback from CF7 yet. I'll keep you up-to-date.

March 7, 2023 at 3:51 pm #13191371

Mohamed Sayed

Thanks, we will be waiting for your updates.

The topic ‘[Closed] contact form upload buttons not translatable’ is closed to new replies.