OK,, localizer is installer and its running perfectly...

now,, when I create a new view and I select "Provide Page View" as my view option,,,

now in that page there is a field called "Title:"
now this should be the title of the views once the page is displayed with the results..

what I don't see is how we can translate this title into different language

I thought "Localizer strings translation" will be able to translate it it but it doesn't work..

is there a way to get this field translated?

Thanks

Comments

Oghnia’s picture

any idea anyone...

Roberto Gerola’s picture

Status: Active » Closed (won't fix)

It is impossible without patching Views.

llribas’s picture

Easy solution:

1. Don't assign a title in the view Title field (leave it blank, no title)
2. Inside the section "Page" or "Block" or both, there is a "Header" text area. You can fill it with a code like:

<?php
global $locale;
if($locale=="es") {
  echo '<h1 class="title">Title in ES</h1>';
}
elseif($locale=="it") {
  echo '<h1 class="title">Title in IT</h1>';
}
else {
  echo '<h1 class="title">Title in EN or other languages</h1>';
}
?>

(Remember to mark the input format as "PHP")

DONE!!!

I found this solution and works great for me.

llribas

Darko’s picture

Brilliant! Thanks!