[Dhis2-devs] Java properties files in Javascript clients

2014-08-27 Thread Jan Henrik Øverland
Hi, the following function can be used to parse Java properties files (e.g. for i18n) on the key=value format in a Javascript client. So far it handles - unicoded characters on the format \u - untrimmed keys and values - values with quotation marks - any number of line breaks - lines that are

Re: [Dhis2-devs] Java properties files in Javascript clients

2014-08-27 Thread Jan Henrik Øverland
I have made the script available in commons. Do an ajax request to server/dhis-web-commons/javascripts/javaProperties.js to get it in your app. On Wed, Aug 27, 2014 at 2:14 PM, Jan Henrik Øverland janhenrik.overl...@gmail.com wrote: Hi, the following function can be used to parse Java

Re: [Dhis2-devs] Java properties files in Javascript clients

2014-08-27 Thread Jan Henrik Øverland
The script has been moved to dhis2.util.js instead. The function is called dhis2.util.parseJavaProperties. On Wed, Aug 27, 2014 at 2:43 PM, Jan Henrik Øverland janhenrik.overl...@gmail.com wrote: I have made the script available in commons. Do an ajax request to