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.
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');
Comments
Comment #1
calmforce CreditAttribution: calmforce commentedI 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?
Comment #2
Jose Reyero CreditAttribution: Jose Reyero commentedI think this would be fixed on the views_gallery module.
Comment #3
KarenS CreditAttribution: KarenS commentedThat 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().
Comment #4
VVS CreditAttribution: VVS commentedНашёл!!!
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!