httpd-docs mailing list archives

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

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 "httpd-manual.conf.in" file:

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

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

  URI: filter_arch.png.tr.utf8
  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,
Nilgün


---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Mime
View raw message