AnsweredAssumed Answered

Just can't get localizations to show

Question asked by ustamills on Sep 18, 2013
Latest reply on Sep 18, 2013 by ustamills
I've tried following Jeff Potts <a href="http://forums.alfresco.com/forum/developer-discussions/content-modeling/custom-content-model-tutorial-03212012-1446">article</a>, plus I've been reading the <a href="http://wiki.alfresco.com/wiki/Data_Dictionary_Guide#Content_Model_Schema_Tour">wiki article</a> about the content model.

I just can't figure out the secret sauce.  I know I have my files in the right place, because I intentionally mis-spelled the path to the properties file as a means of testing.  It complained until I put it back. So that tells me it saw the registration and the actual file.

I also know the customized document types are being found because I can set the new doc types via a rule or directly in SHARE.  However, my forms show the ugly non-localized field labels. An example:  I have three fields for a contract and the labels look like this:  al:vendor, al:effectiveStartDate, al:effectiveEndDate.

Here are my code snippets that I thought might make the forms better.

From the custome content model (ellided to save space)




<model name="al:altourmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
  <!– Optional meta-data about the model –>
  <description>Altour Model</description>

  <namespaces>
    <namespace uri="http://www.altour.com/model/content/1.0" prefix="al" />
  </namespaces>

    <!– ================== Contract =================== –>
    <type name="al:contract">
      <title>Altour Contract</title>
      <parent>al:doc</parent>
      <properties>
        <property name="al:vendor">
          <type>d:text</type>
          <mandatory>false</mandatory>
        </property>
        <property name="al:effectiveStartDate">
          <type>d:datetime</type>
          <mandatory>false</mandatory>
        </property>
        <property name="al:effectiveEndDate">
          <type>d:datetime</type>
          <mandatory>false</mandatory>
        </property>
      </properties>
    </type>



And here is a snippet from my messages file. I tried several different syntaxes below because the one I thought the Wiki article said I should use (the last) didn't work either.


############################################################
#
#  Contract
#
type.al_contract=Contract
search.form.desc.al_contract=search for Contracts
property.vendor=Vendor
al_altourModel.property.effectiveStartDate=Effective Start Date
al_altourModel.property.al_effectiveEndDate=Effective End Date



I've tried every permutation I could come up with to get the labels to change, and I get nothing.
Any help would be GREATLY appreciated.

Drew

Outcomes