In my view, for not a web pro and only based on other experiences.
It is the basic routine work in technical and called problems isolation.
Validation may not important and although pass the validation not mean problems can be solved.
However, it is not only for semantic and it also help to reduce human faults and
isolate all un-related issues which may cause un-predictable effects to the problems which under being solve.
For your issue, for the variable related to language,
you can view the file and codes below:
includes/classes/language.php
at about line no. 76 - 83
PHP Code:
while (!$languages->EOF) {
$this->catalog_languages[$languages->fields['code']] = array('id' => $languages->fields['languages_id'],
'name' => $languages->fields['name'],
'image' => $languages->fields['image'],
'code' => $languages->fields['code'],
'directory' => $languages->fields['directory']);
$languages->MoveNext();
}
Where:
(values related to the setting in the admin)
id = the assigned id number of the languages
name = the name of the languages, e.g. English
image = the image file name of the languages, e.g. icon.gif
code = the code ot the languages, e.g. en for english
directory = the located directory of the languages
And called by the languages sidebox template file.
Of which will point to the correct pages of languages selected.
And you can modidy it for your purpose.
includes/templates/template_default/sideboxes/tpl_languages.php
PHP Code:
$content .= '<a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . zen_image(DIR_WS_LANGUAGES . $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a> ';
Bookmarks