Daniel wrote:JNeuhoff wrote:For a 2 language scenario, e.g. English and Swedish, it is noit possible to use English as the admin language and Swedish as the default frontend language. When using English as the admin language, no products nor categories are shown, when using Swdish as the admin language, all products show up just fine in the admin backend.
In general, I think the admin language should have no bearing on whether or not the products or categories are listed in admin backend, they should always be listed.
yes it is. you set the store language top swedish and the admin language to english.
you have not done something properly.
maybe you did a bad backup and restore. when you create a new language it copies all the default language and adds it to the to the new language then you translate manually.
I looked further into this, and I noticed that for the admin backend it uses something like
Code: Select all
WHERE pd.language_id = '" . (int)$this->config->get('config_language_id') . "'"
when it retrieves the products, the same is true for e.g. categories or informations.
The config_language_id is set in the admin/index.php, using the admin backend language:
Code: Select all
$config->set('config_language_id', $languages[$config->get('config_admin_language')]['language_id']);
I think this is wrong. When products or categories or informations are retrieved from the database, it should not use any language restrictions at all in the admin backend. The admin edit page for a product, category, or information always has all languages listed for e.g. the description anyway, and if for one of the languages the description is empty, it should just show show the empty description box, not skip the product altogether.