locale_translation_status_delete_languages

locale_translation_status_delete_languages($langcodes) Delete language entries from the status cache. Parameters array $langcodes: Language code(s) to be deleted from the cache. File core/modules/locale/locale.module, line 973 Enables the translation of the user interface to languages other than English. Code function locale_translation_status_delete_languages($langcodes) { if ($status = locale_translation_get_status()) { foreach ($status as $project => $languages) { foreach (

LOCALE_TRANSLATION_SOURCE_COMPARE_LT

Comparison result of source files timestamps. Timestamp of source 1 is less than the timestamp of source 2. See also _locale_translation_source_compare() File core/modules/locale/locale.translation.inc, line 15 Common API for interface translation. Code const LOCALE_TRANSLATION_SOURCE_COMPARE_LT = -1;

LOCALE_TRANSLATION_SOURCE_COMPARE_GT

Comparison result of source files timestamps. Timestamp of source 1 is greater than the timestamp of source 2. See also _locale_translation_source_compare() File core/modules/locale/locale.translation.inc, line 33 Common API for interface translation. Code const LOCALE_TRANSLATION_SOURCE_COMPARE_GT = 1;

LOCALE_TRANSLATION_SOURCE_COMPARE_EQ

Comparison result of source files timestamps. Timestamp of source 1 is equal to the timestamp of source 2. See also _locale_translation_source_compare() File core/modules/locale/locale.translation.inc, line 24 Common API for interface translation. Code const LOCALE_TRANSLATION_SOURCE_COMPARE_EQ = 0;

locale_translation_source_check_file

locale_translation_source_check_file($source) Checks whether a po file exists in the local filesystem. It will search in the directory set in the translation source. Which defaults to the "translations://" stream wrapper path. The directory may contain any valid stream wrapper. The "local" files property of the source object contains the definition of a po file we are looking for. The file name defaults to %project-%version.%language.po. Per project this value can be overridden using the server

locale_translation_source_build

locale_translation_source_build($project, $langcode, $filename = NULL) Builds abstract translation source. Parameters object $project: Project object. string $langcode: Language code. string $filename: (optional) File name of translation file. May contain placeholders. Defaults to the default translation filename from the settings. Return value object Source object: "project": Project name. "name": Project name (inherited from project). "language": Language code. "core": Core version (inh

LOCALE_TRANSLATION_REMOTE

Translation source is a remote file. File core/modules/locale/locale.module, line 129 Enables the translation of the user interface to languages other than English. Code const LOCALE_TRANSLATION_REMOTE = 'remote';

locale_translation_project_list

locale_translation_project_list() Fetch an array of projects for translation update. Return value array Array of project data including .info.yml file data. File core/modules/locale/locale.compare.inc, line 97 The API for comparing project translation status with available translation. Code function locale_translation_project_list() { $projects = &drupal_static(__FUNCTION__, array()); if (empty($projects)) { $projects = array(); $additional_whitelist = array( 'interfac

LOCALE_TRANSLATION_OVERWRITE_NON_CUSTOMIZED

UI option for override of existing translations. Only override non-customized translations. File core/modules/locale/locale.module, line 118 Enables the translation of the user interface to languages other than English. Code const LOCALE_TRANSLATION_OVERWRITE_NON_CUSTOMIZED = 'non_customized';

LOCALE_TRANSLATION_OVERWRITE_NONE

UI option for override of existing translations. Don't override existing translations. File core/modules/locale/locale.module, line 124 Enables the translation of the user interface to languages other than English. Code const LOCALE_TRANSLATION_OVERWRITE_NONE = 'none';