# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: contributions/modules/cck_scorm/SCORM.module
--- contributions/modules/cck_scorm/SCORM.module Base (1.2)
+++ contributions/modules/cck_scorm/SCORM.module Locally Modified (Based On 1.2)
@@ -952,7 +952,7 @@
   
   if (!isset($_GET['id'])) {
       $output=t("SCORM parameter is missing");
-      return t($output);
+      return $output;
     }
   $scormid= $_GET['id'];
   
@@ -998,7 +998,7 @@
               $times=array('timemodified', 'x.start.time');
               $durations=array('total_time', 'session_time', 'cmi.total_time', 'cmi.session_time');
               $uattempt=$attempt-1; //TODO: Check why attempt always starts from 2
-              $output .="<h2>". t('Attempt:') ."$uattempt</h2>";
+              $output .="<h2>". t('Attempt: @attempt', array('@attempt' => $uattempt)) . "</h2>";
               $output .="<table class='scorm-result'><tr><th>". t('Element from SCORM') ."</th><th>". t('Value') ."</th></tr>";
               foreach ($userdata as $element => $value) {
                 if ($element=='x_start_time' || $element=='cmi.suspend_data' || $element=='session_time'|| $element=='cmi.total_time')
@@ -1021,7 +1021,7 @@
         }
    }
   //$output=scorm_get_user_grades($scormid,$user->uid);
-  return t($output);
+  return $output;
 }
 
 /**
@@ -1033,7 +1033,7 @@
   
   if (!isset($_GET['id'])) {
       $output=t("SCORM parameter is missing");
-      return t($output);
+      return $output;
     }
     
   $output .="<div class='popup-result-div'><div align='center'><div class='exercise-finished'>". t('You have finished the exercise') ."<a href='#' class='the-x' onclick='disablePopup();'>x</a></div>";  
@@ -1078,7 +1078,7 @@
                 }
                 $scorm_data[$element]=$value;
                 
-                //$output.="<tr><th>".t($element)."</th><th>$value</th></tr>";
+                //$output.="<tr><th>". $element ."</th><th>$value</th></tr>";
               }
 /* ######################################################### -- By Rabe'e -- ################################################################# */
 
@@ -1134,7 +1134,7 @@
                      $output .='<tr><td colspan="2" style="height:60px;"><div class="passes-or-failed">'. t('Sorry, you have failed the exercise') .'<br></div></td></tr>';
                    }
                    
-                   //$output.='<tr><td colspan="2">'.$points.' '.t('points were added to your account.').'</td></tr>';
+                   //$output.='<tr><td colspan="2">'. t('@points points were added to your account.', array('@points' => $points)) .'</td></tr>';
                    $output .='<tr><td colspan="2">'. t('Your points have been added to your account.') .'</td></tr>';
                    $output .='<tr><td><br>'. t('You have reached a new level:') .'</td><td><br>XX</td></tr>';
                 
@@ -1146,10 +1146,10 @@
         }
    //}
   //$output.='View your previous results <a href='.$base_path.'result?id='.$scormid.'?scoid='.$scoid.'?mode=exit>here</a>'; 
-  //return t($output);
+  //return $output;
   //drupal_add_css('');
-  print "<link type='text/css' href='sites/all/themes/linguatv_zen/feedback_popup.css' media='all' rel='stylesheet'></link>";
-  print t($output);
+  // print "<link type='text/css' href='sites/all/themes/linguatv_zen/feedback_popup.css' media='all' rel='stylesheet'></link>";
+  print $output;
   exit();
 }
 
@@ -2932,6 +2932,6 @@
         }
 
   //$output=scorm_get_user_grades($scormid,$user->uid);
-  return t($output);
+  return $output;
 }
 
Index: contributions/modules/cck_scorm/SCORM_formatter.inc
--- contributions/modules/cck_scorm/SCORM_formatter.inc Base (1.1)
+++ contributions/modules/cck_scorm/SCORM_formatter.inc Locally Modified (Based On 1.1)
@@ -65,7 +65,7 @@
      }
     
    }
-    return t($output);
+    return $output;
 }
 
 /* 
