summaryrefslogtreecommitdiff
path: root/modules/locale
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2012-07-08 23:40:47 -0400
committerDavid Rothstein <drothstein@gmail.com>2012-07-08 23:40:47 -0400
commitefe6bdfd25b46a3bcb7dda5bf94937baea80ca79 (patch)
tree6af9c8eec3aa949f0accc5f724368be6b50102e3 /modules/locale
parent2c7f5090503cb7e7165cee9882b2eb31ba04cd39 (diff)
downloadbrdo-efe6bdfd25b46a3bcb7dda5bf94937baea80ca79.tar.gz
brdo-efe6bdfd25b46a3bcb7dda5bf94937baea80ca79.tar.bz2
Issue #1664528 by Carl Johan: Fixed It's impossible to search for 'Strings not translated to language ...'.
Diffstat (limited to 'modules/locale')
-rw-r--r--modules/locale/locale.test13
1 files changed, 12 insertions, 1 deletions
diff --git a/modules/locale/locale.test b/modules/locale/locale.test
index a710ab25d..afad99f89 100644
--- a/modules/locale/locale.test
+++ b/modules/locale/locale.test
@@ -635,7 +635,7 @@ class LocaleTranslationFunctionalTest extends DrupalWebTestCase {
$this->assertText(t('No strings available.'), t("Search didn't find the string."));
// Ensure untranslated string appears if searching on 'only untranslated
- // strings'.
+ // strings' in "all" (hasn't been translated to any language).
$search = array(
'string' => $name,
'language' => 'all',
@@ -645,6 +645,17 @@ class LocaleTranslationFunctionalTest extends DrupalWebTestCase {
$this->drupalPost('admin/config/regional/translate/translate', $search, t('Filter'));
$this->assertNoText(t('No strings available.'), t('Search found the string.'));
+ // Ensure untranslated string appears if searching on 'only untranslated
+ // strings' in the custom language (hasn't been translated to that specific language).
+ $search = array(
+ 'string' => $name,
+ 'language' => $langcode,
+ 'translation' => 'untranslated',
+ 'group' => 'all',
+ );
+ $this->drupalPost('admin/config/regional/translate/translate', $search, t('Filter'));
+ $this->assertNoText(t('No strings available.'), t('Search found the string.'));
+
// Add translation.
// Assume this is the only result, given the random name.
$this->clickLink(t('edit'));