LOCALE_TRANSLATION_USE_SOURCE_LOCAL

Same name in other branches
  1. 9 core/modules/locale/locale.module \LOCALE_TRANSLATION_USE_SOURCE_LOCAL
  2. 10 core/modules/locale/locale.module \LOCALE_TRANSLATION_USE_SOURCE_LOCAL
  3. 11.x core/modules/locale/locale.module \LOCALE_TRANSLATION_USE_SOURCE_LOCAL

Translation update mode: Use local files only.

When checking for available translation updates, only local files will be used. Any remote translation file will be ignored. Also custom modules and themes which have set a "server pattern" to use a remote translation server will be ignored.

3 uses of LOCALE_TRANSLATION_USE_SOURCE_LOCAL
LocaleSettingsForm::validateForm in core/modules/locale/src/Form/LocaleSettingsForm.php
Form validation handler.
LocaleUpdateTest::testUpdateCheckStatus in core/modules/locale/tests/src/Functional/LocaleUpdateTest.php
Checks if local or remote translation sources are detected.
LocaleUpdateTest::testUpdateImportSourceLocal in core/modules/locale/tests/src/Functional/LocaleUpdateTest.php
Tests translation import from local sources.

File

core/modules/locale/locale.module, line 92

Code

const LOCALE_TRANSLATION_USE_SOURCE_LOCAL = 'local';

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.