WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.8 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • multi language template
  • Print
Pages: [1]   Go Down

Author Topic: multi language template  (Read 4925 times)

toa

  • Guest
multi language template
« on: April 28, 2011, 04:29:18 PM »
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!
« Last Edit: April 28, 2011, 06:05:12 PM by toa »
Logged

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: multi language template
« Reply #1 on: May 01, 2011, 11: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
Dev4me - WebsiteBaker modules - WBhelp.org

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • multi language template
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2