cancel
Showing results for 
Search instead for 
Did you mean: 

folder tree translation

rbahassine_
Champ on-the-rise
Champ on-the-rise

Hello,

I am trying to configure Nuxeo to pass from English to French and vice versa. So I set up messages_FR and _EN.properties files in STUDIO interface and the translation works perfectly.

However I did not find how to translate the folder tree. Is this provided in STUDIO? If not, is there a solution outside STUDIO that allows to translate the records of the tree?

3 REPLIES 3

Marwane_K_A_
Star Contributor
Star Contributor

Indeed you could make it so the folder tree is translated, except not through Studio. You'll have to package a Nuxeo bundle by yourself to override the /incl/tree_explorer.xhtml template, replacing

<h:outputText value="#{nxd:titleOrId(node.document)}" />

(~line 52) with

<h:outputText value="#{messages[nxd:titleOrId(node.document)]}" />

That should do the trick.

However, what complicates things a bit more is that folder labels are used in a lot of other places where you'd have to make the same change: in content views, in the document header, in the breadcrumbs links, etc. So to make Nuxeo consistent in translating such labels everywhere is not that easy.

rbahassine_
Champ on-the-rise
Champ on-the-rise

Thanks Marwane.

If I understood correctly, your solution does not translate others views/layouts where the folder name could appear?

And if a user create new folder, as Nuxeo Administrator I need to add it in my messages_EN.properties and so on...?

Adding a new field in the folder's create/edit layout, allowing users to type both folders names, the english one and french one, isn't it the right solution?

Thanks for your help 🙂

It depends on what you want to do indeed.

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.