Hello,
I'm using drupal 5.9
and following modules:
internationalization 5.x-2.4 - all modules are enabled
Views 5.x-1.6
Panels 5.x-2.0-rc1a

I found some articles that I can accomplish this with function t()
But I didn't figure out how to do it.
Is there some elegant solution how to translate title of view or panel.
any help will be very appreciated.

Regards.

Comments

lowlevel’s picture

I just add custom content on top of the panel like this

<h2>
<?php
print t("translate");
?>
</h2>

And this string now appears in locale module.
But maybe there is better solution.
I hope there is.

Regards.

llribas’s picture

Maybe a better solution:
Put this in the "Argument Handling Code" of the view:
$view->page_title = t($view->page_title);

And then you can translate with "manage strings" (first visit one the view page)

http://drupal.org/node/242355

Lluis Ribas

agerard’s picture

I have a site in beta where I got the panel pane title translations working, then dumped the db, cloned the machine to a prod box, and connected to the exported db. Since then beta is being used to test a few new modules and other changes, but no major differences - prod has had content updates and some configuration changes to keep in sync with beta. Now in prod, the panel pane titles translate fine, but in beta instance, they don't. I see the strings in the interface translate area, but they don't show when I switch languages. I exported the interface translation from prod, and imported to beta - they worked for a short while and then stopped (they are still visible in the interface translation set). Anyone have any theories?

Thanks!!!