AnsweredAssumed Answered

Content Model Localization in Share

Question asked by bbougon on Aug 23, 2011
Latest reply on Oct 18, 2012 by d_franz
Hello,

I do have a problem with localization in Share.
I am desperatly trying to have the title of my custom aspects in Share content details page and I do not know what to do (works well in explorer).

Here is my problem :
1 - I have created some custom aspects added to the default content model (itself rewritten in the alfresco's extension folder).
2 - Localization for Explorer is written in the webclient.properties and works well
3 - In the share-config-custom.xml I have added the following lines (as shown in the wiki) :

<config evaluator="aspect" condition="mbs:status">
      <forms>
         <form>
            <field-visibility>
               <show id="mbs:statusName" label="statusName" label-id="statusName" for-mode="view" />
               <show id="mbs:statusDate" label="statusDate" label-id="statusDate" for-mode="view" />
            </field-visibility>
         </form>
      </forms>
   </config>
   
   <config evaluator="aspect" condition="mbs:confidential">
      <forms>
         <form>
            <field-visibility>
               <show id="mbs:confidentialName" label="confidentialName" label-id="confidentialName" for-mode="view" />
            </field-visibility>
         </form>
      </forms>
   </config>
4 - I have added the following translations into a slingshot.properties (itself declared in the custom-slinghsot-application-context.xml) :

aspect.mbs_status.mbs_statusName=Statut
aspect.mbs_status.mbs_statusDate=Date de statut
aspect.mbs_confidentialName=Confindentialit\u00e9

aspect.mbs_status.mbs_statusDate.label=Date de Statut
aspect.mbs_status.mbs_statusName.label=Statut
aspect.mbs_status.mbs_confidentialName.label=Confindentialit\u00e9

aspect.mbs_status.mbs_statusDate.title=Date de Statut
aspect.mbs_status.title.mbs_statusName.title=Statut
aspect.mbs_status.mbs_confidentialName.title=Confindentialit\u00e9

aspect.mbs_status.property.mbs_statusName.title=Statut
aspect.mbs_status.property.mbs_statusDate.title=Date de statut
aspect.mbs_confidential.property.mbs_confidentialName.title=Confindentialit\u00e9

None of the above declaration works.

If anyone has a solution, thx by advance

Bertrand

Outcomes