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

dddave’s picture

Project: Drupal core » Node Images
Version: 6.17 » 6.x-2.x-dev
Component: language system » Code
Assigned: hunlaprovo » Unassigned

I 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.

damienmckenna’s picture

Title: Fatal error: Call to undefined function to() in /home/httpd/www/examp.hu/html/sites/all/modules/node_images/node_images.pages.in » Fatal error: Call to undefined function to() in /sites/all/modules/node_images/node_images.pages.inc
damienmckenna’s picture

Title: Fatal error: Call to undefined function to() in /sites/all/modules/node_images/node_images.pages.inc » Fatal error: Call to undefined function to() in node_images.pages.inc

(shortening the title so it doesn't make the issue queue look so funky)

JayNL’s picture

doesnt seem to be a node image problem, but rather an i18n issue... Like, any other module when I18n is enabled.

alexbk66-’s picture

Does such function to() exist? Can't even search for such name... Is it meant to be t()?