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.

This topic contains 1 reply, has 2 voices.

Last updated by Marcel 1 year, 12 months ago.

Assisted by: Marcel.

Author Posts
April 25, 2023 at 4:33 pm #13535357

veliF

Hello,

I want to know if it is possible to translate the file upload type: type="file"

It is known that this element will change per browser and language.

Thanks in advance!

April 26, 2023 at 10:44 am #13540351

Marcel
WPML Supporter since 02/2019

Languages: English (English ) German (Deutsch )

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

Hi,

as the button labels are coming from the browser, you can't translate them with WPML, as it's not even part of WordPress and not a registered string via a getText() call.

There are some custom coding solutions workarounds listed here: https://stackoverflow.com/questions/14340519/html-input-file-how-to-translate-choose-file-and-no-file-chosen.

Best Regards
Marcel