![]() |
disable languages
is there an easy way to disable the languages option?
If not, what code do I need to remove out of head.tpl to remove the dropdown box without screwing up the rest of head.tpl? Thanks in advance |
hehe
Of course I fight with it for 2 hours and as soon as I post I figure it out.
For other who might need to know Code:
{if $main eq "catalog" and $current_category.category eq "" and $all_languages_numba gt 1} Remove this from head.tpl and the pesky languages drop box goes away :wink: |
Leave the code alone...
There's easier way other than removing the section of code from head.tpl. From Admin, enter Languages section. Under "Edit language", select the language you don't want to use and click on "Disable" button. If you disabled all but one language, the language option box on customer's page will disappear.
|
False!
I did it, I disabled all but one language (the one I use), and the combo box still appears, showing just one language... |
you can comment out the code in the header or run an sql statement to remove all language entries apart from the ones you want
something along the lines of Code:
DELETE FROM xcart_languages WHERE code != 'us' |
Yeah, disabled all but one language worked until I upgraded Cart to newer version. It came back again. I tried to remove other languages from SQL and it doesn't work so I just edit the header tpl to hide it instead. :(
|
Another way the code may look...
I think I took out the same section from head.tpl, but the code looks a little different. Anyway, it seems to work.
Code:
{if $usertype eq "C"} |
You can always go into the admin->languages and delete all of them except the desired single one :)
|
Quote:
Well... It worked fine with older version until I upgraded it to v3.5.3. The v3.5.3 didn't hide the menu when I deleted all but one. I don't know if this is a bug and already fixed in newer releases. I ended up editing the header instead. |
Can anybody tell me how to edit the /include/get_language.php file to reduce the server processing too?
|
i am on version 3.5.7
i disabled all the languages except english and the drop down box is gone. hopefully, it will stay that way! |
Hi Thundernugs,
That should do it for the language drop down, what I'd like to do it remove the parsing for languages all together, as right now it still runs through the language php processing each page load. |
I have a related problem (maybe) with 3.5.7: I deleted all languages except English and shortly after that, I noticed some of the txt_variables are not showing up on the home page. Specifically $lng.txt_today_news and $lng.txt_subscribe_monthly - these are the only ones I have found that do not appear. The news was in the today_news.tpl, but I consolidated it into news.tpl which now looks like this:
Code:
{* $Id: news.tpl,v 1.14 2003/08/13 06:49:07 svowl Exp $ *} Yes, I double (triple) checked the variables in the languages table and they are there and as I said, they were working. There are other text vars and lbl vars all working ok. Any ideas why these would suddenly not be displayed??? grrrr - very frustrated... :cry: |
UPDATE: I restored the original xcart_languages table and that fixed it. Not sure why, but oh well.
|
Languages off
Quote:
Thanks this worked for me. |
All times are GMT -8. The time now is 03:01 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.