Labels not translated in Views

Created on 10 January 2009, almost 17 years ago
Updated 30 April 2011, over 14 years ago

Hi,
I'm not sure if this is a bug or simply a not implemented (yet) feature, but I'll try to get info/support about.
I have a site with two languages and all views works well (I use also CCK 2.1 and i18n) . The only problem is the labels of the fields (either the simply viewed fields and the labels of the exposed filters). For this labels exist the correspondingly translate version in db (if I simply view the node in different languages, all the labels are correctly translated). Generally I use to display "Widget label", but the problem arise also if I try to personalize the label.
Also a note: on my site the default language is not English, but Italian (but this isn't a problem in general... so I hope this isn't neither for Views modules).
Thanks a lot to everyone can tell me something on this "problem" and obviously thanks a lot to the "Views team" for their incredible work!
Regards,
Saxx

💬 Support request
Status

Closed: won't fix

Version

2.0

Component

Code

Created by

🇮🇹Italy SaxxIng

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇭🇰Hong Kong graham leach

    There's a helper function with a missing t() envelope.

    Look in modules/views/handlers/views_handler_field.inc

    For:

    /**
    * Get this field's label.
    */
    public function label() {
    if (!isset($this->options['label'])) {
    return '';
    }
    // 2025-05-13-GL Enclosed in t() function to enable table heading translations
    return t($this->options['label']);
    }

Production build 0.71.5 2024