Page 1 of 1
How to stop english language
Posted: Wed Nov 25, 2009 4:54 am
by Mike_MnD
I've se eniglish to disable in the localization section from the admin.
So in the front edn is only my native langugage, but when i'm adding new product it still want's a name in the english field to be added ?
Why is this so, and how to remove or stop english language at all, since i want opencart only in one language.
Re: How to stop english language
Posted: Wed Nov 25, 2009 5:54 am
by Daniel
delete the language from the admin.
Re: How to stop english language
Posted: Sun Feb 21, 2010 1:28 am
by pixellegolas
I wanted to know this too. So the english folder in language has nothing to do with admin panel? Just for front-end?
Re: How to stop english language
Posted: Sun Feb 21, 2010 1:40 am
by OSWorX
There are 2 language folders:
1 for the admin: ../admin/language/
1 for the users: ../catalog/language/
Daniel means that you have to delete the not needed language from the backend (admin):
System -> Locale Settings -> Languages => check the language and hit delete button.
Re: How to stop english language
Posted: Sun Feb 21, 2010 2:03 am
by pixellegolas
Could not delete english because it was the "admin used language". I changed to admin language to swedish but now I am getting this error:
"Error: Could not load language swedish!"
But I am using it for front-end and works. I know the admin panel is not translated but I thought that it would just use the english that should be inside the not-translated part of the swedish pack
Any ideas?
Re: How to stop english language
Posted: Sun Feb 21, 2010 2:30 am
by pixellegolas
I cannot access anything id admin anymore because of this error. Can I change something to make it back to how it was before? I mean with the english also there. Where is this setting for admin language?
Re: How to stop english language
Posted: Sun Feb 21, 2010 6:26 am
by Qphoria
First, Technically English should never be deleted. There needs to be a guaranteed current language. If you switch to something like swedish for 1.3.4 while using opencart 1.4.0 then the first time you run into a missing file or value, then your site is going to die.
Second, the language system should fallback to English for any values that aren't there. I had this as a mod for 1.3.2 and 1.3.4 but when 1.4.0 made some terrible changes to the language system, it broke. Lets put the language back to the way it was as it was not broke, so don't fix it. Then we can use the fallback method to english, just like the template system falls back to "default".
Third, In place or combined with the Second point above, a missing language file should not "exit" with the error. It should simply "echo" the error so that the site still works. It would be much better to see "text_name" instead of just killing the site.
All the above is iMO
Re: How to stop english language
Posted: Sun Feb 21, 2010 7:05 am
by pixellegolas
Well the language pack was for 1.4 and I installed 1.4.
But if I have english installed how do I have it turned off in the front-end? Just putting it to disabled?
Re: How to stop english language
Posted: Sun Feb 21, 2010 9:09 am
by Qphoria
Yes. set to disabled and it won't show in the front.
Re: How to stop english language
Posted: Sun Feb 21, 2010 10:04 am
by pixellegolas
thanks, but seems I need to copy over the intall again because I have no idea where to change this in the .php files