Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 05:34:54 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155544 Posts in 21714 Topics by 7736 Members
Latest Member: chris85
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: multi language template  (Read 652 times)
toa

Offline Offline

Posts: 1


« on: April 28, 2011, 03:29:18 PM »

Hi folks,

I've created a template as described in the online documentation. It works fine.  cheesy 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?  huh

Thanks!
« Last Edit: April 28, 2011, 05:05:12 PM by toa » Logged
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2297



WWW
« Reply #1 on: May 01, 2011, 10:24:50 PM »

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.
Logged

Professional WebsiteBaker Solutions
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!