node_images.pages.inc ---i18n bug
"
/************************************************************
* Gallery functions
************************************************************/
function _node_images_gallery($node) {
$node->node_images = node_images_load($node, 0, 1);
if (empty($node->node_images)) {
drupal_set_message(t('No images uploaded for this content.'));
if (user_access('create node images') && node_access('update', $node)) {
$output = t('Click here to upload new images.', array('!url' => url('node/'.$node->nid.'/images')));
}
return '
'.$output.'
';
}
$settings = array('images' => array());
$i = 1;
$thumbs = array();
foreach ($node->node_images as $id => $image) {
// i18n support for description
if (module_exists('i18nstrings')) {
// translate description
to('node_images:node_image:'.$image->id.':description', $image, array('description'));
}
"
i18nstrings_translate_object() ?????????
to---???
Open the image gallery...
Fatal error: Call to undefined function to() in /home/httpd/www/example.hu/html/sites/all/modules/node_images/node_images.pages.inc on line 310
Comments
Comment #1
dddave commentedI take guess here and send it to the node images queue. This doesn't seem to be core issue. Feel free to adjust the settings.
Comment #2
damienmckennaComment #3
damienmckenna(shortening the title so it doesn't make the issue queue look so funky)
Comment #4
JayNL commenteddoesnt seem to be a node image problem, but rather an i18n issue... Like, any other module when I18n is enabled.
Comment #5
alexbk66- commentedDoes such function to() exist? Can't even search for such name... Is it meant to be t()?