From 6b827f1fee97cd2f52d89659c3cb3b3d09405836 Mon Sep 17 00:00:00 2001
From: Axel Rutz <axel.rutz@clever-systems.net>
Date: Sat, 17 May 2014 12:34:34 +0200
Subject: [PATCH] Issue #2269503 by axel.rutz: Translation overview page:
 Allow exact match.

---
 .../lib/Drupal/locale/Form/TranslateFormBase.php   |    4 ++--
 .../lib/Drupal/locale/StringDatabaseStorage.php    |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/core/modules/locale/lib/Drupal/locale/Form/TranslateFormBase.php b/core/modules/locale/lib/Drupal/locale/Form/TranslateFormBase.php
index 24b378e..9e6ad7f 100644
--- a/core/modules/locale/lib/Drupal/locale/Form/TranslateFormBase.php
+++ b/core/modules/locale/lib/Drupal/locale/Form/TranslateFormBase.php
@@ -178,8 +178,8 @@ protected function translateFilters() {
     }
 
     $filters['string'] = array(
-      'title' => $this->t('String contains'),
-      'description' => $this->t('Leave blank to show all strings. The search is case sensitive.'),
+      'title' => $this->t('String'),
+      'description' => $this->t('You can use "%" as wildcard. Leave blank to show all strings. The search is case sensitive.'),
       'default' => '',
     );
 
diff --git a/core/modules/locale/lib/Drupal/locale/StringDatabaseStorage.php b/core/modules/locale/lib/Drupal/locale/StringDatabaseStorage.php
index 72d753a..cc28e12 100644
--- a/core/modules/locale/lib/Drupal/locale/StringDatabaseStorage.php
+++ b/core/modules/locale/lib/Drupal/locale/StringDatabaseStorage.php
@@ -441,7 +441,7 @@ protected function dbStringSelect(array $conditions, array $options = array()) {
         $filter = $query;
       }
       foreach ($options['filters'] as $field => $string) {
-        $filter->condition($this->dbFieldTable($field) . '.' . $field, '%' . db_like($string) . '%', 'LIKE');
+        $filter->condition($this->dbFieldTable($field) . '.' . $field, db_like($string), 'LIKE');
       }
     }
 
-- 
1.7.9.5

