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

Changing language on speedbar

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-08-2004, 01:53 AM
 
stever stever is offline
 

Newbie
  
Join Date: Aug 2004
Posts: 5
 

Default Changing language on speedbar

How do I change the language on the speedbar?

For example, Shopping Cart to Ihr Einkaufskorb?

Btw, this is not one instead of another, but so that they change when the language changes!

Thanks

Edit: Added. Similarly, the languages in the Language drop-down menu so that German says Deutsch and French says Franc(cedilla)ais...

I take it that these are static variables which would need to be changed in the code somewhere?
__________________
X-Cart Gold 3.5
Reply With Quote
  #2  
Old 11-11-2004, 02:19 AM
  Bak's Avatar 
Bak Bak is offline
 

Newbie
  
Join Date: Oct 2004
Location: Netherlands
Posts: 5
 

Default

Same question here....

Translated all the language entries and speedbar ins't translated.



Specs:

Version Gold latest 3.5.x
__________________
Version: X-cart Gold 3.5.x
Reply With Quote
  #3  
Old 11-11-2004, 03:18 AM
 
stever stever is offline
 

Newbie
  
Join Date: Aug 2004
Posts: 5
 

Default

I got a prompt reply from support after their holiday which suggested changing the variable in skin1/customer/top_menu.tpl from $speed_bar[sb].title to $sb_title and prefacing the table cell with some code so that it would now read:

{eval var=$speed_bar[sb].title assign="sb_title"}
<td>{include file="customer/tab.tpl" tab_title="`$sb_title`"}</td>

Then replacing the names on the Speed Bar Management page with a language variable such as $lng.lbl_home which you can then define in the Language admin.

I haven't had a chance to test this yet as I have been busy elsewhere but it sounds logical. I'm also not sure what the form is on repeating support advice in the forums, so if this is out of order please delete, admins.

The other question I had apparently involved mysql commands to update a table (which sound somewhat intimidating but don't seem too involved).

Added: Just to mention that the first solution works fine (remember you must put the curly brackets around the language variable in the Speedbar Management interface).
__________________
X-Cart Gold 3.5
Reply With Quote
  #4  
Old 11-11-2004, 09:38 AM
  Bak's Avatar 
Bak Bak is offline
 

Newbie
  
Join Date: Oct 2004
Location: Netherlands
Posts: 5
 

Default

I have got a solution for changing the speedbar.

It's stupid simple with the latest 3.5.X version. In the administration menu there is an option for editting the speedbar. Haven't seen it before..


I still don't know how to edit the drop down menu's though. Still searching for an answer.
__________________
Version: X-cart Gold 3.5.x
Reply With Quote
  #5  
Old 11-11-2004, 09:54 AM
 
stever stever is offline
 

Newbie
  
Join Date: Aug 2004
Posts: 5
 

Default

Well, I think that straight admin menu change only works if you want one language... otherwise you have to put the variable in.

As far as the language drop-down goes, you have to change a table in mysql - but I'm not sure what language you want, so you might have to ask support. The table is xcart_countries. Let me know if you get it working.
__________________
X-Cart Gold 3.5
Reply With Quote
  #6  
Old 06-27-2005, 05:06 PM
 
shirley2005 shirley2005 is offline
 

Advanced Member
  
Join Date: Jun 2005
Posts: 33
 

Default

I tried this method in 4.0.14, but it doesnt work.

Actually, it works for one variable, but not others.
I made two links, one is 'home.php", the other is "cart.php"


Code:
{$lng.lbl_home}

worked, but something like

Code:
{$lng.lbl_your_shopping_cart}

wont show up.

Anybody know how to make it work?

Thanks

Quote:
Originally Posted by stever
I got a prompt reply from support after their holiday which suggested changing the variable in skin1/customer/top_menu.tpl from $speed_bar[sb].title to $sb_title and prefacing the table cell with some code so that it would now read:

{eval var=$speed_bar[sb].title assign="sb_title"}
<td>{include file="customer/tab.tpl" tab_title="`$sb_title`"}</td>

Then replacing the names on the Speed Bar Management page with a language variable such as $lng.lbl_home which you can then define in the Language admin.

__________________
x-cart 4.0.14 Pro
Reply With Quote
  #7  
Old 02-17-2006, 12:03 PM
 
sbkp sbkp is offline
 

Advanced Member
  
Join Date: Jul 2005
Posts: 83
 

Default

I can't get this to work either, and it would be quite handy.

Anyone?
__________________
Gold 4.0.17
On Sale, Smart Search, X-AOM, X-SpecialOffers, XNews, DSEFU, and custom mods/tweaks
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 10:24 AM.

   

 
X-Cart forums © 2001-2020