From david at tilapin.org Tue Nov 8 15:48:01 2011 Content-Type: multipart/mixed; boundary="===============3576831296622387240==" MIME-Version: 1.0 From: =?utf-8?q?David_Pr=C3=A9vot_=3Cdavid_at_tilapin=2Eorg=3E?= To: devel at lists.po4a.org Subject: Re: [Po4a-devel] Bug#631874: po4a: [xhtml] Please translate lang attributes. Date: Tue, 08 Nov 2011 11:47:30 -0400 Message-ID: <4EB94F12.5030806@tilapin.org> In-Reply-To: 20111103024013.GI4954@merveille.plessy.net --===============3576831296622387240== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable retitle 631874 po4a: [xml] Please make xml:lang automatically translated thanks Hi Charles, the po4a upstream developers list, [ Please refer to http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D631874 for full context ] Le 02/11/2011 22:40, Charles Plessy a =C3=A9crit : > Le Mon, Oct 31, 2011 at 03:20:30PM -0400, David Pr=C3=A9vot a =C3=A9crit : >> >> The lang attribute is already automatically translated. In order to >> translate the xml:lang one, adding the =E2=80=9Cattributes=3Dxml:lang=E2= =80=9D 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? > In the case of the xml:lang, in my (limited) experience, I do not see a > situation where it would cause me problem to have it translated by defaul= t. I don't know the exact rationale of using xml:lang instead of lang, a look at some documentation [0] makes me think that the intended use of xml:lang is to allow the use of several languages in different section of a same page. (Side note: Charles, in your example, why are you using the xml:lang attribute instead of the lang one that already exists for the html tag?) 0: http://docs.oasis-open.org/dita/v1.1/OS/archspec/xmllang.html If xml:lang was translated by default, it may cause harm in the following situation (crappy novice XML inside):
Some translatable text
Du texte traduisible