12-13-2012 05:26 AM
Hi All,
We have a customer testing v8 and found that users based in Sweden are unable to access the SLXMobile on any supported device (Please see attached screen shot) They are currently running v.7.5.4 SLXMobile and that works fine. Our customer narrowed the issue down to the device language settings. As soon as they switched the device from Swedish to English it works fine. Is this a bug or is there a way to present the language to all devices in English not matter what the device is configured for.
Any help will be appreciated!
Solved! Go to Solution.
12-13-2012 06:51 AM
12-13-2012 07:01 AM
Hi RJ,
IIS is configured to use index.aspx and the same link has been distributed to the users (UK and Sweden) The UK users are fine but all Sweden users get the issue. I tested the scenario here on my phone and I can replicate the issue with the Eval database.
12-13-2012 07:10 AM - edited 12-13-2012 07:13 AM
So basically there's a "bug" in the localization when an unsupported lang/locale is selected. Sounds like a fairly simple (mobile) code fix to me.
Suggest you make a post up on GH in the argos-saleslogix area - usually very quick service.. then you can download the "fix".. rebuild.. and go!
I may take a look myself later today as well.
12-13-2012 07:13 AM - edited 12-13-2012 07:14 AM
It is looking that way RJ. I have logged this with Sage UK just in case. A 'Simple' code fix, send it over then
12-14-2012 05:16 AM
Hi,
I found that if you deploy slxmobile from AA it has a different index.html page.
In this case it automatically searches for the language using what ever mechanism.
If you use the github code and manually copy the stuff over you can hardcode one language in the index.html file which is used for all client.
The result is, that the client is displayed in that language regardless of the device configuration.
12-14-2012 05:22 AM
Hi Alexander,
Many thanks for your response. Can you point me in the right direction for what needs to bet set within the HTML file.
12-14-2012 05:34 AM - edited 12-14-2012 05:37 AM
If you set the default page to index.html vrs index.aspx.... force to "en"
<script type="text/javascript">// (function() { var application = 'Mobile/SalesLogix/Application', configuration = [ 'configuration/production', 'configuration/backcompat/production', 'configuration/errorLog/production', 'configuration/hashtag/production', 'configuration/parent/production', 'configuration/xyzzy/production' ]; require([application].concat(configuration), function(application, configuration) { var localization = [ 'localization/en', 'localization/saleslogix/en' ]; require(localization.concat('dojo/domReady!'), function() { var instance = new application(configuration); instance.activate(); instance.init(); instance.run(); }); }); })(); // </script>
The other "built-in" languages are:
en-GB
de
fr
it
ru
NOTE: The "configuration part" will NOT be the same as my example because mine has five (5) custom modules added in ;-) - yours will probably be just 'configuration/production'
12-14-2012 05:37 AM
Excellent!
Many thanks RJ!
12-14-2012 05:43 AM
You are welcome Adam!
There is a TON of "hidden gems" in the mobility product/package.. this is just one of them. Every day I find a new one.. and that's after working on it since "pre-beta" of the 1.0 about 2 years ago.