AnsweredAssumed Answered

Where to place the I18N message properties for a custom (cm:storeSelector) aspect in Alfresco Share?

Question asked by mathias.lin on Oct 22, 2013
Latest reply on Oct 22, 2013 by mathias.lin
I enabled the cm:storeSelector aspect in Alfresco Share 4.1.x, as described in the "Alfresco Administrator Guide" (pg. 281).

I tried adding these messages


    aspect.cm_storeSelector=Store Selector
    cm_storeSelector=Store Selector


both under

   
/shared/classes/alfresco/messages/slingshot.properties


and

   
/shared/classes/alfresco/extension/webclient.properties


I've also tried adding

   
cm_contentmodel.aspect.cm_storeSelector.title=Store Selector


to

   
shared/classes/alfresco/messages/content-model.properties


as well.

This is my **share-config-custom.xml:**


    <alfresco-config>
                       
       <!– cm:content type (existing nodes) –>
       <config evaluator="node-type" condition="cm:content">
          <forms>
             <!– Default form configuration for the cm:content type –>
             <form>        
                <field-visibility>
                    <show id="cm:storeName" />           
                    </field-visibility>              
             </form>
          </forms>
       </config>
      
       <!– Document Library config section –>
       <config evaluator="string-compare" condition="DocumentLibrary">
          <!–
             Used by the "Manage Aspects" action
   
             For custom aspects, remember to also add the relevant i18n string(s)
                cm_myaspect=My Aspect
          –>
          <aspects>
             <!– Aspects that a user can see –>
             <visible>
                <aspect name="cm:storeSelector">                 
                  <title>Store Selector</title>
              </aspect>
             </visible>
            </aspects>
       </config>  
      
    </alfresco-config>


Problem is: the aspect name does not show in the Alfresco Share UI ("Manage Aspects" Dialog) - instead it only shows the string `aspect.cm_storeSelector` on the right hand side:

[img]http://i.stack.imgur.com/5mTfX.png[/img]

while it shows fine on Alfresco Explorer:

[img]http://i.stack.imgur.com/Iwd2e.png[/img]

I am wondering where to place the I18N strings correctly for Alfresco Share.

Outcomes