Adding a new translation
Bedework has english, spanish and german translations included by default. These translations handle the translation of literals (‘save’, ‘cancel’, etc.) for your language. So, if your navigator has one of those languages as preferred language, no any other steps are required to see Bedework on in your language.
If If you need a language other language than these, take a look at a folder like (for public calendar):
…/jboss-5.1.0.GA/server/default/deploy/ROOT.war/calrsrc.MainCampus/es_ES/default
There you can find the files containing the strings for Spanish translation as an example. Changes must be done mainly at strings.xsl file. You should add a new folder, in a similar fashion with your corresponding translations as:
...
perform the following steps. These steps outline the process used for the MainCampus calendar suite of the public web client, but the process would be the same for a different public calendar suite or for the the personal web client.
Copy an existing translation, e.g. "default", "es_ES", or "de_DE" found in the Bedework source in
<quickstart>/bedework/deployment/webpublic/webapp/resources/demoskins/MainCampus/Code Block language bash title Example: cp <quickstart>/bedework/deployment/webpublic/webapp/resources/demoskins/MainCampus/es_ES <quickstart>/bedework/deployment/webpublic/webapp/resources/demoskins/MainCampus/fr_CA
- Update the MainCampus/YOUR_LANG/strings.xsl and MainCampus/YOUR_LANG/localeSettings.xslfiles inside your new locale directory. Most changes will be to the strings.xsl file, translating the many strings used by the web client.
- The strings.xsl file contains a long list of strings used in the web client user interface.
- The localeSettings.xsl file contains layout templates for locale-specific date handling. At the moment, this includes only the settings for the javascript calendar widget used in the public web client.
- IF you wish to use your new locale directory as the default language,
- rename MainCampus/default to MainCampus/en_US
- rename your new locale directory to MainCampus/default
When Bedework is rebuilt, your locale directory will be deployed to:
<quickstart>/jboss-5.1.0.GA/server/default/deploy/ROOT.war/calrsrc.MainCampus/YOUR_LANG/default
...
If you don't wish to rebuild, you can copy your directory in manually.
Note | ||
---|---|---|
| ||
If you're using Apache in front of Bedework, and you've moved your theme directories to be served out of Apache, make sure you manually copy your new locale directory to that location. |
Add your new locale to the list of supported locales in the administrative web client
In the admin client, visit System --> Manage System Preferences, and enter the locales in the "Supported Locales" field. (It is the last field on the page.) This field accepts a comma separated list of locales (e.g. "en_US,es_ES" ).