Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Language Icons / Flags


srh_cronk

Recommended Posts

Hi all.

 

Having a little trouble again!

 

I am trying to find the stylesheet or php file which calls up the language flags (icon.gif to be exact) to be displayed. The reason being is that I would like these to become .jpgs rather than .gifs (for colour matching purposes) and I need to edit the appropriate file as necessary.

 

Does anybody know which one I need to look at? :)

 

Thanks!

Link to comment
Share on other sites

To change the file name/type, you'll have to make a change in the DB.

 

I looked at my DB backup SQL file and found these:

 

insert into languages (languages_id, name, code, image, directory, sort_order) values ('1', 'English', 'en', 'icon.gif', 'english', '1');
insert into languages (languages_id, name, code, image, directory, sort_order) values ('2', 'Deutsch', 'de', 'icon.gif', 'german', '2');
insert into languages (languages_id, name, code, image, directory, sort_order) values ('3', 'Espaqol', 'es', 'icon.gif', 'espanol', '3');

Now, this being said, I don't know the best way to go about making a change like this...

:blush:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Step 1: Admin > Localization > Languages > {choose language} > Edit > {change image, it should say "icon.gif", change to "whatever.jpg"} > Update

 

Step 2: Upload "whatever.jpg" to the appropriate location, usually /includes/languages/{language}/images

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...