Active
Project:
Ubercart
Version:
7.x-3.x-dev
Component:
Catalog
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
24 May 2011 at 15:39 UTC
Updated:
11 May 2012 at 08:52 UTC
Jump to comment: Most recent file
I have configured my installation of Drupal in French and product breadcrumb no longer works in my catalog.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | catalog_breadcrumb_multilingual-1167348-1.patch | 1008 bytes | thomas bosviel |
Comments
Comment #1
thomas bosviel commentedI have found an issue in
uc_catalog_node_viewhook. This function uses$node->languageto retrievetaxonomy_catalogvalue. The field is not installed with translatable option andtaxonomy_catalogis always under theundkey independently of language node.Comment #2
longwaveCan a site builder make the taxonomy translatable, though? Should we be handling both cases somehow?
Comment #3
thomas bosviel commentedI do not think we can make a translatable fields from the UI. We can make taxonomy translatable by adding
'translatable' => TRUEintaxonomy_catalogfield Install.See: http://api.scratch.drupal.org/api/drupal/modules--field--field.multiling...
Comment #4
longwaveComment #6
thomas bosviel commentedComment #7
thomas bosviel commented#1: catalog_breadcrumb_multilingual-1167348-1.patch queued for re-testing.
Comment #8
longwaveCommitted, thanks for the patch.
Comment #9
tr commentedI thought I posted a comment here earlier - I'm puzzled that I don't see it.
Anyway, I wanted to say that I think the fix should be to make taxonomy_catalog a translatable field rather than hardwiring in LANGUAGE_NONE. I don't know why we wouldn't allow the catalog vocabulary to be translated...
The other thing I thought I had said was the testbot still doesn't work properly for contributed modules with dependencies, so don't worry too much about the above failure.
Comment #10
longwaveRetitling issue.
Comment #11
longwaveThe initial issue here has been solved by using field_get_items() which handles translated fields for us.
We should still decide whether taxonomy_catalog should be translatable or not; I guess it should, but until we receive some comments I think I'll leave this code alone for now.
Comment #12
dimitriseng commentedHi, I need to make a multillingual (2 languages) product catalog. I managed to get this work work on D6 as described in #951760: Translate Catalog block. I am not sure if this is the right issue to post this, but if not can you please point me to the right direction as I am struggling to get this to work on D7 for a few days now...
I have set the Catalog taxonomy to "Localize. Terms are common for all languages, but their name and description may be localized" and I have translated the terms.
Some of the issues I have are:
- The terms in the catalog block are shown as untranslated, how can these be displayed in the correct language?
- When in a cateogory, the Title in the uc_catalog view is displayed as the untranslated name of the taxonomy term used for the category. How can this be displayed in the correct language?
- The untranslated taxonomy terms are shown in the breadcrumb. How can we show the transated terms in the breadcrumb?
I would really appreciate some help with this as I need the catalog to be translated properly and I am really struggling with this at the moment. Thank you very much.
Comment #13
dimitriseng commentedAny comments/suggestions on my questions in #12 would be great, thank you very much!
Comment #14
dimitriseng commentedAny suggestions?? Nobody has implemented a multillingual Ubercart catalog...?