How to translate views title

Public

By default views page title can't be trasnlated, but you can add these few line od code to template.php and then translate views title by drupal translate interface.

Get raw version
php
  1. /**
  2.  * Allow to translate views page title
  3.  * @param $view
  4.  */
  5. function asist_clean_views_pre_render(&$view) {
  6. $view->set_title(t($view->get_title()));
  7. }