Is it possible to have a translation use a different scroll viewport theme?

61 views
Skip to first unread message

jonathan...@kwe.li

unread,
Oct 11, 2017, 5:52:53 AM10/11/17
to Scroll Viewport Developers
The translations and viewport add ons have been installed, however the navigation of the site is in the theme. I need to translate that navigation as well. Is there any way to change the theme used, based on which language the page is displayed in? 


Jens Rutschmann (K15t Software)

unread,
Oct 12, 2017, 4:32:20 AM10/12/17
to scroll-vi...@googlegroups.com
Hi Jonathan,

you cannot switch to a different theme while changing languages within a viewport.

There are basically two possible approaches to this problem:

1)
You adapt your theme so it evaluates the $languages property and then render the language-specific parts inside your theme in a different way.
See here:
- https://help.k15t.com/scroll-viewport/page-context-99878119.html
- https://help.k15t.com/scroll-viewport/languages-107613719.html

2)
In case you also use Scroll Versions you could publish the individual languages to separate spaces, create individual viewports for these
spaces and then implement the switcher yourself. This way you could set up different themes for each viewport.

Since in 2) the linking can get complicated I'd suggest you first try 1).

Let me know if you have any further questions.


Cheers,
Jens
Reply all
Reply to author
Forward
0 new messages