diff --git a/node_gallery.inc b/node_gallery.inc
index 14dc5e0..a2f5c67 100644
--- a/node_gallery.inc
+++ b/node_gallery.inc
@@ -336,7 +336,6 @@ function node_gallery_get_image_nids($gid, $sorted = TRUE, $filtered = TRUE, $fa
       if (isset($message) || $fallback) {
         // Use our default sql
         if (isset($message)) {
-          watchdog('node_gallery', $message);
           drupal_set_message($message, 'warning');
         }
         if ($filtered) {
@@ -938,7 +937,6 @@ function node_gallery_delete_orphans() {
       db_query($sql);
       $message = t('Found and removed !count orphaned rows from table !table.', array('!count' => $count, '!table' => $table));
       drupal_set_message($message);
-      watchdog('node_gallery', $message);
     }
   }
   if ($total == 0) {
@@ -1072,7 +1070,7 @@ function node_gallery_batch_rotate_callback($filepath, $degrees, &$context) {
     drupal_write_record('files', $file, 'fid');
   }
   else {
-    watchdog('node_gallery', t('Could not open image for rotation'));
+    watchdog('node_gallery', 'Could not open image for rotation');
   }
   $context['results'][] = $result;
 }
diff --git a/node_gallery.install b/node_gallery.install
index de4e608..5b96965 100644
--- a/node_gallery.install
+++ b/node_gallery.install
@@ -200,7 +200,7 @@ function node_gallery_setup_content_type($type) {
   $cck_file = $path . "/" . $type . ".cck";
   $action = node_gallery_type_exists($type) ? $type : '<create>';
   node_gallery_install_cck_type($action, $cck_file);
-  drupal_set_message(t('Node type "' . $type . '" created/modified.'));
+  drupal_set_message(t('Node type %type created/modified.', array('%type' => $type)));
 }
 
 function node_gallery_setup_content_types() {
diff --git a/node_gallery.module b/node_gallery.module
index eddc41a..be5fd66 100644
--- a/node_gallery.module
+++ b/node_gallery.module
@@ -58,7 +58,8 @@ function node_gallery_init() {
  * Implements hook_perm().
  */
 function node_gallery_perm() {
-  return array(NODE_GALLERY_PERM_ADMIN_GALLERY, NODE_GALLERY_PERM_VIEW_GALLERY, NODE_GALLERY_PERM_UPLOAD_TO_ALL_GALLERIES);
+  // If we use the constants, translation template extractor complains
+  return array('administer node gallery', 'view node gallery', 'upload to all galleries');
 }
 
 /**
