Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Where to add translation of product titles, descriptions?

Where to add translation of product titles, descriptions?

Locked
This thread is locked. New replies are disabled.
23 Feb 2008, 4:07 PM
#1
crosswraith avatar

crosswraith

New Zenner

Join Date:
May 2006
Posts:
76
Plugin Contributions:
0

Post #1 by crosswraith

Im wondering if its possible to add 2 different names, 2 different descriptions to each product/item that I sell?

In case the product name is "tube" in English it needs to be translated to the other language when the shopping cart is being viewed in that other language. But the other translated product name only displays when you switch the language mode viewing in the shopping cart itself. Is this possible?

Translating of product-names, product-descriptions Ill be doing on forehand. So Im not expecting the translation itself to be an automatic process.

ZenCart? Oh yeah sure!

23 Feb 2008, 6:52 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #2 by kobra

When a second language is installed correctly you will have 2 blocks in the product entry screen in the admin so you can enter in both languages
the rest is toggled automatically by the language selection in the frontend

Zen-Venom Get Bitten

23 Feb 2008, 8:40 PM
#3
crosswraith avatar

crosswraith

New Zenner

Join Date:
May 2006
Posts:
76
Plugin Contributions:
0

Post #3 by crosswraith

Wow great. Does this also apply to the description field?

ZenCart? Oh yeah sure!

23 Feb 2008, 8:46 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #4 by kobra

That is what I was referring to but there are also other blocks that will appear when another language is installed

Zen-Venom Get Bitten

24 Feb 2008, 7:14 PM
#5
crosswraith avatar

crosswraith

New Zenner

Join Date:
May 2006
Posts:
76
Plugin Contributions:
0

Post #5 by crosswraith

Is it possible to display custom side-blocks (where I have translated the content) only when another language viewing mode has been selected (and hide the blocks displaying englsih content)?

ZenCart? Oh yeah sure!

24 Feb 2008, 7:39 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #6 by kobra

Install another language as all of this is taken care of

Zen-Venom Get Bitten

25 Feb 2008, 4:11 PM
#7
crosswraith avatar

crosswraith

New Zenner

Join Date:
May 2006
Posts:
76
Plugin Contributions:
0

Post #7 by crosswraith

Thanks for the fast response!

For default blocks/side boxes I've seen this is automatically applied when installing a new language. However when it comes to custom(ized) side boxes it's another story (boxes which I made manually and filled with content manually). In the edit box-section I see no way to add content in the 2 different languages on custom blocks. Anyone knwos how to do this and where?

ZenCart? Oh yeah sure!

25 Feb 2008, 5:25 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #8 by kobra

However when it comes to custom(ized) side boxes it's another story (boxes which I made manually and filled with content manually)
Depends on how you did this??

Zen-Venom Get Bitten

25 Feb 2008, 7:05 PM
#9
crosswraith avatar

crosswraith

New Zenner

Join Date:
May 2006
Posts:
76
Plugin Contributions:
0

Post #9 by crosswraith

I did it with custom PHP-files. Is there another way to make custom blocks?

What are the most comon ways to achieve what I desire when it comes to custom block translation?
Any tutorials available out there? I've searched the ZenCart FAQs but no luck.

ZenCart? Oh yeah sure!

26 Feb 2008, 12:39 AM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #10 by kobra

What are the most comon ways to achieve what I desire
As you have stated these are custom - and have not posted what they are how can we determine how to acheive what you want?

Post a link to your site

Zen-Venom Get Bitten

26 Feb 2008, 2:50 PM
#11
crosswraith avatar

crosswraith

New Zenner

Join Date:
May 2006
Posts:
76
Plugin Contributions:
0

Post #11 by crosswraith

I'm wondering if the the system is as simple as the following:
2 PHP-files with the exact same filename.
1 PHP-file is the english version
1 PHP-file is the containing the same menuitems but translated by me

The english file goes into its respective folder (english side boxes folder).
The translated file goes into the same folderstructure, but as a subfolder of the added language directory (maintaining the exact same hierarchy).

Then if the other language viewing mode is selected, the translated PHP-file overrides the english custom file.

In short words I'm wondering if the customization-overriding system that has been implemented into ZenCart, works in the exact same way as the language pack system.

If it works in this way where is the "english side box folder" located?

If it doesn't work in this way, in what way does the translation-system work?

ZenCart? Oh yeah sure!

26 Feb 2008, 3:11 PM
#12
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #12 by kobra

The default method is as defines in english.php in the language dir and portuguese.php each with the their own translations.

Where one would have /includes/languages/english
And /includes/languages/other language

Zen-Venom Get Bitten