altenter Posted May 14, 2007 Share Posted May 14, 2007 Hi all, How can i replace the flag in the languages box with text (English, etc..) Thanks! Link to comment Share on other sites More sharing options...
Qihun Posted May 14, 2007 Share Posted May 14, 2007 There is a code in Language box file $languages_string = ''; reset($lng->catalog_languages); while (list($key, $value) = each($lng->catalog_languages)) { $languages_string .= ' <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . tep_image(DIR_WS_LANGUAGES . $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a> '; } eliminate image code part like this This is part of my lang box. $languages_string = ''; reset($lng->catalog_languages); while (list($key, $value) = each($lng->catalog_languages)) { $languages_string .= ' <a class="smalla" href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . $value['name'] . '</a> '; } Link to comment Share on other sites More sharing options...
altenter Posted May 14, 2007 Author Share Posted May 14, 2007 Thank you Quihun for your reply, works like a charm :) Where do i change the text for the language name? Link to comment Share on other sites More sharing options...
Qihun Posted May 14, 2007 Share Posted May 14, 2007 IN Admin panel , in languages, edit name of used language. Link to comment Share on other sites More sharing options...
altenter Posted May 14, 2007 Author Share Posted May 14, 2007 cool, thanks again! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.