mirror of
https://github.com/ImageMagick/ImageMagick.git
synced 2026-06-12 15:37:14 +02:00
...
This commit is contained in:
+1
-1
@@ -3071,6 +3071,7 @@ CONFIG_EXTRA_DIST = \
|
||||
config/ImageMagick.rc \
|
||||
config/ImageMagick.rdf.in \
|
||||
config/lndir.sh \
|
||||
config/locale.md \
|
||||
config/locale.xml \
|
||||
config/log.xml \
|
||||
config/magic.xml \
|
||||
@@ -3079,7 +3080,6 @@ CONFIG_EXTRA_DIST = \
|
||||
config/quantization-table.xml \
|
||||
config/sRGB.icm \
|
||||
config/thresholds.xml \
|
||||
config/Translation.md \
|
||||
config/type-apple.xml.in \
|
||||
config/type-dejavu.xml.in \
|
||||
config/type-ghostscript.xml.in \
|
||||
|
||||
+1
-1
@@ -59,6 +59,7 @@ CONFIG_EXTRA_DIST = \
|
||||
config/ImageMagick.rc \
|
||||
config/ImageMagick.rdf.in \
|
||||
config/lndir.sh \
|
||||
config/locale.md \
|
||||
config/locale.xml \
|
||||
config/log.xml \
|
||||
config/magic.xml \
|
||||
@@ -67,7 +68,6 @@ CONFIG_EXTRA_DIST = \
|
||||
config/quantization-table.xml \
|
||||
config/sRGB.icm \
|
||||
config/thresholds.xml \
|
||||
config/Translation.md \
|
||||
config/type-apple.xml.in \
|
||||
config/type-dejavu.xml.in \
|
||||
config/type-ghostscript.xml.in \
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
Translation is fairly straight-forward. Copy `english.xml` to _locale_.xml. Change any messages from English to the target language. As an example:
|
||||
|
||||
```
|
||||
<message name="UnableToOpenBlob">
|
||||
unable to open image
|
||||
</message>
|
||||
```
|
||||
becomes
|
||||
```
|
||||
<message name="UnableToOpenBlob">
|
||||
impossible d'ouvrir l'image
|
||||
</message>
|
||||
```
|
||||
in French. You then need to copy the _locale_.xml to the same location as `english.xml`, e.g. `/usr/local/ImageMagick-7/_locale_.xml`. Make sure your your _locale_.xml file is referenced in the `locale.xml` configuration file.
|
||||
|
||||
The final step is to contribute _locale_.xml to ImageMagick so we can include it in a future release of ImageMagick so the community can benefit from the translation.
|
||||
Reference in New Issue
Block a user