Page 1 of 1
Module language
Posted: Sun May 10, 2009 1:21 am
by czLEONcz
Hi all,
how do I set up the language selection eshopu.
Positions at the top right of the basket right breadcrumb
Thank you very much.
Re: Module language
Posted: Sun May 10, 2009 5:33 am
by phpuk
Hi,
I have done this
very quickly so please test and get back to me if you have any problems.
Be careful of the duplicate variable $language and do not confuse them!
Note: I have added
flag to the end of the variable name!
Script: catalog/controller/common/layout.php
Insert a new blank line after line 16 and add 'common/language',
So it looks like this:
Code: Select all
$this->children = array(
'common/language',
'common/header',
'common/footer'
);
Script: catalog/controller/common/language.php
Edit line 34 to look like this:
Code: Select all
$this->id = 'languageflag'; // Added flag
Script: catalog/view/theme/default/template/common/layout.php
Insert a new blank line after line 21 and enter this:
Code: Select all
<div style="float:right;margin-top:-25px;margin-right:10px;"><?php echo $languageflag; ?></div>
I think that should be it.
Phil.
Re: Module language
Posted: Sun May 10, 2009 6:39 am
by czLEONcz
Hi,
corrected
it's ok
I put it into another row

Re: Module language
Posted: Sun May 10, 2009 7:09 am
by phpuk
Sorry the last instruction has a typo it should read insert a new blank line after line 22 and enter this:
The line after the <?php } ?>
Re: Module language
Posted: Sun May 10, 2009 7:11 am
by phpuk
Also I see that the language is displayed to high so change the margin-top value to something like -15px.
Phil.
Re: Module language
Posted: Sun May 10, 2009 7:21 am
by czLEONcz
phpuk wrote:Also I see that the language is displayed to high so change the margin-top value to something like -15px.
Phil.
Hi,
corrected
it's ok
I put it into another row
Thank you Phil
Re: Module language
Posted: Sun May 10, 2009 7:40 am
by czLEONcz
I have a problem, it is not compatible with IE 8 and Opera 10 build 1456
What can I please edit
Thank you very much for being willing to...
Re: Module language
Posted: Sun May 10, 2009 8:22 am
by babaloo
Re: Module language
Posted: Sun May 10, 2009 8:51 am
by phpuk
Ok I did say a very quick look
Try absolute positioning:
Code: Select all
<div style="position: absolute;top: 140px;right: 10px;"><?php echo $languageflag; ?></div>
Adjust the top: and right: values to suit your layout.
Phil.
Re: Module language
Posted: Sun May 10, 2009 9:12 am
by czLEONcz
phpuk wrote:Ok I did say a very quick look
Try absolute positioning:
Code: Select all
<div style="position: absolute;top: 140px;right: 10px;"><?php echo $languageflag; ?></div>
Adjust the top: and right: values to suit your layout.
Phil.
Is it okay
Thank you Phil.
Q: Module language
Posted: Wed May 20, 2009 8:41 pm
by hitu_125
If I wish to set another language like spenishi, or french, what should we set in locale in admin side, and What should we do with the charset=UTF-8, will it show the exact character?