dual language pligg? click a flag to change language maybe?

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-19-2007, 01:30 PM
New Pligger
 
Join Date: May 2007
Posts: 1
I understand there are language packs that can overwrite original files and sql to install pligg in another language.

Is there a way to setup a dual language pligg site? Maybe people can click a country flag and the website switches into another lauguage.

I know phpbb has a mod of switch betwen languages with automatic browser language detect, and another with a menu.

Can something similar be done with pligg? If there has been, i am sorry for double posting; i couldn't seem to find that.

Thank you.

Last edited by mmotp; 05-19-2007 at 01:42 PM.
Reply With Quote
  #2 (permalink)  
Old 08-24-2007, 12:01 PM
New Pligger
 
Join Date: Aug 2007
Posts: 1
Quote:
Originally Posted by mmotp View Post
I understand there are language packs that can overwrite original files and sql to install pligg in another language.

Is there a way to setup a dual language pligg site? Maybe people can click a country flag and the website switches into another lauguage.

I know phpbb has a mod of switch betwen languages with automatic browser language detect, and another with a menu.

Can something similar be done with pligg? If there has been, i am sorry for double posting; i couldn't seem to find that.

Thank you.
i am a new user of pligg, and meet the same question. so could any guy kindly give some tips? thanks
Reply With Quote
  #3 (permalink)  
Old 09-24-2007, 12:57 AM
helmeloh's Avatar
New Pligger
Pligg Version: 9.9
Pligg Template: yget
 
Join Date: Jul 2007
Location: Vienna, Austria
Posts: 10
Hi there,
I'm not a programmer, but maybe you will understand my green attempt to solve that problem.
There are already some lang.conf's available. I put them in the libs directory named lang_de.conf, lang_en.conf ... Than I tried in header.tpl
Quote:
{php}
$lan=$_SERVER['HTTP_ACCEPT_LANGUAGE'];
$lan=substr($lan,0,2);
if($lan=="de")
{/php}
{config_load file="lang_de.conf"}
{php}
if($lan!="de")
{config_load file="lang_en.conf"}
{/php}
My success: it does not work.
But mybe someone can make it work?
Ciao Helmut
Reply With Quote
  #4 (permalink)  
Old 09-24-2007, 01:35 AM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 1,961
Check out Pligg Beta 9 - we have it working - but we had to do plenty of modification to get it work - almost 32 files changed.
Reply With Quote
  #5 (permalink)  
Old 09-24-2007, 01:49 AM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Galleria
 
Join Date: Jun 2006
Posts: 3,835
Don't forget, there is also the story translator in the downloads section, you might be able to have it to suit your needs. http://forums.pligg.com/downloads.php?do=file&id=40


Download the full Pligg Module Pack





Reply With Quote
  #6 (permalink)  
Old 09-24-2007, 04:18 AM
helmeloh's Avatar
New Pligger
Pligg Version: 9.9
Pligg Template: yget
 
Join Date: Jul 2007
Location: Vienna, Austria
Posts: 10
Quote:
Originally Posted by dollars5 View Post
Check out Pligg Beta 9 - we have it working - but we had to do plenty of modification to get it work - almost 32 files changed.
Thank you for the link. Absolutely that what I'm looking for (I need just 2 languages) and I use Pligg 9.8, but I wonder, how I can use more that one lang.conf's ?
Reply With Quote
  #7 (permalink)  
Old 09-24-2007, 04:21 AM
helmeloh's Avatar
New Pligger
Pligg Version: 9.9
Pligg Template: yget
 
Join Date: Jul 2007
Location: Vienna, Austria
Posts: 10
Quote:
Originally Posted by chuckroast View Post
Don't forget, there is also the story translator in the downloads section, you might be able to have it to suit your needs. http://forums.pligg.com/downloads.php?do=file&id=40
I intend to use it, but first I want to figure out, how to use more than one lang.conf, so I will come back later on this.
Reply With Quote
  #8 (permalink)  
Old 11-06-2007, 11:59 PM
helmeloh's Avatar
New Pligger
Pligg Version: 9.9
Pligg Template: yget
 
Join Date: Jul 2007
Location: Vienna, Austria
Posts: 10
Hallo again,
Well, I had not time to care about that problem, is there meanwhile maybe some one who can use already 2 lang.conf for his pligg site?
Reply With Quote
  #9 (permalink)  
Old 11-07-2007, 01:20 AM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 1,961
We did use - but it was a detailed modification at many places.
Reply With Quote
  #10 (permalink)  
Old 11-07-2007, 04:11 AM
Casual Pligger
 
Join Date: Aug 2007
Posts: 91
Hei Dollars5
How did you made that? Is it quite difficult, is it possible to make a mod out of that, does it works with multiple domains or does it make more sense, to have different installations?
Reply With Quote
Reply

Thread Tools
Display Modes




Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development