RE: i18n json resource files with Sling-Initial-Content (was: Sling pipes release)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

RE: i18n json resource files with Sling-Initial-Content (was: Sling pipes release)

Stefan Seifert
i think it is currently not possible to deploy json-file bases i18n resources with Sling-Initial-Content.
as described in [1] the json file node nt:file needs an additional mixin mix:language for the language code.
and this is not possible to define with or without ignoreImportProviders=json currently.

i would be also very interested to support i18n json files with Sling-Initial-Content, but i think we have to improve the content loader mechanism for this.

stefan

[1] https://sling.apache.org/documentation/bundles/internationalization-support-i18n.html#json-file-based



>-----Original Message-----
>From: Bertrand Delacretaz [mailto:[hidden email]]
>Sent: Friday, April 28, 2017 9:43 AM
>To: users
>Subject: Re: Sling pipes release
>
>On Fri, Apr 28, 2017 at 12:28 AM, Correia
><[hidden email]> wrote:
>> ...The "ignoreImportProviders=json" is not a solution because I use JSON
>for
>> all my content...
>
>That option is per path, so I suppose if you isolate those .json files
>in a specific path that should work - but maybe that prevents you from
>creating the structure that the i18n bundle needs?
>
>Worst case, using a JCR SystemView XML file should work but maybe
>that's inconvenient to generate and edit.
>
>-Bertrand

Reply | Threaded
Open this post in threaded view
|

RE: i18n json resource files with Sling-Initial-Content (was: Sling pipes release)

Stefan Seifert
coming back to this - it is possible to load i18n json files with JCR content loader - but one bug prevented it working with the last two releases [1]
this bug is fixed in the current snapshot release of JCR content loader.

i've added and example how to do this on the contentloader documentation [2]

stefan

[1] https://issues.apache.org/jira/browse/SLING-6825
[2] http://sling.apache.org/documentation/bundles/content-loading-jcr-contentloader.html#example-load-i18n-json-files



>-----Original Message-----
>From: Stefan Seifert [mailto:[hidden email]]
>Sent: Friday, April 28, 2017 10:16 AM
>To: [hidden email]
>Subject: RE: i18n json resource files with Sling-Initial-Content (was:
>Sling pipes release)
>
>i think it is currently not possible to deploy json-file bases i18n
>resources with Sling-Initial-Content.
>as described in [1] the json file node nt:file needs an additional mixin
>mix:language for the language code.
>and this is not possible to define with or without
>ignoreImportProviders=json currently.
>
>i would be also very interested to support i18n json files with Sling-
>Initial-Content, but i think we have to improve the content loader
>mechanism for this.
>
>stefan
>
>[1] https://sling.apache.org/documentation/bundles/internationalization-
>support-i18n.html#json-file-based
>
>
>
>>-----Original Message-----
>>From: Bertrand Delacretaz [mailto:[hidden email]]
>>Sent: Friday, April 28, 2017 9:43 AM
>>To: users
>>Subject: Re: Sling pipes release
>>
>>On Fri, Apr 28, 2017 at 12:28 AM, Correia
>><[hidden email]> wrote:
>>> ...The "ignoreImportProviders=json" is not a solution because I use JSON
>>for
>>> all my content...
>>
>>That option is per path, so I suppose if you isolate those .json files
>>in a specific path that should work - but maybe that prevents you from
>>creating the structure that the i18n bundle needs?
>>
>>Worst case, using a JCR SystemView XML file should work but maybe
>>that's inconvenient to generate and edit.
>>
>>-Bertrand

Reply | Threaded
Open this post in threaded view
|

Re: i18n json resource files with Sling-Initial-Content (was: Sling pipes release)

Alexander Klimetschek-2
On 03.05.2017, at 10:01, Stefan Seifert <[hidden email]> wrote:
> coming back to this - it is possible to load i18n json files with JCR content loader - but one bug prevented it working with the last two releases [1]
> this bug is fixed in the current snapshot release of JCR content loader.
>
> i've added and example how to do this on the contentloader documentation [2]

Great, thanks!

Cheers,
Alex