There are two different ways to localize the Approvals Workflow Plugin:
- Overloading the properties file
- Bundling the localised properities into the plugin file
First you have to extract the properties file you have to localise:
1. Download the latest version of the plugin
2. Copy the file into a temporary location TEMPLOCATION
3. Create a temporary directory (TEMPDIR, change to that directory and extract the content of the plugin:
jar xvf TEMPLOCATION/approvalsworkflow-1.1.jar
4. The file approvalsworkflow.properties contains all the texts that can be localized. Ignore all the entries with prefix approvalsworkflow.publishing as they are obsolete
Overloading the properties file
5. copy the localized file as approvalsworkflow.properties into CONFLUENCEBASEDIR/WEB-INF/classes
| You have to copy the file to all the nodes in the cluster |
Bundling the localised properties
| This is required only if you want to redistribute the plugin (i.e. to another nodes) |
5. Create your own locale of the file, following the appropriate naming convention (i.e. approvalsworkflow_de.properties for German). Copy the file to TEMPDIR
6. Re-package the plugin. It is a good idea to use a different name for the jar file (i.e. approvalsworkflow-1.1-de.jar for a German l10n)
jar cf TEMPLOCALTION/approvalsworkflow-1.1-de.jar META-INF approvalsworkflow* atlassian-plugin.xml com images templates
