Author: jablko
Date: Thu Oct 28 00:57:38 2010
New Revision: 8609

Log:
Cosmetic change

Modified:
   trunk/apps/qubit/modules/digitalobject/actions/editAction.class.php
   trunk/apps/qubit/modules/digitalobject/actions/uploadAction.class.php
   
trunk/plugins/sfTranslatePlugin/modules/sfTranslatePlugin/actions/translateAction.class.php

Modified: trunk/apps/qubit/modules/digitalobject/actions/editAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/digitalobject/actions/editAction.class.php Thu Oct 
28 00:39:46 2010        (r8608)
+++ trunk/apps/qubit/modules/digitalobject/actions/editAction.class.php Thu Oct 
28 00:57:38 2010        (r8609)
@@ -64,8 +64,8 @@
       $this->form->setValidator('displayAsCompound', new sfValidatorBoolean);
       $this->form->setWidget('displayAsCompound', new sfWidgetFormSelectRadio(
         array('choices' => array(
-          '1' => $this->getContext()->getI18N()->__('Yes'),
-          '0' => $this->getContext()->getI18N()->__('No')
+          '1' => $this->context->i18n->__('Yes'),
+          '0' => $this->context->i18n->__('No')
         ))
       ));
       // Set "displayAsCompound" value from QubitProperty

Modified: trunk/apps/qubit/modules/digitalobject/actions/uploadAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/digitalobject/actions/uploadAction.class.php       
Thu Oct 28 00:39:46 2010        (r8608)
+++ trunk/apps/qubit/modules/digitalobject/actions/uploadAction.class.php       
Thu Oct 28 00:57:38 2010        (r8609)
@@ -63,7 +63,7 @@
       // Move file to web/uploads/tmp directory
       if (!move_uploaded_file($file['tmp_name'], $tmpFilePath))
       {
-        $errorMessage = $this->getContext()->getI18N()->__('File %1% could not 
be moved to %2%', array('%1%' => $file['name'], '%2%' => $tmpDir));
+        $errorMessage = $this->context->i18n->__('File %1% could not be moved 
to %2%', array('%1%' => $file['name'], '%2%' => $tmpDir));
         $uploadFiles[] = array('error' => $errorMessage);
         continue;
       }
@@ -93,7 +93,7 @@
         // Show a warning message if object couldn't be thumbnailed when it is 
supposed to be possible
         if (!file_exists($thumbPath) && 0 >= filesize($thumbPath))
         {
-          $warning = $this->getContext()->getI18N()->__('File %1% could not be 
thumbnailed', array('%1%' => $file['name']));
+          $warning = $this->context->i18n->__('File %1% could not be 
thumbnailed', array('%1%' => $file['name']));
         }
       }
       else

Modified: 
trunk/plugins/sfTranslatePlugin/modules/sfTranslatePlugin/actions/translateAction.class.php
==============================================================================
--- 
trunk/plugins/sfTranslatePlugin/modules/sfTranslatePlugin/actions/translateAction.class.php
 Thu Oct 28 00:39:46 2010        (r8608)
+++ 
trunk/plugins/sfTranslatePlugin/modules/sfTranslatePlugin/actions/translateAction.class.php
 Thu Oct 28 00:57:38 2010        (r8609)
@@ -34,7 +34,7 @@
     $error = array();
     $status = array();
 
-    $messageSource = $this->getContext()->getI18N()->getMessageSource();
+    $messageSource = $this->context->i18n->getMessageSource();
 
     $sourceMessages = $request->getParameter('source', array());
     $targetMessages = $request->getParameter('target', array());

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to