Re: Multilingual site options?
Christian Stocker <[email protected]>
| Newsgroups | gmane.comp.cms.bitflux.general |
|---|---|
| Organization | Bitflux GmbH |
| Message-ID | <[email protected]> |
On 3.10.2005 20:28 Uhr, Simon Rönnqvist wrote:
> Hi!
>
> I tried something similar to what you suggested
> In config.xml:
> <sitedescription_en allowFromDB="true">This is my Flux CMS Site</
> sitedescription_en>
> <sitedescription_sv allowFromDB="true">Detta ar min Flux CMS
> Site</sitedescription_sv>
> <sitedescription_fi allowFromDB="true">Tama on Flux CMS
> sivustoni</sitedescription_fi>
> (Couldn't btw. find out how to get umlaut characters accepted in the
> config.xml tags above.)
Just type them and save the file as UTF-8. Works for me
>
> 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="true" here, that should prevent the
entity encoding.
>
> Then when I tried to add new dbform options I get the following (but I
> can change the names of existing variables though):
> The given query was not valid in file /home/streng/www/inc/XML/
> xml2db.php at line 226
> [Last query: insert into bxcms_options (name, value, isarray, id)
> values ('sitedescription_en', 'trubadour, singer, entertainer &
> conferencier', '0', '13')] [Native code: 1062] [Native message:
> Duplicate entry '13' for key 1]
> MDB2 Error: already exists
Works fine for me. did you click on "Make new entry" before? And
obvious, but nevertheless, there was no other "sitedescription_en" name
in that table?
>
> 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.)
See above.
> Is it btw. possible to edit the standard site-options form so that one
> could add variables of one's own (and take away those which one doesn't
> want to let the customer touch), so that the customer wouldn't have to
> dig through the dbforms?
You have to edit inc/bx/plugins/admin/siteoptions.php for that. No easy
config switches for this currently.
chregu
--
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