public function saveTranslations(Locale $locale, array $postedTranslations)
    {
        $editedTranslations = $this->postedValuesToTranslation($locale, $postedTranslations);
        $editedTranslations->toPoFile($locale->getPoFilePath(WP_ENV));

        return $this->generateTranslationFiles($locale);
    }
public function saveTranslations(Locale $locale, array $postedTranslations)
    {
        $editedTranslations = $this->postedValuesToTranslation($locale, $postedTranslations);
        $editedTranslations->toPoFile($locale->getPoFilePath(WP_ENV));

        return $this->generateTranslationFiles($locale);
    }
public function saveTranslations ( Locale $ locale , array $ postedTranslations ) { $ editedTranslations = $ this -> postedValuesToTranslation ( $ locale , $ postedTranslations ) ; $ editedTranslations -> toPoFile ( $ locale -> getPoFilePath ( WP_ENV ) ) ; return $ this -> generateTranslationFiles ( $ locale ) ; }
Saves the translations to .po and .mo files.
@param  Locale $locale The locale of the translations
@param  array  $postedTranslations A list of translations
@return null
Saves the translations to . po and . mo files .