I am not sure if such a solution exist

I would not mind if anyone pointed at me a temporary solution I could implement

I was thinking in terms of the lines of wrapping "labels" in t()s write before they are output to the screen
but I don't know where to look

Thanks

Comments

giorgosk’s picture

I found myself a hack if anybody else is interested

added

//around line 790 views.module
    $arg['label'] = t($arg['label']); /*added this line*/
    $view->field[] = $arg;

//around line 824
    $arg['label'] = t($arg['label']); /*added this line*/
    $view->exposed_filter[] = $arg;

so that labels are passed to the locale strings

I don't know if it qualifies for a change to be included in views
but it works getting the labels of the "table view" and the "exposed filters" to be translatable

still if their is an official solution I would love to hear about it

moritzz’s picture

For table headers, look at my post to solve this without hacking anything. This works for table headers in general and therefore for views 1.6 as well.

keesje’s picture

Version: 5.x-1.5 » 5.x-1.6

Confirmed as working hack for 5.x-1.6, line numbers aren't correct anymore. Please apply this (or similar functionality) to the module. Its badly needed.

Thanks,

Kees

keesje’s picture

Category: support » feature

I hope nobody's complaining filing this as a featur request?

sun’s picture

If you post a proper patch, it might be considered for 1.7.

corfiot’s picture

How about this diff on views.module 1.6?

1282c1282
<       $header['data'] = ($field['label'] ? $field['label'] : $info['name']);
---
>       $header['data'] = t($field['label'] ? $field['label'] : $info['name']);
1291c1291
<       $header['data'] = $field['label'];
---
>       $header['data'] = t($field['label']);
1295c1295
<       $header['sort'] = strtolower($field['defaultsort']);
---
>       $header['sort'] = strtolower(t($field['defaultsort']));
2146c2146
< }
---
> }
esmerel’s picture

Status: Active » Closed (won't fix)

No commits are being made to the 5.x branch at this point.