Re: Multilingual site options?

Christian Stocker <[email protected]>
Newsgroups gmane.comp.cms.bitflux.general
Organization Bitflux GmbH
Message-ID <[email protected]>

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 &amp;#228; in the XHTML code and  therefore
>>>> the browser views &#228; 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)

chregu


> 
>   cheers, Simon-- bitflux-cms mailing list
> [email protected]
> http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms

-- 
christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 1 240 56 70 | mobile +41 76 561 88 60  | fax +41 1 240 56 71
http://www.bitflux.ch | [email protected] |  GPG 0x5CE1DECB
-- 
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.