Hello,
I've been searching for one hour now, without success.
I don't know if it's a Views or i18n related issue.
I have a view that uses fields and is output as a table.
My field label is already translated in
admin/structure/types/manage/my-type/fields/my_field/translate/fr
When I go on the node page, the label is indeed translated, but when I go on my view (table) the label isn't translated.
I checked "Create a label", I don't know if I should, but if don't check it, then there is no label on my column. (Please see attached screenshot)
How should I do to translate the field (column) label?
Thank you
Comments
Comment #1
merlinofchaos commentedYou need the i18nviews module.
Comment #2
ludo.rYes I've already installed it and just found the translate page when editing a view.
I didn't know there was such a page.
Thank you!
Comment #3
sahuni commentedI was about to write an issue when I found this post. Not so easy to guess.
Of course, we can also do that with general translation interface.
It's not possible to have automatically the translated field (from content type management) label if not changed in the view?
Comment #4
sahuni commentedComment #5
dawehnerYou need i18n_field for that.
Comment #6
sahuni commentedI had installed i18nviews (out of package) and Field translation (inside package). I guess you're referring to field translation when you write i18n_field.
I have the translation of labels in nodes working well (content type field management).
But when I use those fields in a view, filtering the view in a secondary language and testing in that language, my labels stay in my default language.
If I use the general translation interface or the new option for translation inside the view, it's OK, I have what I want.
But, because the translation already exists for that label, I supposed Views could take it from core without I did anything special. It's not the case. But your answer indicates it should.
Comment #7
ludo.rMy guess is that when you want a label in a view, the view take the actual label of the field as default value (which you can modify before saving the view) and saves it as a new translatable string. I think it does not save a reference to that field label.
So that it cannot find the field label translations.
It would be great if the view could automatically get the label translation.
Comment #8
dawehnerMaybe you could also enable i18n_views and set the translation method on admin/structure/views/advanced.
Comment #9
ludo.rWhat can we do in there?
It says
Does it work also for field labels?
What method must we set? Core or Internationalization views?
I just tried but I didn't see any changes.
Comment #10
fraweg commentedHello dolu,
have you solve this issue?
Best regards
Frank
Comment #11
mustanggb commented