1
essance
xlanguage
  • 2010/2/5 20:05

  • essance

  • Just popping in

  • Posts: 7

  • Since: 2007/12/20


I am a newbie: install xlanguage 2.4.. How I get it to display on the block.

base language English & tchinese
extend language tchinse & schinese.

I could not see it on display on the home page

install module & activiate it.

Anyone could give me some help that is greatly appreciated

2
Burning
Re: xlanguage
  • 2010/2/5 20:46

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

Have you created your two basic language in module administration ? If it's already done, do not forget to also create file (under the table, click on the link)

3
essance
Re: xlanguage
  • 2010/2/6 5:06

  • essance

  • Just popping in

  • Posts: 7

  • Since: 2007/12/20


I used the XOOPS -tchinese so I added english as a based language. right 1

And I tried to add tchinese as a based language. It would NOT let me.

I add tchinese & schinese as a extend langage

Then I click on config file.

It does not seem to do anything

On the Base English the UTF flag show.

Not sure what I have done wrong

4
essance
Re: xlanguage
  • 2010/2/6 5:08

  • essance

  • Just popping in

  • Posts: 7

  • Since: 2007/12/20


what do you mean by preparing 2 based language

5
Burning
Re: xlanguage
  • 2010/2/6 7:24

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

I think all you have done is correct.

1) To define basic language, here english and french

Resized Image


2) Second step, click on Add base language. Then a config file (xlanguage.php) is created in xoops_data/caches/xoops_cache/

In my example :
<?php
    $cached_config
['xlanguage_base'] = array(
        
"english"=>array(
            
"lang_name"=>"english",
            
"lang_desc"=>"",
            
"lang_charset"=>"ISO-8859-1",
            
"lang_code"=>"en",
            
"lang_image"=>"english.gif",
            
"lang_id"=>1,
            
"weight"=>1
        
),
        
"french"=>array(
            
"lang_name"=>"french",
            
"lang_desc"=>"",
            
"lang_charset"=>"ISO-8859-1",
            
"lang_code"=>"fr",
            
"lang_image"=>"noflag.gif",
            
"lang_id"=>2,
            
"weight"=>1
        
),
    );
?>


I hope it helps.

You may take a look to these topics :
a plugin is available to display flags directly in theme
the last version of xLanguage

6
essance
Re: xlanguage
  • 2010/2/6 16:35

  • essance

  • Just popping in

  • Posts: 7

  • Since: 2007/12/20


It doesn't seem it will take the 2nd base language & extend language

Even if change the flag... it will not change. I try to delete it.. It will not delete the english base neither.

I try it so many time


<?php
$cached_config['xlanguage_base'] = array(
"english"=>array(
"lang_name"=>"english",
"lang_desc"=>"English",
"lang_charset"=>"iso-8859-1",
"lang_code"=>"en",
"lang_image"=>"noflag.gif",
"lang_id"=>1,
"weight"=>1
),
);
?>

7
Burning
Re: xlanguage
  • 2010/2/6 18:15

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

May be some trouble with Chinese charset ?
What do you enter instead of ISO-8859-1 ?
Have you try Chinese support forums ?

8
Marco
Re: xlanguage
  • 2010/2/6 19:38

  • Marco

  • Home away from home

  • Posts: 1256

  • Since: 2004/3/15


Quote:

You may take a look to these topics :
• a plugin is available to display flags directly in theme
• the last version of xLanguage

yep, would be nice to post an article on this, so people will better find the xlanguage latest version

Login

Who's Online

176 user(s) are online (110 user(s) are browsing Support Forums)


Members: 0


Guests: 176


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits