AnsweredAssumed Answered

Custom content type bundle messages problem

Question asked by maciekmoczkowski on Jun 2, 2009
Hi,
I have problem that bundle messages for my custom type does not work.

My type definition:
   <namespaces>
      <namespace uri="custom.model" prefix="custom" />
   </namespaces>
 
   <types>
      <type name="custom:holRequest">
         <title>holiday request</title>
         <parent>cm:content</parent>
         <properties>
            <property name="custom:startDate">
               <type>d:date</type>
               <mandatory>true</mandatory>
            </property>
            <property name="custom:endDate">
               <type>d:date</type>
               <mandatory>true</mandatory>
            </property>
            <property name="custom:numberOfDays">
               <type>d:int</type>
               <mandatory>true</mandatory>
            </property>            
         </properties>
      </type>
   </types>

Bundle registered with model:
   <!– Registration of new models –>
   <bean id="extension.dictionaryBootstrap3" parent="dictionaryModelBootstrap"
      depends-on="dictionaryBootstrap">
      <property name="models">
         <list>
            <value>alfresco/extension/holRequest-model.xml</value>
         </list>
      </property>
      <property name="labels">
         <list>
            <value>alfresco/messages/holRequest-messages</value>
         </list>
      </property>
   </bean>

Bundle file holRequest-messages_pl_PL.properties:
custom_holRequest.description=Wniosek urlopowy
custom_holRequest.type.custom_holRequest.title=Wniosek urlopopwy
custom_holRequest.type.custom_holRequest.description=Wniosek urlopopwy
custom_holRequest.property.custom_startDate.title=Pocz\u0105tek urlopu
custom_holRequest.property.custom_startDate.description=Data pocz\u0105tku urlopu
custom_holRequest.property.custom_endDate.title=Koniec urlopu
custom_holRequest.property.custom_endDate.description=Data ko\u0144ca urlopu
custom_holRequest.property.custom_numberOfDays.title=Ilo\u015B\u0107 dni
custom_holRequest.property.custom_numberOfDays.description=Ilo\u015B\u0107 dni urlopu

Client view of type registered as:
   <config evaluator="node-type" condition="custom:holRequest">
      <property-sheet>
         <separator name="sep1" display-label="Holiday Request"
            component-generator="HeaderSeparatorGenerator" />
         <show-property name="custom:startDate" />
         <show-property name="custom:endDate" />
         <show-property name="custom:numberOfDays" />
      </property-sheet>
   </config>

And unfortunatelly while viewing or editing document of this type I see still:
   startDate:   2 czerwiec 2009
   endDate:   9 czerwiec 2009
   numberOfDays:   3
insted of my bundled messages.

Any hint? Thanks in advance.
Maciej

Outcomes