I have a dropdown with countries in them. I have language files to replace them with the correct countries:
Language = English, it shows:
- Netherlands 2. Germany etc
And when the selected language is German:
- Niederlande 2. Deutschland etc
But I need the values to be the same in both languages, so no matter what language is selected, the value for germany should be a preset value like ‘duitsland’ and the same for Netherlands (it would be ‘nederland’ then).
I need this so when posting and searching for countries is based on the same values.
the code I have up to this point:
$countries = array($_LANG[‘C_NETHERLANDS’], $_LANG[‘C_GERMANY’);
$SelectCountry = “ntnt”;
while(list(,$v) = each($countries))
$SelectCountry .= “$vnt”;
$SelectCountry .= “”;
This shows the dropdown with the translated countries, but I wonderinghow to get corresponding values in there aswell.