Hi Charles,

Thanks for your report.

Le 27/06/2011 19:35, Charles Plessy a écrit :

> I am using po4a for a static XHTML web site, and realised that lang attributes
> were not tranlsated.  For instance, the Japanese pages contains the following.
> 
> <html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="fr">
> 
> It does not seem to cause big problem, but just in case, would it be possible
> to automatically translate these attributes.

The lang attribute is already automatically translated. In order to
translate the xml:lang one, adding the “attributes=xml:lang” option is
enough for your purpose, as documented in Locale::Po4a::Xml(3).

I don't know if we want to make this attribute automatically (i.e. by
default) translated, any opinion about it?

Regards

David


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to