web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

"Browse file" (Attach file) button translation on CRM Portal is not working

(0) ShareShare
ReportReport
Posted on by

I am working on a 2 language custom portal with a french base.

I created an entity form with file attachment enabled for a single file. 

The button label is the same for both languages. it is not translated to the second language (English). No Snippet or other record for this element.

In Firefox's case there is also a non translated message indicating that there is no selected file. 

I tried to resolve the problem with a Note Entity Form Metadata but it is not working.

Does anyone have any idea how to resolve this issue ? Thank you

This is the code i got from the element using the browser:

<input type="file" name="ctl00$ContentContainer$MainContent$EntityFormControl$EntityFormControl_EntityFormView$AttachFile" id="AttachFile" accept="*" aria-label="Attach a file..."> 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    oliver.rodrigues Profile Picture
    4,052 on at

    I have also multi-language enabled, and in my entity form I have the below options:

    can you double check your entity form?

    lang.PNG

  • Community Member Profile Picture
    on at

    Hi Oliver, I have the field "label" on the form too, but this is the label of the box with the attachment name (Path).

    The issue i have is on the button that opens the OS box to choose the file. i have "Parcourir" on both languages. I should have "Browse" or "Attach file" on this button for English.

  • Suggested answer
    oliver.rodrigues Profile Picture
    4,052 on at

    can you share a snapshot, wouldn't this be something related to your local OS language?

  • Community Member Profile Picture
    on at

    As you can see below "Attachment" is a custom label i put on the web form configuration for English.

    The button and the text next to it are out of the box and they are on the portal screen. They are in the base language and not translated.

    5582.Untitled.png

  • Verified answer
    oliver.rodrigues Profile Picture
    4,052 on at

    ok I see what you mean.. the portal renders that control as an input HTML element.. the one responsible for rendering this is the browser, so it will get the language from your OS

    it is possible to change that through CSS and JavaScript, but won't be that simple, please refer to the following:

    stackoverflow.com/.../labeling-file-upload-button

    your can retrieve the selected language through JS using the following syntax:  

    var languageCode = '{{ website.selected_language.code | downcase }}';

  • Community Member Profile Picture
    on at

    Thank you Oliver. I checked and as you said it's linked to the system language not the portal.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans