Help Center Live Community
September 02, 2010, 03:22:25 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: HCL for bilingue website  (Read 3438 times)
voxinteractif
Not too much to say...
*
Offline Offline

Posts: 4


« on: July 20, 2009, 08:22:21 PM »

Hi guys,
does anyone know how to setup HCL for a bilingual website?
Best Regards.
Logged
voxinteractif
Not too much to say...
*
Offline Offline

Posts: 4


« Reply #1 on: July 21, 2009, 04:05:11 PM »

ok, i found a solution:
1 - i created a new department for the french language
2 - i generated a new code for this department to include in the page i want the hcl module appears
3 - i created a french.    php file (translate the english.    php file in french)
4 - i installed it in the hcl/lang directory
5 - finally i edited the hcl/ config.    php file and replace the line 79 ($conf['lang'] = 'english'; ) by the following code:
   
if (isset($_GET['departmentid']) ) {  // the departmentid is generated when you create a new department  
       if ($_GET['departmentid'] == 2){   // id of my 2nd department
      $conf['lang'] = 'french';
      }else{
      $conf['lang'] = 'english';
      }
     }

        else{         // for the admin side (if you omit it, you will have an error in your admin page)
      $conf['lang'] = 'english';         
   }
« Last Edit: July 21, 2009, 04:59:40 PM by voxinteractif » Logged
SpenserJ
HCL Regular
***
Offline Offline

Posts: 179

Some helpful guy


WWW
« Reply #2 on: July 21, 2009, 04:24:35 PM »

That is awesome to hear! Good work man!

Spenser
Logged

I am NOT a developer for HelpCenterLive. I am just trying to help out anyone that has issues. If you have a problem, check the list of fixes and then create a new topic
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 2.384 seconds with 18 queries.

Google visited last this page August 18, 2010, 03:00:21 PM