2

I have an XPage that I open from Google Chrome on my computer. it all looks good on my side. Google Chrome is displaying web pages by default in Swedish.

When my customer open the same webpage from their environment they get a lot of errors causing the webpage to not load properly.

I have noticed that when my customer is loading the webpage they get different locations of the listbox.js files.

Image show the errors my customer get

enter image description here

Below image show what it looks like on my side. working!

enter image description here

I am using Swedish language in Chrome but when I load the page it is not loading from the sv-se directory.

Why is my customer loading the files from the sv-se folder?

ExtLib version: 9.0.1.v00_16_20160128-1014

Server version: Release 9.0.1FP4|June 07, 2015 Windows/64

Veve
  • 6,643
  • 5
  • 39
  • 58
Thomas Adrian
  • 3,543
  • 6
  • 32
  • 62

1 Answers1

2

From the screenshot, the customer's browser is attempting to load the NLS (natural language string) dojo JS files for the language sv-se:

http://...../xsp/.ibmxspres.extlib/dijit/nls/sv-se/listbox.js

No such language code is supported by Dojo, only sv is supported. The sv-se folder doesn't exist, hence the error. It seems sv-se is an alternate code for standard Swedish.

That's why it's working on your machine, as you are loading the sv NLS files:

http://...../xsp/.ibmxspres.extlib/dijit/nls/sv/listbox.js

Further info: I don't see a way in Chrome to use language sv-se. But you can use it in Internet Explorer and Firefox, thus hitting the issue.

You can see the problem in the head of the page html, where it says var dojoConfig = {locale: 'sv-se' ...

I was able to fix this issue by opening the Application Properties -> XPages tab -> Enable localization -> Add "Swedish" to the list -> Save and re-build

enter image description here

In your case, it may make sense to make Swedish the Source and Default language too.

Brian Gleeson - IBM
  • 2,565
  • 15
  • 21