Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note, my environment is windows, mysql, tomcat.

Grouper v2.2+ translations

If you want to add a localization to the grouper UI text (example for french):

Add this to your grouper-ui.properties (index must increment from the base file:

Code Block

# language for this bundle
grouper.text.bundle.1.language = fr

# country for this bundle
grouper.text.bundle.1.country = fr

# filename in the package grouperText that is before the .base.properties, and .properties
grouper.text.bundle.1.fileNamePrefix = grouperText/grouper.text.fr.fr

Add a grouperText/grouper.text.fr.fr.base.properties and grouper.text.fr.fr.properties

Have this at the top of grouper.text.fr.fr.base.properties

Code Block

########################################
## Config chaining hierarchy
########################################

# comma separated config files that override each other (files on the right override the left)
# each should start with file: or classpath:
# e.g. classpath:grouperText/grouper.text.en.us.base.properties, file:c:/temp/grouperText/grouper.text.en.us.properties
text.config.hierarchy = classpath:grouperText/grouper.text.fr.fr.base.properties, classpath:grouperText/grouper.text.fr.fr.properties

Change your browser to prefer french from france, (either wait a bit or bounce app server), and hit the UI and you should see your french text

Code changes

In the tomcat server.xml  Edit the <Connectors to have uri encoding of utf8, e.g.  <Connector  URIEncoding="UTF-8"

...