commit a999a0ac2c7a57c9afd332d9257f1a60743af657 Author: Christian Lopez Espinola Date: Mon Jun 25 14:03:12 2012 +0200 Removed streamwrappers. diff --git a/core/modules/locale/lib/Drupal/locale/Tests/LocaleFileImportStatus.php b/core/modules/locale/lib/Drupal/locale/Tests/LocaleFileImportStatus.php index a822d48..71abe8a 100644 --- a/core/modules/locale/lib/Drupal/locale/Tests/LocaleFileImportStatus.php +++ b/core/modules/locale/lib/Drupal/locale/Tests/LocaleFileImportStatus.php @@ -187,7 +187,7 @@ class LocaleFileImportStatus extends WebTestBase { variable_set('locale_translate_file_directory', $dir); $langcode = 'de'; $this->addLanguage($langcode); - $file_uri = 'translations://po_'. $this->randomString() .'.'. $langcode .'.po'; + $file_uri = $dir. '/po_'. $this->randomString() .'.'. $langcode .'.po'; file_put_contents($file_uri, $this->randomString()); $this->assertTrue(is_file($file_uri), 'Translation file is created.'); language_delete($langcode); diff --git a/core/modules/locale/lib/Drupal/locale/TranslationsStream.php b/core/modules/locale/lib/Drupal/locale/TranslationsStream.php deleted file mode 100644 index 975c184..0000000 --- a/core/modules/locale/lib/Drupal/locale/TranslationsStream.php +++ /dev/null @@ -1,37 +0,0 @@ -getTarget()); - return $GLOBALS['base_url'] . '/' . self::getDirectoryPath() . '/' . drupal_encode_path($path); - } -} diff --git a/core/modules/locale/locale.module b/core/modules/locale/locale.module index b71c959..f153e93 100644 --- a/core/modules/locale/locale.module +++ b/core/modules/locale/locale.module @@ -12,7 +12,6 @@ */ use Drupal\locale\LocaleLookup; -use Drupal\locale\TranslationsStream; /** * Regular expression pattern used to localize JavaScript strings. @@ -171,21 +170,6 @@ function locale_theme() { } /** - * Implements hook_stream_wrappers(). - */ -function locale_stream_wrappers() { - $wrappers = array( - 'translations' => array( - 'name' => t('Translation files'), - 'class' => 'Drupal\locale\TranslationsStream', - 'description' => t('Translation files'), - 'type' => STREAM_WRAPPERS_LOCAL_NORMAL, - ), - ); - return $wrappers; -} - -/** * Implements hook_language_insert(). */ function locale_language_insert($language) {