I’ve become very fond of YAMS; the latest stable (released) version works well.
-
- 121 Posts
Hi,
quick question: so YAMS 1.1.9 is compatible with Evo 1.0.5?
A client of mine wants a new Evo website with multilingual options, that’s why I’m asking. Thanks!
For some reason that version read and writes the YAMS config file in latin-1, which of course breaks any other languages, even the Russian and Japanese that it comes with. The earlier release version reads and writes it as utf-8 with no problems. I’ve tried on three completely different systems and servers with the same results.
I even went so far as to copy the config file by hand and save and upload as utf-8, and while the Manager’s File Manager opened it in utf-8, it got opened by YAMS as latin-1 and any changes made in YAMS caused the file to be written as latin-1.
That said, I’m doing just fine with the current release version; between YAMS and Jot and Ditto with QM and MM multi-language sites are a breeze to maintain.
It’s only the config file for the YAMS module that does this, making the module unusable in any but latin-1 languages (French is fine).
-
- 307 Posts
this is funny as YAMS config checks the charset used in the manager to use the same for the front end then if the manager language is set on utf8 when installed it should work !
got to check this as i’ve a website coming to be done in five languages including ltr ones (arabic)
Have swing
réfléchir avant d'agir
No problem with the front-end, it’s only with reading/writing that YAMS config.inc.php file. At first I thought it must be some odd setting in my PHP or something, but it works fine via the Manager’s File Manager, and with my text editor and FTP. Only when YAMS reads or writes to it, YAMS insists on using latin-1 for it. And it’s not a problem at all with version 1.1.9. There is a change in the code to using some PHP multilingual function or another (I forget what it is now), but it was getting too involved and I did need to get the site working, so I gave up on trying to pinpoint exactly why it’s doing that.
I think there’s something funny going on in this function
//----------------------------
// itsEncodingModifierMode
//----------------------------
$contents .=
' // The encoding modifier.' . PHP_EOL
. ' // \'manager\' means use the manager setting' . PHP_EOL
. ' // \'u\' if webpage content is in UTF-8' . PHP_EOL
. ' // \'\' otherwise' . PHP_EOL
. ' $this->itsEncodingModifierMode = '
. YamsUtils::AsPHPSingleQuotedString( $this->itsEncodingModifierMode )
. ';' . PHP_EOL;