You are here

constant LOCALE_TRANSLATION_USE_SOURCE_LOCAL in Drupal 8

Same name and namespace 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

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
Enables the translation of the user interface to languages other than English.

Code

const LOCALE_TRANSLATION_USE_SOURCE_LOCAL = 'local';