Hello Community,
there were two reports about strange files, that were suddenly created, e.g. cmsimple/languages/js.php and cmsimple/languages/jsconfig.php (see http://www.cmsimpleforum.com/viewtopic.php?f=10&t=4717 and http://www.cmsimpleforum.com/viewtopic.php?f=16&t=4697). It was not totally clear, what has caused the creation of those files, but the files were obviously created by CMSimple_XH resp. the plugin loader as copies of the default language files. So it seems, the secondary language detection is a bit oversensitive.
Gert suggested to change the detection of secondary languages from the previous check for 2 character folders to something like it's done as for subsites. I think that's basically a good idea. Shall we do so for CMSimple_XH? Another pro: CMSimple_XH could than be installed in folders with 2 characters.
The drawback: after updating to the first version of CMSimple_XH that integrates the modified detection, all secondary language folders of the site have to be added the empty file that signals the secondary language.
Christoph
Detection of Secondary Language Folders
Detection of Secondary Language Folders
Christoph M. Becker – Plugins for CMSimple_XH
Re: Detection of Secondary Language Folders
Seems to be a consitent way of handling subsites and secondary languages to me. If it improves stability, and it seems that it does, we could do it. Roadmap for 1.6?
Re: Detection of Secondary Language Folders
I'd already put it on the roadmap for 1.5.4 yesterday. But of course, it could be moved.svasti wrote:Roadmap for 1.6?
BTW: shouldn't we set a deadline for new ideas for 1.5.4? Otherwise it might never be released
Christoph M. Becker – Plugins for CMSimple_XH
Re: Detection of Secondary Language Folders
Yes. Gert -- it seems to me -- was so annoyed with our slowness that he now is building his own CMSimple-raceboat.cmb wrote:BTW: shouldn't we set a deadline for new ideas for 1.5.4? Otherwise it might never be released
Re: Detection of Secondary Language Folders
Well, setting a deadline for new ideas and actually releasing the new version are two very different animals. As far as I'm concerned, we should release 1.5.4 in a few weeks.
Christoph M. Becker – Plugins for CMSimple_XH
Re: Detection of Secondary Language Folders
- No - I just have used some code from my Pluginmanager for TemplateSwitch_XH 2.0, and found a small problem regarding the POST Data handling. That's why I also have made a new version of CMSimpleCoAuthors.svasti wrote:Gert -- it seems to me -- was so annoyed with our slowness that he now is building his own CMSimple-raceboat.
On this occasion, I also have realized a few things from my (3-5 points comprehensive ) roadmap.
The development speed of CMSimpleCoAuthors is very much slower than the development speed of CMSimple_XH (and so it shall be). But my advantage is, that I have not to discuss every detail (and, of course, my small roadmap). So I can make my own (quick) decisions,
Gert
Re: Detection of Secondary Language Folders
Hello Community,
I'm not sure, if a strenghtened check for secondary language folders is still necessary, because we already fixed a loophole for CMSimple_XH 1.5.7, and consitency with subsites is no issue anymore, as these will be dropped for XH 1.6. But as it was voted upon, I have now added a check for a file .2lang which has to be put in a second language folder (and I have put it in 2lang/).
However, turning that back should be simple in the future, as I have centralized this check as XH_isLanguageFolder() which is now used all over the core.
Christoph
I'm not sure, if a strenghtened check for secondary language folders is still necessary, because we already fixed a loophole for CMSimple_XH 1.5.7, and consitency with subsites is no issue anymore, as these will be dropped for XH 1.6. But as it was voted upon, I have now added a check for a file .2lang which has to be put in a second language folder (and I have put it in 2lang/).
However, turning that back should be simple in the future, as I have centralized this check as XH_isLanguageFolder() which is now used all over the core.
Christoph
Christoph M. Becker – Plugins for CMSimple_XH