Skip to main content
edited tags
Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284
how I made it work
Source Link

I have a website with a product catalog of more than 500 products. I'm using Drupal Commerce and have created a product display content type to group several SKUs under a single product page.

I'm using the i18n module because I need a multilingual website.

Once the data entry is done (for the English section), the catalog must be totally translated into all the other languages, and that means a huge amount of work. Can this step (translation of product display contents) be automated in any way?

Please note: I just need all the products to be visible in all the active languages, at present there are no "string" product fields to translate.

If you provide a solution for automatic string field translation too, it's welcome (obviously), although not needed.

Edit

By "automated" I mean that I start from creating product display pages in one language, and then I need product display pages in each of the defined languages; I'm looking for an automated way to create product display nodes in other languages instead of having to manually translate each page.

Edit and workaround

In the end, the most suitable workaround was to create product display pages as "language neutral". Now I'm working to change field display according to the current user's language. I've I've accepted the answer below because it does provide a solution to the problem and it's not a workaround, anyway it's not the way I took.

How I made it work

  1. I set product display pages as language neutral.

  2. I translated all the product page fields' labels, and then all the select lists' values.

  3. At that point, I was faced with an hybrid page, with translated labels and untranslated values. I wondered why, until I found this page, mentioned in this post. That is, I...

  4. went to Administration > Structure > Content types.

  5. Click on Product page > Manage display.

  6. Set format to Default translated, Link (localized) or Plain text (localized) depending on the field type.

I have a website with a product catalog of more than 500 products. I'm using Drupal Commerce and have created a product display content type to group several SKUs under a single product page.

I'm using the i18n module because I need a multilingual website.

Once the data entry is done (for the English section), the catalog must be totally translated into all the other languages, and that means a huge amount of work. Can this step (translation of product display contents) be automated in any way?

Please note: I just need all the products to be visible in all the active languages, at present there are no "string" product fields to translate.

If you provide a solution for automatic string field translation too, it's welcome (obviously), although not needed.

Edit

By "automated" I mean that I start from creating product display pages in one language, and then I need product display pages in each of the defined languages; I'm looking for an automated way to create product display nodes in other languages instead of having to manually translate each page.

Edit and workaround

In the end, the most suitable workaround was to create product display pages as "language neutral". Now I'm working to change field display according to the current user's language. I've accepted the answer below because it does provide a solution to the problem and it's not a workaround.

I have a website with a product catalog of more than 500 products. I'm using Drupal Commerce and have created a product display content type to group several SKUs under a single product page.

I'm using the i18n module because I need a multilingual website.

Once the data entry is done (for the English section), the catalog must be totally translated into all the other languages, and that means a huge amount of work. Can this step (translation of product display contents) be automated in any way?

Please note: I just need all the products to be visible in all the active languages, at present there are no "string" product fields to translate.

Edit

By "automated" I mean that I start from creating product display pages in one language, and then I need product display pages in each of the defined languages; I'm looking for an automated way to create product display nodes in other languages instead of having to manually translate each page.

I've accepted the answer below because it does provide a solution to the problem and it's not a workaround, anyway it's not the way I took.

How I made it work

  1. I set product display pages as language neutral.

  2. I translated all the product page fields' labels, and then all the select lists' values.

  3. At that point, I was faced with an hybrid page, with translated labels and untranslated values. I wondered why, until I found this page, mentioned in this post. That is, I...

  4. went to Administration > Structure > Content types.

  5. Click on Product page > Manage display.

  6. Set format to Default translated, Link (localized) or Plain text (localized) depending on the field type.

provided a workaround that worked for me
Source Link

I have a website with a product catalog of more than 500 products. I'm using Drupal Commerce and have created a product display content type to group several SKUs under a single product page.

I'm using the i18n module because I need a multilingual website.

Once the data entry is done (for the English section), the catalog must be totally translated into all the other languages, and that means a huge amount of work. Can this step (translation of product display contents) be automated in any way?

Please note: I just need all the products to be visible in all the active languages, at present there are no "string" product fields to translate.

If you provide a solution for automatic string field translation too, it's welcome (obviously), although not needed.

Edit

By "automated" I mean that I start from creating product display pages in one language, and then I need product display pages in each of the defined languages; I'm looking for an automated way to create product display nodes in other languages instead of having to manually translate each page.

Edit and workaround

In the end, the most suitable workaround was to create product display pages as "language neutral". Now I'm working to change field display according to the current user's language. I've accepted the answer below because it does provide a solution to the problem and it's not a workaround.

I have a website with a product catalog of more than 500 products. I'm using Drupal Commerce and have created a product display content type to group several SKUs under a single product page.

I'm using the i18n module because I need a multilingual website.

Once the data entry is done (for the English section), the catalog must be totally translated into all the other languages, and that means a huge amount of work. Can this step (translation of product display contents) be automated in any way?

Please note: I just need all the products to be visible in all the active languages, at present there are no "string" product fields to translate.

If you provide a solution for automatic string field translation too, it's welcome (obviously), although not needed.

Edit

By "automated" I mean that I start from creating product display pages in one language, and then I need product display pages in each of the defined languages; I'm looking for an automated way to create product display nodes in other languages instead of having to manually translate each page.

I have a website with a product catalog of more than 500 products. I'm using Drupal Commerce and have created a product display content type to group several SKUs under a single product page.

I'm using the i18n module because I need a multilingual website.

Once the data entry is done (for the English section), the catalog must be totally translated into all the other languages, and that means a huge amount of work. Can this step (translation of product display contents) be automated in any way?

Please note: I just need all the products to be visible in all the active languages, at present there are no "string" product fields to translate.

If you provide a solution for automatic string field translation too, it's welcome (obviously), although not needed.

Edit

By "automated" I mean that I start from creating product display pages in one language, and then I need product display pages in each of the defined languages; I'm looking for an automated way to create product display nodes in other languages instead of having to manually translate each page.

Edit and workaround

In the end, the most suitable workaround was to create product display pages as "language neutral". Now I'm working to change field display according to the current user's language. I've accepted the answer below because it does provide a solution to the problem and it's not a workaround.

Tweeted twitter.com/#!/StackDrupal/status/230214102348345344
edited title
Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284
Loading
clarified what "automated" means
Source Link
Loading
Source Link
Loading