trans-coord-devel
[Top][All Lists]
Advanced

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

Re: Selectively localized images


From: Ineiev
Subject: Re: Selectively localized images
Date: Sat, 22 Oct 2011 21:19:42 +0400
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110922 Thunderbird/3.1.15

On 10/21/2011 01:03 PM, Ineiev wrote:
(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" -->
+<!--#if expr="-A ${DOCUMENT_ROOT}${IMAGE_BASE}${LANGUAGE_SUFFIX}${IMAGE_EXT}" 
-->

This doesn't work as I intended: the expression will always be true,
it checks for access rather than file existence.

It could be rewritten like

<!--#set var="IMAGE_BASE" value="/philosophy/category" -->
<!--#set var="IMAGE_EXT" value=".png" -->
<!--#set var="IMAGE_LINK"
 value="<img src=\"${IMAGE_BASE}${LANGUAGE_SUFFIX}${IMAGE_EXT}\" />" -->
<!--#echo encoding="none" var="IMAGE_LINK" -->

provided that .symlinks redirect all non-existing localizations
to the English image; when a new image is added, a link should be
removed. in theory, it can be done with a cron job running, say,
every five minutes.



reply via email to

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