I have translated about all UI of node gallery in italian language, but I can't find this string to be translated:
You may upload images to this gallery.

CommentFileSizeAuthor
#6 node_gallery.pot23.17 KBdbeall

Comments

matteoraggi’s picture

I have updated from alpha 11 to alpha 12 and the the translation of "Previous/Next" is disappeared.
I have also founded that need translation also :
Create Gallery
Gallery Name

dbeall’s picture

This must be due to using this type of string l(' ' when translation needs t(' '
at least I think that is the way it goes....

theme.inc
@@line 67
$empty_message .= ' '. l('You may upload images to this gallery.', 'node/'..............

EDIT:
same thing with prev/next
theme.inc
@@line 184
$col2 = array('data' => l('Previous', 'node/'.................

betadog’s picture

Found that too. Changed "l" to "t" and got a lot of "warning: Illegal offset type ..." errors. Unfortunately not that easy for a noob like me.

justintime’s picture

Give this a try:

Index: theme/theme.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/node_gallery/theme/Attic/theme.inc,v
retrieving revision 1.1.2.14
diff -u -r1.1.2.14 theme.inc
--- theme/theme.inc	12 Jan 2010 22:54:44 -0000	1.1.2.14
+++ theme/theme.inc	13 Jan 2010 16:58:48 -0000
@@ -64,7 +64,7 @@
   if (!count($gallery->images)) {
     $empty_message = '<p>'. t('There are currently no images in this gallery.');
     if (node_gallery_user_access('edit', $gallery)) {
-      $empty_message .= '  '. l('You may upload images to this gallery.', 'node/'. $gallery->nid .'/upload', array('query' => 'destination=node/'. $gallery->nid));
+      $empty_message .= '  '. l(t('You may upload images to this gallery.'), 'node/'. $gallery->nid .'/upload', array('query' => 'destination=node/'. $gallery->nid));
     }
     $empty_message .= '</p>';
   }
@@ -181,11 +181,11 @@
   } 
   else {
 	  if (variable_get('node_images_page_fragment', FALSE)) {
-			$col2 = array('data' => l('Previous', 'node/'. $navigator['prev_nid'], array(fragment => 'node-inner')) .'/'. l('Next', 'node/'. $navigator['next_nid'], array(fragment => 'node-inner')),
+			$col2 = array('data' => l(t('Previous'), 'node/'. $navigator['prev_nid'], array(fragment => 'node-inner')) .'/'. l(t('Next'), 'node/'. $navigator['next_nid'], array(fragment => 'node-inner')),
 		    'class' => 'image-navigator-mid');
 	  }
 	  else {
-		  $col2 = array('data' => l('Previous', 'node/'. $navigator['prev_nid']) .'/'. l('Next', 'node/'. $navigator['next_nid']),
+		  $col2 = array('data' => l(t('Previous'), 'node/'. $navigator['prev_nid']) .'/'. l(t('Next'), 'node/'. $navigator['next_nid']),
 		    'class' => 'image-navigator-mid');
 	  }
   }
justintime’s picture

Status: Active » Needs review
dbeall’s picture

StatusFileSize
new23.17 KB

here is a po template for alpha12 with the updated code from #4,
looks ok and the text is working on my test site..

justintime’s picture

Assigned: Unassigned » justintime
Status: Needs review » Fixed

Committed changes to DRUPAL-6--2 branch.

dbeall’s picture

@everyone, final thought before I run away to my test cave..
Justintime is adding a translation directory to the node_gallery module package, please submit any completed pot files for inclusion.

And there will be a translation directory for the node_gallery_access module.
please submit any completed pot files for inclusion to Translations for node_gallery_access
thanks

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.