--- a/sites/all/modules/hacked2/hacked.admin.inc	jue jun 28 18:20:00 2012
+++ b/sites/all/modules/hacked2/hacked.admin.inc	jue jun 28 13:43:17 2012
@@ -36,6 +36,26 @@
     );
   }
 
+
+  $form['hacked_ignore_fiels'] = array(
+    '#type' => 'fieldset',
+    '#title' => t('Ignore files'),
+  );
+
+  // added the checkbox to define if we want to check the txt files or not
+  $form['hacked_ignore_fiels']['hacked_ignore_txt_files'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Ignore txt files'),
+    '#default_value' => variable_get('hacked_ignore_txt_files', 0),
+  );
+
+  // added checkbox to define if we want to check the po files or not
+  $form['hacked_ignore_fiels']['hacked_ignore_po_files'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Ignore po files'),
+    '#default_value' => variable_get('hacked_ignore_po_files', 0),
+  );
+
   $form['#submit'][] = 'hacked_settings_form_submit';
 
   return system_settings_form($form);
   

--- a/sites/all/modules/hacked2/includes/hacked_project (2).inc	jue jun 28 18:20:00 2012
+++ b/sites/all/modules/hacked2/includes/hacked_project.inc	jue jun 28 18:03:26 2012
@@ -737,9 +737,35 @@
    */
   function scan_base_path() {
     $files = hacked_file_scan_directory($this->base_path, '/.*/', array('.', '..', 'CVS', '.svn', '.git'));
+
+    // check the configuration says we should ignore txt and po files
+    $ignore_txt = variable_get('hacked_ignore_txt_files', 0);
+    $ignore_po  = variable_get('hacked_ignore_po_files', 0);
+
+    $extensions_to_ignore = array();
+    if ($ignore_txt) {
+      $extensions_to_ignore[] = 'txt';
+    }
+    if ($ignore_po) {
+      $extensions_to_ignore[] = 'po';
+    }
+
     foreach ($files as $file) {
-      $filename = str_replace($this->base_path . '/', '', $file->filename);
-      $this->files[] = $filename;
+        
+      if (!$ignore_txt && !$ignore_po) {
+        // don't ignore anything
+        $filename = str_replace($this->base_path . '/', '', $file->filename);
+        $this->files[] = $filename;
+
+      } else {
+
+        $extension = pathinfo($file->filename, PATHINFO_EXTENSION);
+
+        if ( !in_array($extension, $extensions_to_ignore) ) {
+          $filename = str_replace($this->base_path . '/', '', $file->filename);
+          $this->files[] = $filename;
+        }
+      } 
     }
   }
 
