Mercurial > hg > isophonics-drupal-site
comparison core/tests/Drupal/FunctionalTests/Installer/InstallerLanguageDirectionTest.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | c2387f117808 |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
19 /** | 19 /** |
20 * {@inheritdoc} | 20 * {@inheritdoc} |
21 */ | 21 */ |
22 protected function setUpLanguage() { | 22 protected function setUpLanguage() { |
23 // Place a custom local translation in the translations directory. | 23 // Place a custom local translation in the translations directory. |
24 mkdir(\Drupal::root() . '/' . $this->siteDirectory . '/files/translations', 0777, TRUE); | 24 mkdir($this->root . '/' . $this->siteDirectory . '/files/translations', 0777, TRUE); |
25 file_put_contents(\Drupal::root() . '/' . $this->siteDirectory . '/files/translations/drupal-8.0.0.ar.po', "msgid \"\"\nmsgstr \"\"\nmsgid \"Save and continue\"\nmsgstr \"Save and continue Arabic\""); | 25 file_put_contents($this->root . '/' . $this->siteDirectory . '/files/translations/drupal-8.0.0.ar.po', "msgid \"\"\nmsgstr \"\"\nmsgid \"Save and continue\"\nmsgstr \"Save and continue Arabic\""); |
26 | 26 |
27 parent::setUpLanguage(); | 27 parent::setUpLanguage(); |
28 // After selecting a different language than English, all following screens | 28 // After selecting a different language than English, all following screens |
29 // should be translated already. | 29 // should be translated already. |
30 $elements = $this->xpath('//input[@type="submit"]/@value'); | 30 $elements = $this->xpath('//input[@type="submit"]/@value'); |