Page 2 of 2

Re: Language depending templates

Posted: Fri Oct 07, 2016 6:57 pm
by Tata
lck wrote:Seems to work, see...
Das habe ich auch gesehen, und die 2 templates habe ich leer gelassen nur mit GERMAN/ENGLISH TEMPLATE texte drin. Die 2 templtaes sind aber nicht sichbar. Nicht local noch am server.
Ich l;sche ned Anruf vom template. In userfuncs ist es, wie empfohlen.

Re: Language depending templates

Posted: Fri Oct 07, 2016 7:14 pm
by Tata
lck wrote:@Tata: Du hast einige Fehler im Code
Hoffentlich gut verstanden und alles richtig gemacht.

Die Browser-Console bringt auch einen Fehler:
webkitRequestAnimationFrame' is vendor-specific. Please use the standard 'requestAnimationFrame' instead. .................................. Please use the standard 'requestAnimationFrame' instead.
Damit kann ich wohl nichts zu tun. Es muss tief im Plugins Code stecken. Hinein wage ich besser nicht reinsteigen.
Auch nach dem CGI restart kommt das Slideshow nicht an.
Local/Server
[ external image ]

Re: Language depending templates

Posted: Fri Oct 07, 2016 9:28 pm
by cmb
Tata wrote:
lck wrote:Die Browser-Console bringt auch einen Fehler:
webkitRequestAnimationFrame' is vendor-specific. Please use the standard 'requestAnimationFrame' instead. .................................. Please use the standard 'requestAnimationFrame' instead.
Damit kann ich wohl nichts zu tun. Es muss tief im Plugins Code stecken. Hinein wage ich besser nicht reinsteigen.
This message is harmless, and does not actually point at a real issue. It's about a part of Slideshow_XH's JavaScript where the webkitRequestAnimationFrame property never gets accessed if the warning is thrown – the message is apparently emitted during compilation. I'll fix that nonetheless.

Re: Language depending templates

Posted: Sat Oct 08, 2016 7:55 am
by Tata
Hm, whatever I tried - even my old post (http://cmsimpleforum.com/viewtopic.php? ... t=template - this method has worked with earlier version), no recent hint nor any modification works. The $sl is accepted only for language strings loading.
I have tried
[mytemplate]
template.htm
template-de.htm
templakte-en.htm

and
[mytemplate]
template.htm
[mytemplate-de]
template.htm
[mytemplate-en]
template.htm

nothing works.

It seems to me, that I will need to define the template on each "other-language-page" separately.

Re: Language depending templates

Posted: Sat Oct 08, 2016 8:26 am
by cmb
Tata wrote:It seems to me, that I will need to define the template on each "other-language-page" separately.
Not necessary:
cmb wrote:However, you can alternatively set $tx['subsite']['template'] what must be done in the language file(s) directly.

Re: Language depending templates

Posted: Sat Oct 08, 2016 2:59 pm
by Tata
cmb wrote:Not necessary:
However, you can alternatively set $tx['subsite']['template'] what must be done in the language file(s) directly.
Ooooooh!!! :twisted:
That's the thing I wrote about this week!!! It seems some mental illness goes on by my age. I assumed this variable to be a remnant from old versions (as the 2site feature was officially removed).
That's just like in our saying: One can't see the forest because of a tree.

Re: Language depending templates

Posted: Sat Oct 08, 2016 3:16 pm
by cmb
Tata wrote:
cmb wrote:Not necessary:
However, you can alternatively set $tx['subsite']['template'] what must be done in the language file(s) directly.
I assumed this variable to be a remnant from old versions (as the 2site feature was officially removed).
Yeah, we might consider to rename it to $tx['language']['template'].

Re: Language depending templates

Posted: Sat Oct 08, 2016 6:33 pm
by Tata
+1
There are no subsites assumed in basic installation. Although the 2lang can be used for 2site purpouse (requiring some tricks that not each user is familiar with).
Anyway, thanks for the hind (my shame). The actualized website is up again. Translation are to come.