YorickH YorickH - 4 months ago 48
Perl Question

Importing multi-lingual categories with Magmi

I am trying to create my multilingual categories with magmi. I have 1 website, 1 store and 3 store views for every language. I've noticed it isn't possible to create a different root category when a store view is selected.

Is it possible to create the same behavior as with products? => Having the same category but just different title depending on the store view selected? Or do I have to create a different category tree for each language/store view.

1)

+Root
+Product Categories
Lang1_Cat1 / Lang2_Cat1 / Lang3_Cat1 (per storeview another language)
Lang1_Cat2 / Lang2_Cat2 / Lang3_Cat2
Lang1_Cat3 / Lang2_Cat3 / Lang3_Cat3


2)

+Root

+English
+Product Categories
Lang1_Cat1
Lang1_Cat2
Lang1_Cat3

+French
+Categories darticles
Lang2_Cat1
Lang2_Cat2
Lang2_Cat3

+Spanish
+Categorias de productos:
Lang3_Cat1
Lang3_Cat2
Lang3_Cat3


And how would this translate into my import csv?
For now we have it like following:

"Product categories::1::0::1~Storage::1::0::1~Storage accessories::1::0::1~Tool cases::1::0::0"


So we use custom separators (since some off our categories has strange characters in them, just making sure we don't get any conflicts) and the category parameters and do first an update for the English version and update for the other languages.

I was hoping to use another profile, specified a different storeview (with the store column) and outputting the the categories like above but then with their corresponding translated category names.

So my question here is, do I continue like above (same category tree level, different storeviews/translations)? or do I need to create a different tree level for each language and import it as following?

"English::1::0::1~Product categories::1::0::1~Perel::1::0::1~Storage accessories::1::0::1~Tool cases::1::0::0"

"Spanish::1::0::1~Categorías de productos::1::0::1~Herramientas perel::1::0::1~Accesorios de almacenamiento::1::0::1~Cajas de herramientas::1::0::0"

"French::1::0::1~Catégories d'articles::1::0::1~Outillage perel::1::0::1~Accessoires de rangement::1::0::1~Valises d' outillage::1::0::0"


Where English, Spanish & French are my different trees.

Thank you!

Answer

There is a duplicated question on the Magento exchange: Translate categories using magmi I'll post the answer here so this doesn't become just another reference!

The answer got replied by dweeves (creator off Magmi):

A full category tree need to be set for each locale, with associated store view.

You need to use the multistore syntax for category plugin for defining localized categories under each root category (one per localized category tree).

So my categories column looks now like this:

"[English]~Product categories::1::0::1~Perel::1::0::1~Storage accessories::1::0::1~Tool cases::1::0::0"

"[Spanish]~Categorías de productos::1::0::1~Herramientas perel::1::0::1~Accesorios de almacenamiento::1::0::1~Cajas de herramientas::1::0::0"

"[French]~Catégories d'articles::1::0::1~Outillage perel::1::0::1~Accessoires de rangement::1::0::1~Valises d' outillage::1::0::0"