Re: Multilingual site options?
Simon Rönnqvist <[email protected]>
| Newsgroups | gmane.comp.cms.bitflux.general |
|---|---|
| Message-ID | <[email protected]> |
On Sunday 13 November 2005 17:00, Christian Stocker wrote:
> On 13.11.2005 1:04 Uhr, Simon Rönnqvist wrote:
> > Hi!
> >
> > I'm coming back to an old post here... but hope you can refresh your
> > memory by checking archive... ;-)
> >
> > On Oct 6, 2005, at 12:43, Christian Stocker wrote:
> >> On 6.10.2005 11:35 Uhr, Simon Rönnqvist wrote:
> >>> On Oct 3, 2005, at 21:28, Simon Rönnqvist wrote:
> >>>> However, when I changed the sitedescription variable to
> >>>> sitedescription_fi I find another problem... all the scandinavian
> >>>> characters come out encoded on the webpage.
> >>>> Or let's say ä comes out as &#228; in the XHTML code and
> >>>> therefore the browser views ä instead of having it in the code...
> >>>> ;-) (I remember some problem like this with the standard usage of
> >>>> sitename, etc. some time earlier on, but that one got fixed.)
> >>>
> >>> But do you have any suggestion on a solution for this?
> >>
> >> It was in my last mail, but maybe not really clear
> >> ***
> >>
> >>> And then this in master.xsl:
> >>>> <xsl:variable name="sitedescription" select="php:functionString
> >>>> ('bx_helpers_config::getOption',concat('sitedescription_',$lang))"/>
> >>
> >> try adding disable-output-escaping="yes" to where you do
> >> <xsl:value-of select="$sitedescription"/>, that may help. Or we have to
> >> change bx_helpers_config::getOption, so that it resolves the entities.
> >> But try the disable-output-escaping first :)
> >
> > Yes, it works... for the H2-tag... but how to make Google happy?
> > <meta name="description" content="{$sitedescription}"/>
>
> <meta name="description">
> <xsl:attribute name="content"><xsl:value-of select="$sitedescription"
> disable-output-escaping="yes"/></xsl:attribute>
> </meta>
>
> (untested)
I tried it with the result below...
cheers, Simon
PopoonXSLTParseErrorException
Message: XSLT Error in /home/streng/www/themes//streng/static.xsl
Code: 0
userInfo:
runtime error: file /home/streng/www/themes/streng/master.xsl line 56 element
attribute<br /> xsl:attribute : node already has children<br />
In File /home/streng/www/inc/popoon/components/transformers/xslt.php Line 106
stacktrace
#0 /home/streng/www/tmp/_home_streng_www_sitemap_sitemap.xml(1561):
popoon_components_transformers_xslt->DomStart(Object(DOMDocument))
#1 /home/streng/www/inc/popoon/sitemap.php(178): include('/home/streng/ww...')
#2 /home/streng/www/inc/popoon/sitemap.php(164):
popoon_sitemap->runSitemap('./tmp/_home_str...')
#3 /home/streng/www/inc/popoon/popoon.php(182):
popoon_sitemap->__construct('/home/streng/ww...', 'index.html',
Object(bx_config))
#4 /home/streng/www/inc/popoon/popoon.php(160):
popoon->run('/home/streng/ww...', 'index.html', Object(bx_config))
#5 /home/streng/www/index.php(28): popoon->__construct('/home/streng/ww...',
'index.html', Object(bx_config))
#6 {main}
Error... more text here
--
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms