Skip to content

Instantly share code, notes, and snippets.

@douglascrp
Created May 22, 2015 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save douglascrp/7c41ba8f8bf8bdd744d2 to your computer and use it in GitHub Desktop.
Save douglascrp/7c41ba8f8bf8bdd744d2 to your computer and use it in GitHub Desktop.
How to replace Share localization properties
Inside your share project, use you "-context.xml" file to include a new bean like this:
<bean id="custom.project.resources" class="org.springframework.extensions.surf.util.ResourceBundleBootstrapComponent">
<property name="resourceBundles">
<list>
<value>alfresco.web-extension.messages.custom</value>
</list>
</property>
</bean>
Create a properties file, in this sample, it should be:
alfresco/web-extension/messages/custom.properties
Inside this file, include your custom properties, like:
date-format.default=dd/mm/yyyy HH:MM:ss
date-format.defaultDateOnly=dd/mm/yyyy
date-format.shortDate=dd/mm/yyyy
date-format.longTime=HH:MM:ss
@BPCP
Copy link

BPCP commented May 22, 2015

I tried this with no luck changing the date formats on the doc preview pages or any pages that I could see. I did add
page.title=Any text

It seems to all be loading fine because I get "Any Text" on my page for a title.

I am either not setting the proper properties or ... well something else.

Thanks again for your help, I really appreciate it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment