Author: sevein
Date: Wed Nov  3 16:35:16 2010
New Revision: 8771

Log:
Replace single quotes with double quotes. Make use of square brackets to avoid 
conflict with double quotes and i18n->__() for the "Search for" string. Fixes 
issue 1879.

Modified:
   trunk/apps/qubit/modules/search/actions/indexAction.class.php
   trunk/apps/qubit/modules/search/templates/indexSuccess.php

Modified: trunk/apps/qubit/modules/search/actions/indexAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/search/actions/indexAction.class.php       Wed Nov 
 3 15:57:30 2010        (r8770)
+++ trunk/apps/qubit/modules/search/actions/indexAction.class.php       Wed Nov 
 3 16:35:16 2010        (r8771)
@@ -28,10 +28,10 @@
 
     if (isset($this->getRoute()->resource) && $this->getRoute()->resource 
instanceof QubitRepository)
     {
-      $request->query .= " and 
repository:'{$this->getRoute()->resource->authorizedFormOfName}'";
+      $request->query .= " and 
repository:\"{$this->getRoute()->resource->authorizedFormOfName}\"";
     }
 
-    $this->response->setTitle("Search for \"$request->query\" - 
{$this->response->getTitle()}");
+    $this->response->setTitle($this->context->i18n->__('Search for [%1%]', 
array('%1%' => $request->query))." - {$this->response->getTitle()}");
 
     xfLuceneZendManager::load();
     
Zend_Search_Lucene_Analysis_Analyzer::setDefault(SearchIndex::getIndexAnalyzer());

Modified: trunk/apps/qubit/modules/search/templates/indexSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/search/templates/indexSuccess.php  Wed Nov  3 
15:57:30 2010        (r8770)
+++ trunk/apps/qubit/modules/search/templates/indexSuccess.php  Wed Nov  3 
16:35:16 2010        (r8771)
@@ -1,7 +1,7 @@
 <?php use_helper('Text') ?>
 
 <?php if ($sf_request->query): ?>
-  <h1><?php echo __('Search for "%1%"', array('%1%' => $sf_request->query)) 
?></h1>
+  <h1><?php echo __('Search for [%1%]', array('%1%' => $sf_request->query)) 
?></h1>
 <?php endif; ?>
 
 <?php if (isset($error)): ?>

-- 
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