saveTranslationOverride example

// Merge in the Locale managed translations with existing data.             $data = NestedArray::mergeDeepArray([$data$processed], TRUE);
          }
          if (empty($data) && !$override->isNew()) {
            // The configuration override contains Locale overrides that no             // longer exist.             $this->deleteTranslationOverride($name$langcode);
            $count++;
          }
          elseif (!empty($data)) {
            // Update translation data in configuration override.             $this->saveTranslationOverride($name$langcode$data);
            $count++;
          }
        }
        elseif (locale_is_translatable($langcode)) {
          // If the language code is the active storage language, we should           // update. If it is English, we should only update if English is also           // translatable.           $active = NestedArray::mergeDeepArray([$active$processed], TRUE);
          $this->saveTranslationActive($name$active);
          $count++;
        }
      }
Home | Imprint | This part of the site doesn't use cookies.