Re: Sling pipes release

2017-04-27 Thread Correia
Thanks everyone for the help. I really don't understand how it's supposed to work the example discribed in Sling Internationalization page. The "ignoreImportProviders=json" is not a solution because I use JSON for all my content. I will keep my working attempt described in first post for now. It

Re: Sling pipes release

2017-04-27 Thread Alexander Klimetschek
On 27.04.2017, at 06:12, Correia wrote: > How do I add my second JSON file to the jcr:data on the first file?? The answer to that question must lie in the sling initial content loader mechanism, how it can incorporate binary files (i.e. the second en.json that should end up as-is as nt:file in

Re: Sling pipes release

2017-04-27 Thread Correia
Not getting there yet :p Let me reformulate my question... I'm trying to use the Internationalization Support as the example in Sling documentation: https://sling.apache.org/documentation/bundles/internationalization-support-i18n.html I'm using JSON-file based As the example describe... /lib

Sling pipes release

2017-04-27 Thread Nicolas Peltier
Hi, Is it possible to fix SLING-6800 and create a 0.0.12 release for sling pipes? Thanks, Nicolas

Re: Sling JSON i18n

2017-04-27 Thread Bertrand Delacretaz
Hi, On Thu, Apr 27, 2017 at 1:01 PM, Correia wrote: > ...I'm importing the files to the JCR repository via maven and i'm using JSON > instead of XML... Ah ok got it, your problem is how to provide those json files as initial content in your source code, without them being interpreted by the init

Re: Sling JSON i18n

2017-04-27 Thread Correia
Thanks for the help. I had already readed that documentation, but my problem is how I build my JSON file. I'm importing the files to the JCR repository via maven and i'm using JSON instead of XML. My question is how to build the JSON file under libs/languages. -- View this message in context:

Re: Sling JSON i18n

2017-04-27 Thread Bertrand Delacretaz
On Thu, Apr 27, 2017 at 12:14 PM, Correia wrote: > ...What I wanted to do is having a pure JSON file like: > { > "hello": "Hello", > "hello2": "Hello 2" > } > > Is this possible... Yes, as described in the docs. The corresponding test is JcrResourceBundleTest.test_json_dictionary() [1],

Re: Sling JSON i18n

2017-04-27 Thread Correia
Yes, that example is similar to the one I have working. What I wanted to do is having a pure JSON file like: { "hello": "Hello", "hello2": "Hello 2" } Is this possible? Follow up question... With the suggested example I can use slightly annotation to get the label ${'hello' @i18n}. How c

Re: Sling JSON i18n

2017-04-27 Thread Chris Millar
Have a look at: https://github.com/auniverseaway/slick-2/tree/master/ui.apps/src/main/resources/jcr_root/libs/languages I can verify this works on pure Sling 8. Let me know if you have any additional questions. > On Apr 26, 2017, at 3:23 PM, Correia > wrote: > > Hi all, > > I'm trying to us