cancel
Showing results for 
Search instead for 
Did you mean: 

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

mathias_lin
Star Contributor
Star Contributor
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.
3 REPLIES 3

parzgnat
Star Contributor
Star Contributor
Your syntax looks correct and it seems changes should be picked up from slingshot.properties.  I have encountered a lot of strange caching issues with the I18N resource bundles in Share.  Sometimes I've restarted multiple times and nothing happens and then all of a sudden the labels will start showing up correctly.  Have you tried stopping your web server and clearing the work folder and restarting?  If that still doesn't work, is there another web server that you can try to deploy Share to?

I restarted Tomcat multiple times. I've now also cleared the work folder, and restarted. But still having the same issue. Don't have another web server ready at the moment. I will further investigate the issue on the current one.

staifresco
Champ in-the-making
Champ in-the-making
Hi,
have you tried to put your slingshot.properties inside the "alfresco/web-extension/messages" dir ?