Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

tired of selecting "English" in the languages sect
 
Reply
   X-Cart forums > X-Cart 4 > Changing and adding new features
 
Thread Tools Search this Thread
  #1  
Old 08-16-2006, 10:14 PM
  thundernugs's Avatar 
thundernugs thundernugs is offline
 

Senior Member
  
Join Date: May 2003
Location: Bend, OR
Posts: 117
 

Default tired of selecting "English" in the languages sect

this is a really minor and easy mod, but it's one i use everyday - i got tired of always having to click "Languages" and then select "English" everytime I wanted to change a label or text. So, I opened skin1/admin/menu_admin.tpl and added this:

Code:
{$catalogs.admin}/languages.php?language=US"]{$lng.lbl_language} - English

where i wanted it. done.

this goes well with another easy fix i did to list all products so you don't have to search for them every time.


http://forum.x-cart.com/viewtopic.php?t=26289&highlight=

maybe someone else will find these useful.

mike
__________________
X-Cart Gold 4.0.17 & 4.0.18
Linux Server
Hands-On Hosting
http://www.CoreCases.com - Ipod Cases
http://www.InnovativeOutlet.com - Pet Plants and other cool stuff you need
Reply With Quote
  #2  
Old 08-17-2006, 02:36 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

That is one of those things I have been meaning to do forever, thanks! You'd think that if there was only one language active you wouldn't have to select it...but this will work just fine!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 08-24-2006, 06:39 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default Re: tired of selecting "English" in the languages sect

its something i mentioned to xcart to make it so that if only one language existed make it show that by default
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #4  
Old 08-24-2006, 10:30 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: tired of selecting "English" in the languages sect

[edit]

This works great in 4.1.5

thanks!

in file: skin1/admin/menu_admin.tpl

FIND:
Code:
<a href="{$catalogs.admin}/languages.php" class="VertMenuItems">{$lng.lbl_languages}</a><br />

REPLACE WITH:
Code:
<a href="{$catalogs.admin}/languages.php?language=US" class="VertMenuItems">{$lng.lbl_languages} - (English)</a><br />
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #5  
Old 08-24-2006, 12:52 PM
  PhilJ's Avatar 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Location: UK
Posts: 3,625
 

Default Re: tired of selecting "English" in the languages sect

I usually put this in /skin1/admin/menu_admin.tpl

Code:
<A href="{$catalogs.admin}/languages.php?language=US" class="VertMenuItems">{$lng.lbl_languages}</A><BR> &nbsp;&nbsp;&raquo;&nbsp;<A href="{$catalogs.admin}/languages.php?language=US&topic=Text&filter=welcome+message" class="VertMenuItems">Welcome Message</A><BR> &nbsp;&nbsp;&raquo;&nbsp;<A href="{$catalogs.admin}/languages.php?language=US&topic=Text&filter=Site+title+line" class="VertMenuItems">Site Title</A><BR>
Reply With Quote
  #6  
Old 09-07-2006, 09:45 AM
  girlsbits's Avatar 
girlsbits girlsbits is offline
 

Advanced Member
  
Join Date: May 2006
Posts: 77
 

Default Re: tired of selecting "English" in the languages sect

For 4.0.19

Replace or comment out:

Code:
<A href="{$catalogs.admin}/languages.php" class="VertMenuItems">{$lng.lbl_languages}</A><BR>

with:

Code:
<A href="{$catalogs.admin}/languages.php?language=US" class="VertMenuItems">{$lng.lbl_language} - English</A><BR>
__________________
X-Cart Gold | v 4.0.18 | Unix | php 4.3 | phpMyAdmin 2.8.0.3 |
Reply With Quote
  #7  
Old 01-06-2007, 09:16 PM
 
successco successco is offline
 

Advanced Member
  
Join Date: Apr 2005
Location: Washington USA
Posts: 42
 

Default Re: tired of selecting "English" in the languages sect

Quote:
Originally Posted by girlsbits
For 4.0.19

Replace or comment out:

Code:
<A href="{$catalogs.admin}/languages.php" class="VertMenuItems">{$lng.lbl_languages}</A><BR>

with:

Code:
<A href="{$catalogs.admin}/languages.php?language=US" class="VertMenuItems">{$lng.lbl_language} - English</A><BR>


works exactly like that in 4.1.2 also: Filename: /admin/menu_admin.tpl ~ thank you.
__________________
X-cart Gold 4.1.6
X-affiliate 4.1.6
Reply With Quote
  #8  
Old 01-07-2007, 12:55 PM
 
nfc5382 nfc5382 is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 452
 

Default Re: tired of selecting "English" in the languages sect

thank you!
__________________
-----------------------
x-cart v4.7.6 [LIVE]
x-cart v4.0.18 [retired 2004-2016]
x-cart v3.5.13 [retired]
x-cart v3.4.14 [retired]
Reply With Quote
  #9  
Old 01-08-2007, 08:42 AM
 
scraps scraps is offline
 

Advanced Member
  
Join Date: Mar 2004
Posts: 60
 

Default Re: tired of selecting "English" in the languages sect

thank you, thank you, thank you for this one!!!

as a reminder to newbies, create a "copy" of your files, such as the menu_admin.tpl, I copy it, then rename it with a -backup or -original on the filename, so I can easily go back if something goes astray.
__________________
Marian
Host: Successful Hosting
X-Cart version 4.1.9
PHP 4.3.10
MySql 4.0.22-standard
Web server Apache 1.3.33 (Unix)
Operating system Linux
Perl 5.8.3
http://www.seamstobesew.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Changing and adding new features


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:02 AM.

   

 
X-Cart forums © 2001-2018