Overview
Provides a function that loads a properties file from Appian Document Management and returns a dictionary of labels and values.
How to i18n your Form:
Key Features and Functions
Functions:
I've tried to use this plug-in and working fine for the most part but I've found an issue that I can't seem to resolve within this plug-in:
inside the properties file I have a row: "caseDetails=DÉTAILS DU CAS"
when using the loadbundle() function the row is being returned from that properties file as "caseDetails:D�TAILS DU CAS"
I can replace char(65533) with char(233) when displaying this value. This solution is clearly not perfect since I am needing to assume that the � char should in fact be a É, but the same seems to be true with other accented chars. A more graceful way of handling this is to simply replace this label function/plug-in with:
if(userlocale( loggedInUser() ) = "fr_FR","DÉTAILS DU CAS","CASE DETAILS")
Of course there are a number of other ways I could do this (reference data held within a DB, using constants etc) but given that the plug-in suggests it works with complex characters I feel that I am missing something (also this loadbundle function seems to be substantially quicker than retrieving the same number of "translations" through a DB query, so my current preference is to stick with this plug-in)
Any thoughts?
Re: example, the readme file explains the usage, there really isn't much to this other than loading key-value pairs from a file. See playbook page for usage: https://community.appian.com/w/the-appian-playbook/100/application-internationalization