httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nilgün Belma Bugüner <>
Subject Image file translations
Date Wed, 02 Jul 2008 08:52:49 GMT

I have translated the image files in filter.xml into Turkish. But I 
guess you do not have a solution yet for image file translations. (The 
package I sent to the list earlier did not any attention).

I think it will be a good start if I stress the need to do the following 
changes in "" file:

Index: conf/extra/
--- conf/extra/     (revision 672463)
+++ conf/extra/     (working copy)
@@ -14,13 +14,16 @@
     AllowOverride None
     Require all granted

-    <Files *.html>
+    <Files ~ "\.(html|png)$">
         SetHandler type-map
     # .tr is text/troff in mime.types!
     <Files *>
         ForceType text/html
+    <Files *>
+        ForceType image/png
+    </Files>

     SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja|ko|pt-br|ru|tr)/ prefer-language=$1
     RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja|ko|pt-br|ru|tr)){2,}(/.*)?$ /manual/$1$2

The reason I only cover PNG files is that I want to find a solution to 
exclude the files that require no translation. I suggest the following 
rule to be observed from now on: "The image files that require no 
translation should not be of PNG type."

Therefore after doing 
  $ rename 's/\.png$/.png.en/' *.png 
on PNG files  under "images/", the same files will be replaced by the 
a type-map file:

  $ cat filter_arch.png
  URI: filter_arch.png

  URI: filter_arch.png.en
  Content-type: image/png
  Content-language: en

  Content-type: image/png
  Content-language: tr

That is all. I do not cover the further task of copying the translated 
image files into offline document folders with bare .png extension. 
This is beyond my reach.

Best regards,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message