Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
My profile page title gets not translated.
$field->page and $value should wrapped with t() or translated
somewhere before in the code...
17 @@ -67,7 +68,8 @@
18 $output .= theme('pager', NULL, 20);
19
20 if ($field->type == 'selection' || $field->type == 'list' || $field->type == 'textfield') {
21 - $title = strtr(check_plain($field->page), array('%value' => theme('placeholder', $value)));
22 + // $title = strtr(check_plain($field->page), array('%value' => theme('placeholder', $value))); // JG
23 + $title = strtr(check_plain(t($field->page)), array('%value' => theme('placeholder', t($value))));
24 }
25 else {
26 $title = check_plain($field->page);
Thanx Jens
Comments
Comment #1
kenorb CreditAttribution: kenorb commentedComment #2
kenorb CreditAttribution: kenorb commented