cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1 | This directory contains the ImageMagick configure files. Currently this |
| 2 | document only gives basic instructions for adding another locale to the |
| 3 | messaging subsystem: For now the only locale supported is C. To translate to |
| 4 | another locale, do the following. Assume the new locale is klingon. Type |
| 5 | |
| 6 | cp english.xml klingon.xml |
| 7 | |
| 8 | Edit klingon.xml and translate all the messages. Do not translate |
| 9 | the tags: |
| 10 | |
| 11 | <Message name="ThisIsATag"> |
| 12 | this is a message |
| 13 | </Message> |
| 14 | |
| 15 | Save the messages to the ImageMagick install directory (the directory |
| 16 | where you find the files colors.xml and delegates.xml). Edit locale.xml |
| 17 | in the ImageMagick install directory and add the locale alias to the |
| 18 | file: |
| 19 | |
| 20 | <include locale="kl_gn.IQR-6668-1" file="klingon.xml"/> |
| 21 | |
| 22 | To test the message translataions, type |
| 23 | |
| 24 | convert logo: /image.jpg |
| 25 | |
| 26 | Assuming the root partition is not writable by you, you should get |
| 27 | the message: |
| 28 | |
| 29 | convert: Unable to open file (/image.jpg) [Permission denied]. |
| 30 | |
| 31 | except in the klingon language. |
| 32 | |
| 33 | The last step is the most important. E-mail klingon.xml to |
| 34 | magick-developers@imagemagick.org with a note that you are contributing your |
| 35 | message translation to the ImageMagick project and that it can be redistributed |
| 36 | under the ImageMagick copyright. |