Localizing error messages on mobile devices

As stated in Loading size optimization, dojo.i18n is not loaded if diagramForMobile is true, so Dojo Diagrammer error messages are not localized, only the message ID is reported. If you want to have localized Dojo Diagrammer error messages, you must provide application-specific methods:
ibm_ilog.diagram.util.ErrorReporter.getLocalizedString = function(id) { ... };

ibm_ilog.graphlayout.internalutil.LogResUtil.getLocalizedString(id) { ... }
Both functions must get a localized message for the specified message identifier, for example by sending a request to the server. The first method must handle all messages defined in the ibm_ilog.diagram module, that is, CWZDD2XXX messages. The second method must handle messages defined in the ibm_ilog.graphlayout module, that is, CWZDD6XXX messages.
Note that getting localized error messages on mobile devices is optional, it depends on the application.