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

CommentFileSizeAuthor
views-label-translate.jpeg59.19 KBludo.r

Comments

merlinofchaos’s picture

Status: Active » Fixed

You need the i18nviews module.

ludo.r’s picture

Yes 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!

sahuni’s picture

I 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?

sahuni’s picture

Status: Fixed » Active
dawehner’s picture

Status: Active » Fixed

You need i18n_field for that.

sahuni’s picture

Status: Fixed » Active

I 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.

ludo.r’s picture

My 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.

dawehner’s picture

Maybe you could also enable i18n_views and set the translation method on admin/structure/views/advanced.

ludo.r’s picture

What can we do in there?

It says

Select a translation method to use for Views data like header, footer, and empty text.

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.

fraweg’s picture

Hello dolu,

have you solve this issue?

Best regards
Frank

mustanggb’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)