Welcome to Geeklog, Anonymous Friday, November 29 2024 @ 09:36 pm EST
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.
10
9
Quote
Status: offline
vinny
Site Admin
Admin
Registered: 06/24/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';
}
9
10
Quote
All times are EST. The time is now 09:36 pm.
- 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