-
September 29th, 2010, 11:20 AM
#1
Server side localization
Hi,
Can I somehow make the ajax messages for the client localized?
I don't want JS to format currency to the users locale format and I do not want JS to translate statuses etc.
Is there any way to customize a message before it is sent to the client?
Best regards
Martin
-
September 30th, 2010, 08:45 AM
#2
The Metadata Adapter interface features the customizeUpdate method for this purpose.
The customization is driven only by the user name, not by local session properties, as the aim of the feature is to allow sending of user-specific data.
As long as the desired formatting depends on the user identity and not on session related formatting preferences, you can take advantage of this method.
Alternatively, you can differentiate the flow for different clients by assigning them different items.
Also in this case, the choice can be done entirely on the server side; the various clients can ask for the same item name and the Metadata Adapter can divert the requests to different items in getItems.
In this case, session related information is also available.
-
September 30th, 2010, 09:02 AM
#3
Thank you very much Dario. I will try as you explained.
Similar Threads
-
By LS_Developer in forum Client SDKs
Replies: 7
Last Post: June 14th, 2012, 08:35 AM
-
By LS_Developer in forum Client SDKs
Replies: 1
Last Post: March 20th, 2012, 08:51 AM
-
By deltron0 in forum Client SDKs
Replies: 6
Last Post: September 15th, 2010, 08:33 AM
-
By CitiMan in forum General
Replies: 13
Last Post: September 22nd, 2009, 04:57 PM
-
By pacesie in forum General
Replies: 1
Last Post: March 26th, 2008, 09:01 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 02:42 PM.
Bookmarks