Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Sep 2010
    Location
    Odense
    Posts
    4

    Question 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

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,090
    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.

  3. #3
    Member
    Join Date
    Sep 2010
    Location
    Odense
    Posts
    4
    Thank you very much Dario. I will try as you explained.

 

 

Similar Threads

  1. Replies: 7
    Last Post: June 14th, 2012, 09:35 AM
  2. How to turn on LS client side logging?
    By LS_Developer in forum Client SDKs
    Replies: 1
    Last Post: March 20th, 2012, 09:51 AM
  3. Replies: 6
    Last Post: September 15th, 2010, 09:33 AM
  4. DynaMetapushTable server-side code
    By CitiMan in forum General
    Replies: 13
    Last Post: September 22nd, 2009, 05:57 PM
  5. Client side publish support
    By pacesie in forum General
    Replies: 1
    Last Post: March 26th, 2008, 10:01 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 01:49 PM.