Re: Patch to make some strings available to translations - Mailing list pgsql-www

From Guillaume Lelarge
Subject Re: Patch to make some strings available to translations
Date
Msg-id 47E18498.4060609@lelarge.info
Whole thread Raw
In response to Re: Patch to make some strings available to translations  (Guillaume Lelarge <guillaume@lelarge.info>)
Responses Re: Patch to make some strings available to translations
List pgsql-www
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


pgsql-www by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Why do we have two mailing list, lists?
Next
From: Guillaume Lelarge
Date:
Subject: Re: Patch to make some strings available to translations