Welcome to Geeklog Wednesday, May 27 2020 @ 03:22 am EDT

Geeklog Forums

language based blocks


Status: offline

moyashi

Forum User
Junior
Registered: 10/10/02
Posts: 16
Is there a way to have blocks per language. I noticed that postnuke has that nifty feature. I'm thinking of a business like situation. You have content designed for each language. Like a english school in Japan. You have the page in Japanese that would show what's happening for the students. While on the English page you could post for job openings and what not. Hmmm, this could be extended even for themes and content.
 Quote

Status: offline

vinny

Site Admin
Admin
Registered: 24/06/02
Posts: 352
Location:Colorado, USA
I think a simple way of doing this would be to create a php block that calls a php function that tests for the selected language, then outputs the appropriate wording/block content that want for that language. You'd want an if something like if ($_CONF['language'] == 'english') { echo 'english stuff'; } else { echo 'japeneese/other stuff'; }
 Quote

Status: offline

moyashi

Forum User
Junior
Registered: 10/10/02
Posts: 16
Thanks, That definitely is an idea.
 Quote

All times are EDT. The time is now 03:22 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content