this is in my opinions one of the most important issues in a web shop - to be global by being local - but how can I display flags instead of non-appearing drop down menu? like oscommerce automatically make it. The current drop down menu is non-appearing and this might cause a huge amount of vistors to leave the site as they enter if they dont find their local language fast.......noone know how to do this?
Flag relate to countries. They are not necessarily tied to languages. IMO it’s bad design/usability to use flags for countries. You are making assumptions which can cause problems.
Does a Canadian flag allow for both English and French?
Does a Belgian flag allow for Vlamish and French?
Does a Swiss flag allow for the 4 or 5 languages they speak there?
No!
Why link two things which aren’t actually tightly related?
Flag relate to countries. They are not necessarily tied to languages. IMO it’s bad design/usability to use flags for countries. You are making assumptions which can cause problems.
Does a Canadian flag allow for both English and French?
Does a Belgian flag allow for Vlamish and French?
Does a Swiss flag allow for the 4 or 5 languages they speak there?
No!
Why link two things which aren’t actually tightly related?
There are still countries where majority speak one language. And sometimes it is necessary to tie stuff (terms and conditions, contact information, shipping options) to country not to language.
This code worked for me before but i have not tested it with last 1.2 version. Please edit app/design/frontend/default/yourtemplate/template/page/switch/flags.html to
Thanks for the tip, I got it working just right… except for a minor inconvenient.
When the language names have accented chars, like “ç”, “ê”, etc. the image url gets encoded, and -strangely enough- the images with those encoded names stopped working (maybe it is just the way my server is configured, but...)
I solved the issue by changing the image URL from:
$this->htmlEscape($_lang->getName()) . '.gif')
to
$this->htmlEscape($_lang->getCode()) . '.gif')
Using the getCode instead of the getName allowed me to get the “clean” storeview code name that I was able to use for the icon filenames.
Just to share my experience, maybe it might help someone else…
I am also a newbe, so please forgive me:
I have aquired a template , istalled it and all is working.
So far so good, now I am toutching the real stuff (starting).
Standard the laguage switchs is ok:
<img src="http://www.sambal-toko.com/skin/frontend/blank/theme075/images/flag_english.gif" />
BUT when i add a french store I get:
<img src="http://www.sambal-toko.com/skin/frontend/blank/default/images/flag_french.gif" />
SO the skin theme is not taken into account.
Where do I adapt??
TIA
I have noticed that the switch/flags.html and switch/languages.html are both in the default
app/design/frontend/blank/theme075/template/page/switch
but I cannot find switch/languages.htm in the theme075 ..