Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

need only one picture for languages


matangi

Recommended Posts

in the languages box you can see all available languages.

 

for a personal design i only want to see the opposite of the

acutally used language e.g you see everythink in french and

the picture for languages I want to show i english.

 

If you see the catalog in english i only want to show the french

picture.

My problem is to get one language out of the array, so that the

link is still running.

 

any idea?

 

matangi

visit us for music, games, information, webcams, forum, photos, wetter, ...

the polynesien site from europe

Link to comment
Share on other sites

in the languages box you can see all available languages.

 

for a personal design i only want to see the opposite of the

acutally used language e.g you see everythink in french and

the picture for languages I want to show i english.

 

If you see the catalog in english i only want to show the french

picture.

My problem is to get one language out of the array, so that the

link is still running.

 

any idea?

 

matangi

 

Look in the file catalogincludesboxeslanguages.php

 

In the while loop to build the display array, do an if statement to leave out the currently selected language.

 

Aodhan

Link to comment
Share on other sites

in the languages box you can see all available languages.

 

for a personal design i only want to see the opposite of the

acutally used language e.g you see everythink in french and

the picture for languages I want to show i english.

 

If you see the catalog in english i only want to show the french

picture.

My problem is to get one language out of the array, so that the

link is still running.

 

any idea?

 

matangi

 

Look in the file catalogincludesboxeslanguages.php

 

In the while loop to build the display array, do an if statement to leave out the currently selected language.

 

Aodhan

 

 

 

you think this is a good idea??

 

 

<?php

/*

$Id: languages.php,v 1.12 2002/08/08 21:52:17 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2001 osCommerce

 

Released under the GNU General Public License

*/

?>

<!-- languages //-->

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('align' => 'left',

'text' => BOX_HEADING_LANGUAGES

);

new infoBoxHeading($info_box_contents, false, false);

 

if (!is_object($lng)) {

include(DIR_WS_CLASSES . 'language.php');

$lng = new language;

}

 

if (getenv('HTTPS') == 'on') $connection = 'SSL';

else $connection = 'NONSSL';

 

$languages_string = '';

reset($lng->catalog_languages);

while (list($key, $value) = each($lng->catalog_languages)) {

if ($value['directory'] == $language) { $languages_string .= '<!--';}

$languages_string .= '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $connection) . '">' . tep_image(DIR_WS_LANGUAGES . $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a> ';

if ($value['directory'] == $language) { $languages_string .= '-->';}

 

}

 

$info_box_contents = array();

$info_box_contents[] = array('align' => 'center',

'text' => $languages_string

);

new infoBox($info_box_contents);

?>

</td>

</tr>

<!-- languages_eof //-->

visit us for music, games, information, webcams, forum, photos, wetter, ...

the polynesien site from europe

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...