[pmwiki-users] 2.2 ToDo: W3C validate default skin
carlos.ab at gmail.com
carlos.ab at gmail.com
Sat Nov 17 17:05:43 CST 2007
Em Sexta 16 Novembro 2007 16:48, SteP escreveu:
> Patrick R. Michaud wrote:
> >> > Are the xml:lang= and lang= attributes required? If so, where
> >> > should we get them from?
> >>
> >> One idea is getting the value from $lang (XL functions). In that case
> >> you might have to add 'en' as default if XLPage is not used.
> >
> > Yes, but XLPage currently doesn't require that the first parameter
> > be a valid ISO language specifier. And it might make more sense
> > if the translation strings in XLPage actually provided the lang
> > attribute to use (same as how we let XLPages specify character
> > encoding and time format).
> >
> > Pm
>
> It's all hypothetical by now, since the validation issue doesn't need
> xml:lang; however, could there be a solution compatible with the
> multilanguage recipe which defines a $userlang variable and changes page
> language dynamically?
I think it is possible to use something like this
(:if userlang es:)
(:div lang=es :)
(:divend:)
(:ifend:)
Made a small test at http://www.pmwiki.org/wiki/Test/MultiLang but
the "xml:lang=es" part won't work.
CarlosAB
More information about the pmwiki-users
mailing list