[Po4a-devel] Forcing a string to be translated

Nicolas François nicolas.francois at centraliens.net
Fri Jul 25 22:51:55 UTC 2008


Hi,

On Fri, Jul 25, 2008 at 03:07:27PM -0300, josx at interorganic.com.ar wrote:
> Hi!
> I am trying to know how to force a string to be translated.
> I am using and xhtml and i want to change the path of images in every language 
> (beacuase the images have texto on it)
> I was chatting with nekral in IRC and He told me to remember him this  on the 
> list.

You can either add
 -o inline="<img>"
or
 --o attributes "<img>src"
options.

The first will cause images to appear inline in text paragraph (and the
image's source will be translated as part of the paragraph).

In the second case, image are (this is also the default behavior)
considered as a block separator, but the src attribute of the img tags
will be extracted and translator will have to translate them (then they
can choose to image.jpg to image-fr.jpg).

Depending on the file, using the first or the second will give a better
result.

Best Regards,
-- 
Nekral



More information about the Po4a-devel mailing list