[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Selectively localized images

From: Ineiev
Subject: Re: Selectively localized images
Date: Fri, 21 Oct 2011 13:03:07 +0400
User-agent: Thunderbird (X11/20100623)

On 12/28/2010 09:22 PM, Yavor Doganov wrote:
What I'm thinking about is automatic prepending of .LANG (if the file
exists) without translator's intervention.

Another implementation.

(0) rewrite the link this way:

--- categories.html     20 Sep 2011 08:15:36 -0000      1.71
+++ categories.html     21 Oct 2011 08:18:44 -0000
@@ -17,5 +17,14 @@

 <p id="diagram" class="c">
-<img src="category.png" alt="" />
+<!--#set var="IMAGE_BASE" value="/philosophy/category" -->
+<!--#set var="IMAGE_EXT" value=".png" -->
+  <!--#set var="IMAGE_LANG" value="${LANGUAGE_SUFFIX}" -->
+<!--#else -->
+  <!--#set var="IMAGE_LANG" value="" -->
+<!--#endif -->
+<!--#set var="IMAGE_LINK"
+    value="<img src=\"${IMAGE_BASE}${IMAGE_LANG}${IMAGE_EXT}\" />" -->
+<!--#echo encoding="none" var="IMAGE_LINK" -->

(1) add <!--#set var="LANGUAGE_SUFFIX" value=".xy" --> to every

(2) write a section about it in translators' documentation
(there is no way to make webmasters learn about the process,
 the links have to be rewritten by translation coordinators).

Shortcomings and limitations:

(0) the <img> element won't be validated
(1) it should be at the beginning of the block
(2) it can't include translated attributes like "alt"


(0) It requires from the translator nothing
    but to commit a translated image
(1) It doesn't depend on GNUN cycles, and the localized image
    appears in the translated page immediately after committing.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]