Jump to content

No default language options in setup


Guest HUBBARDSTON20

Recommended Posts

Guest HUBBARDSTON20

I am trying to install version 5.1.1 and am running into a problem during setup. Under Store settings>Default Language there are no options in the drop down box to choose from therefore I cannot continue onto the next step of the install. Can someone please help? Thank you

Link to comment
Share on other sites

There doesn't seem to be a problem with the code.

But I do recall posting a bug report (maybe in the prior system, or maybe it's one of the bugs that went missing in the 1-15 range) that discussed coding.

In one place, there is:


foreach ($languages as $code => $lang) {

    $lang['selected'] = ($code == $_SESSION['language']) ? ' selected="selected"' : '';

    $GLOBALS['smarty']->append('LANG_LIST', $lang);

}



and in another, there is:



foreach ($languages as $option) {

    $option['selected'] = ($option['code'] == $_SESSION['language']) ? ' selected="selected"' : '';

    $smarty_data['list_langs'][]    = $option;

}

$GLOBALS['smarty']->assign('LANGUAGES', $smarty_data['list_langs']);

They are basically the same, but I had a problem with one of them.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...