Bug: Form rendering locale is not passed to Dojo RTEditor

When a View/Page/Form etc. is opened over the web, Domino uses the browser’s accept-language header to determine how to display dates, times, numbers, and various strings such as “Today”, “Yesterday”, etc.

If an RT field on a form is set to “Use Javascript Control” then the HTML Domino generates does not set the Dojo.locale() to the locale derived by HTTP for the rest of the form. This causes the mouseover tooltip buttons on the RT editor to display in a non-preferred language.

Steps to reproduce:

  1. Create a form

  2. Add a computed-for-display field with a formula of: @Text(@Today; “S3”)

  3. Add a computed-for-display field with a formula of: @Now

  4. Add an RT field, set to “Use Javascript Control”

  5. Save the form

  6. Change your browser’s language to en-us (English - United States).

  7. Open the form in a browser. You will see the English word “Today” and a US-formatted date/time. The mouseover text on the buttons will be English text as well.

  8. Change your browser’s language to ru-ru (Russian).

  9. Open the form in a browser. You will see the Russian word “Сегодня” and a Russian-formatted date/time. The mouseover text on the buttons, though, will still be English text.

Subject: SPR created

spr SLED7HGSPSThanks for reporting this!

Subject: fix is in 8.5, did not make beta 2

I reworked the javascript a fair bit, it’s much cleaner now. If you want to see the language property work, edit the line that defines djConfig in domino\data\domino\template\dom_common.htm and add the locale property like this :

src=“&DOMINO_CTRL_URI_JSLIB;/dojo/dojo.js” djConfig=“locale: ‘&DOMINO_CTRL_ACCEPT_LANGUAGE;’, isDebug: false, parseOnLoad: false”>

Then you’ll have to restart http.