summaryrefslogtreecommitdiffstatshomepage
path: root/modules/translation/translation.test
diff options
context:
space:
mode:
authorNathaniel <catch@35733.no-reply.drupal.org>2011-10-26 16:48:38 +0900
committerNathaniel <catch@35733.no-reply.drupal.org>2011-10-26 16:48:38 +0900
commit879b5357cd6c8cb9a62ee63e5b06e72b82fa05ae (patch)
treedcbf3603508b9e18322b7ed8258457c083a95896 /modules/translation/translation.test
parent8e967deef0e244d9dbe79e058d404a86b4b8248e (diff)
downloaddrupal-879b5357cd6c8cb9a62ee63e5b06e72b82fa05ae.tar.gz
drupal-879b5357cd6c8cb9a62ee63e5b06e72b82fa05ae.zip
Issue #1301148 by Gábor Hojtsy: Stop pretending we have configuration translation for languages.
Diffstat (limited to 'modules/translation/translation.test')
-rw-r--r--modules/translation/translation.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/translation/translation.test b/modules/translation/translation.test
index b1ea968f68e..c8a1ccdbbae 100644
--- a/modules/translation/translation.test
+++ b/modules/translation/translation.test
@@ -424,7 +424,7 @@ class TranslationTestCase extends DrupalWebTestCase {
$this->drupalGet("node/$node->nid", array('language' => $page_language));
foreach ($types as $type) {
- $args = array('%translation_language' => $translation_language->native, '%page_language' => $page_language->native, '%type' => $type);
+ $args = array('%translation_language' => $translation_language->name, '%page_language' => $page_language->name, '%type' => $type);
if ($find) {
$message = t('[%page_language] Language switch item found for %translation_language language in the %type page area.', $args);
}
@@ -439,7 +439,7 @@ class TranslationTestCase extends DrupalWebTestCase {
$xpath = '//div[contains(@class, :type)]//span[@class="locale-untranslated"]';
}
- $found = $this->findContentByXPath($xpath, array(':type' => $type, ':url' => $url), $translation_language->native);
+ $found = $this->findContentByXPath($xpath, array(':type' => $type, ':url' => $url), $translation_language->name);
$result = $this->assertTrue($found == $find, $message) && $result;
}