Jump to content

Change id of language in database


redrum

Recommended Posts

I have two installed language
English    (id: 1)
Swedish    (id: 2)

I want to change the id on these two language. Like this:
English    (id: 2)
Swedish    (id: 1)

I can see that this should be done in the db table 'ps_lang', under the column 'id_lang'.

But do I need to change something else anywhere in the database, or in any file for that matter?


Thanks

Link to comment
Share on other sites

Thanks for your reply and the heads up@ndiaga

I took a brief look in the database and saw that it would be some complications.
I'm in the beginning of a new installation and I have migrated a bunch of customers and orders, and I thought I could take a shortcut. but it probably won't end well :)

My main issue is that I want to have the BO in English, and FO only in Swedish. That's an easy fix by doing the proper settings in BO.
The problem arise when I want to add or edit a product in BO. When I add/edit a products it is done in the BO-language (which is english), but the FO is set to only show Swedish.

Link to comment
Share on other sites

I have inactivated English, and then I don't have the option to switch language when editing a product.
In the product list the Name become "N/A", but when I go to the page for editing a product the product name and description is correct.

Looking at this it just hit me, I think it might have to do with the product import I've made. I think I configure the script so the swedish language id was 1, but the id is actually 2 in the installation that I'm working on now.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...