Created
May 22, 2015 18:50
-
-
Save douglascrp/7c41ba8f8bf8bdd744d2 to your computer and use it in GitHub Desktop.
How to replace Share localization properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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