In views_gallery.views_default.inc file (views_gallery module) there is a string that can't be translated due to "invalid HTML tag" error. It is actually a hyperlink made this way:
$handler->override_option('header', 'Start Slideshow');

so the entire tag is a string, but there is no way to translate either via Search/Replace or Import. If I try to translate the "Start Slideshow" alone via Import, it doesn't work either - it takes the string, but nothing changes.
So I am stuck with this English string in the middle all-Russian page.
What to do?

Comments

calmforce’s picture

I am sorry, I used the hypetext tag and it messed the whole thing. Here is how it should read:

In views_gallery.views_default.inc file (views_gallery module) there is a string that can't be translated due to "invalid HTML tag" error. It is actually a hyperlink made this way:
$handler->override_option('header', < "a" href="#" onclick="Lightbox.triggerLightbox(\'lightshow\', \'field_gallery_image\');">Start Slideshow);

so the entire "a" tag is a string, but there is no way to translate either via Search/Replace or Import. If I try to translate the "Start Slideshow" alone via Import, it doesn't work either - it takes the string, but nothing changes.
So I am stuck with this English string in the middle all-Russian page.
What to do?

Jose Reyero’s picture

Project: Internationalization » Views Gallery
Version: 6.x-1.7 » 6.x-2.x-dev

I think this would be fixed on the views_gallery module.

KarenS’s picture

Status: Active » Closed (won't fix)

That is a value in a default view. Default views don't include t() tags. I don't know of any way to fix it other than manually alter the default view every time it is created to insert a t().

VVS’s picture

Нашёл!!!
See /admin/build/views/edit/gallery in "Full gallery", Header: Code PHP:
<a href="#" onclick="Lightbox.triggerLightbox('lightshow', 'field_gallery_image');">Start Slideshow</a>

Voila!