public inbox for [email protected]  
help / color / mirror / Atom feed
From: Guillaume Lelarge <[email protected]>
To: Magnus Hagander <[email protected]>
Cc: PostgreSQL www <[email protected]>
Subject: Re: Patch to make some strings available to translations
Date: Wed, 19 Mar 2008 22:24:40 +0100
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
	<[email protected]>
	<[email protected]>
	<[email protected]>

Guillaume Lelarge a écrit :
> [...]
> Next work... translatable images.
> 

I found a way to get translatables images but I can't stop thinking this 
is an ugly *ugly* hack. Here is my idea : using the func_lang on the 
href part of the img tag. For example, here is a part of the patch :

-                    <h2><img 
src="/layout/images/en/hdr_featureduser.png" width="104" height="10" 
alt="Featured User" /></h2>
+                    <h2><img 
src=func_lang("'/layout/images/en/hdr_featureduser.png'") width="104" 
height="10" alt=func_lang("'Featured User'") /></h2>

This way, each translation can add a specific path and a specific 
filename. Perhaps, we can only use the path. In my tests, I use 
/layout/images/fr instead of /layout/images/en.

Do you have any comments on this dirty idea ? :) if you think this is 
something doable, I can quickly build a small patch.

But my real issue is doing the actual images... I'm not good a this :)


-- 
Guillaume.
  http://www.postgresqlfr.org
  http://dalibo.com



view thread (20+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: Patch to make some strings available to translations
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox