Index: imageblock.info
===================================================================
--- imageblock.info	(revision 3139)
+++ imageblock.info	(working copy)
@@ -1,9 +1,12 @@
 name = "Image Block"
-description = Provides a file field in block configuration form for displaying an image in a block.
+description = PATCHED! Provides a file field in block configuration form for displaying an image in a block.
 core = 7.x
 
 dependencies[] = block
+dependencies[] = i18n_block
+dependencies[] = i18n_string
 
+
 ; Information added by Drupal.org packaging script on 2015-08-18
 version = "7.x-1.3+6-dev"
 core = "7.x"
Index: imageblock.module
===================================================================
--- imageblock.module	(revision 3139)
+++ imageblock.module	(working copy)
@@ -169,6 +169,9 @@
 function imageblock_block_view($delta = '') {
   $block = db_query('SELECT body, format, fid, data FROM {imageblock} WHERE bid = :bid', array(':bid' => $delta))->fetchObject();
   $data['subject'] = NULL;
+  if (module_exists('i18n_block')) {
+    $block->body = i18n_string(array('blocks', 'imageblock', $delta, 'body'), $block->body);
+  }
   $data['content'] = theme('imageblock_content', array('block' => $block));
   return $data;
 }
@@ -382,3 +385,37 @@
   }
 }
 
+/**
+ * Internationalization support.  Requires i18n_block.
+ */
+if (module_exists('i18n_block')) {
+  /**
+   * Implements hook_i18n_object_info_alter().
+   */
+  function imageblock_i18n_object_info_alter(&$info) {
+    $info['block']['class'] = 'i18n_imageblock_object';
+  }
+
+  /**
+   * Block object.
+   */
+  class i18n_imageblock_object extends i18n_block_object {
+    /**
+     * Get object strings for translation.
+     */
+    protected function build_properties() {
+      if ($this->object->module == 'block' && !isset($this->object->body)) {
+        $block = (object) block_custom_block_get($this->object->delta);
+        $this->object->body = $block->body;
+        $this->object->format = $block->format;
+      }
+      $properties = i18n_string_object_wrapper::build_properties();
+      // Body is available only for custom blocks and imageblocks.
+      if ($this->object->module != 'block' && $this->object->module != 'imageblock') {
+        unset($properties[$this->get_textgroup()][$this->object->module][$this->object->delta]['body']);
+      }
+      return $properties;
+    }
+  }
+}
+
