Translating
上传用户:huihesys
上传日期:2007-01-04
资源大小:3877k
文件大小:2k
- Translating WebMail to new languages
- ====================================
- WebMail comes with much localization support. Users may change easily between languages
- that are available.
- WebMail will automatically detect all installed languages.
- There are two "ways" to translate WebMail. One for the source distribution and one for
- the binary distribution.
- 1. The "make" way
- -----------------
- Here I will explain how to translate WebMail to a new language if you are using the
- WebMail source and will compile it anyway
- 1. Copy data/languages/en (or de) to data/languages/your_language
- 2. Translate all the html documents in your new directory. You should have a look at
- the Templates file in this directory on WebMails HTML extensions.
- 3. copy data/WebMailStringResources_en.properties to
- data/WebMailStringResources_your_language.properties and translate it.
- This file mainly contains short Strings that don't fit into the templates.
- 4. edit the makefile in the data directory and add your language to the "LANGUAGES"
- variable.
- 5. Issue "make" to rebuild WebMail.
- 2. The "binary distribution" way
- --------------------------------
- That's what you can do if you only have the binary distribution of WebMail or don't
- want to rebuild WebMail with make.
- 1. Create a directory where you will work on (e.g. /usr/local/src/webmail )
- 2. Change to that directory and unzip webmail/lib/templates/html-templates_en.zip
- there.
- 3. You now have a subdirectory called html-templates. Translate all html files therein
- 4. Generate a zipfile of the translated directory using
- "zip -q html-templates_yourlang.zip html-templates/ html-templates/images"
- 5. Copy the new ZIP-file back to the WebMail templates directory
- (webmail/lib/templates)
- 6. Copy the file WebMailStringResources_en.properties in the templates-directory
- to WebMailStringResources_yourlang.properties and translate the Strings there
- Regardless which way you take, please inform me if you have a new translation for
- WebMail so that I may include it in the distribution or offer it for download on the
- webpage.