Hi,
I am loading translations dynamically through a db table. This works well for translating field names on listgrids, etc. However, I need to translate error messages from the server side as well.
For instance, if a record is found to be stale, the server responds with an message to the user as a pop up with
I want to catch the reply and translate "STALE_RECORD" to something else from the data I loaded from my translations db table. (ditto for other default Smartgwt messages like "Data Loading", "Contacting Server", etc)
How can I do this?
I am loading translations dynamically through a db table. This works well for translating field names on listgrids, etc. However, I need to translate error messages from the server side as well.
For instance, if a record is found to be stale, the server responds with an message to the user as a pop up with
Code:
DSResponse.setFailure(); DSResponse.setData("STALE_RECORD");
How can I do this?