WebsiteBaker Support (2.8.x) > Templates, Menus & Design

multi language template

(1/1)

toa:
Hi folks,

I've created a template as described in the online documentation. It works fine.  :lol: But now I want to support multiple languages.

For example, my template adds a button labeled 'next' to the bottom of the page. But when the backend language is changed, the button label should change accordingly.

It would be nice to have a set of language files (en.php, de.php, fr.php, ...) that contain the translations which can be used in the template.
But how can I determine (during runtime) which of these language files should be included in the template?  :?

Thanks!

Ruud:
Have a look at the help pages. http://www.websitebaker2.org/en/help/developer-guide/variables-and-constants.php
There is a variable LANGUAGE that will tell you what you want.

Navigation

[0] Message Index

Go to full version