Content type with (of course) node title and two cck taxonomy fields with two different vocabularies (i.e. Category, Type).
3 languages, English is default language. i18nviews is installed.
If I create a tabular view and add title + two fields (both as taxonomy:all terms, limit therms on different vocab), the column labels are correct in English, but in the other languages the second taxonomy column has the same label als the first.
It seems that both labels get the translation key viewname:default:field:term_node:tid:label
The second field actually has id tid_1, but the views module uses (the same) field type instead of the id to compose the translation key, so instead of ...:tid_1:label, the second label one also uses ...:tid:label
(See also http://drupal.org/node/1106622 on i18nviews, and somewhat related http://drupal.org/node/1008358)
Comment | File | Size | Author |
---|---|---|---|
#4 | 1109108-unique-translation.patch | 1.08 KB | dawehner |
#2 | 1109108_2_overlapping_translation.patch | 1.84 KB | szantog |
#1 | views-i18n-id-1109108.diff | 1.68 KB | bart.hanssens |
Comments
Comment #1
bart.hanssens CreditAttribution: bart.hanssens commentedThis patch (against 6.x-dev) seems to work.
Now generates
viewname:default:field:term_node:tid:label
viewname:default:field:term_node:tid_1:label
Comment #2
szantog CreditAttribution: szantog commentedThis patch doesn't worked for me, but imho i could catch it based on your work. Actually all of my translation works well.
Comment #3
dawehnerPlease take care to use drupal code style. It shouldn't include tabs
I think this is not required
Some random whitespace
I think it doesn't have to be noted
Comment #4
dawehnerHere is another patch
Comment #5
dawehnerUpdate status.
Comment #6
dawehnerAfter review from webflow, commited to 6.x-3.x and 7.x-3.x
Comment #8
coert CreditAttribution: coert commentedI have a problem with my field_data_field_-tables now, and I believe it's due to this fix. It seems column-names weren't merged properly with the views update to RC3. I now get an error:
'Exception: SQLSTATE[42S22]: Column not found: 1054 Unknown column \'field_data_field_authors.uid\' in \'on clause\''
In my field_data_field_authors-table I have the column 'field_data_field_authors.field_authors_uid', I believe should have been merged in the update to 'field_data_field_authors.uid'... due to the bugfix described here... (I think, though not entirely sure)
Would it suffice to rename the column in my DB from 'field_data_field_authors.field_authors_uid' to 'field_data_field_authors.uid' to fix this now?