protected function L10nUpdateTestBase::setTranslationsDirectory in Localization update 7.2
Sets the value of the default translations directory.
Parameters
string $path: Path of the translations directory relative to the drupal installation directory.
1 call to L10nUpdateTestBase::setTranslationsDirectory()
- L10nUpdateTestBase::setTranslationFiles in tests/
L10nUpdateTestBase.test - Setup the environment containing local and remote translation files.
File
- tests/
L10nUpdateTestBase.test, line 54 - Contains L10nUpdateTest.
Class
- L10nUpdateTestBase
- Tests for update translations.
Code
protected function setTranslationsDirectory($path) {
file_prepare_directory($path, FILE_CREATE_DIRECTORY);
variable_set('l10n_update_download_store', $path);
}