public function hardTranslationSetMerge(Locale $locale, $from, $into)
    {
        foreach ($from as $translation) {
            $translationString = $translation->getTranslation();
            $original = $translation->getOriginal();
            $context = $translation->getContext();
            $merged = $this->addOrCreateString($into, $context, $original);
            $merged->setTranslation($translationString);

            // The following raises an array to string warning
            // $merged->setPluralTranslation($translation->getPluralTranslation());
        }
    }
public function hardTranslationSetMerge(Locale $locale, $from, $into)
    {
        foreach ($from as $translation) {
            $translationString = $translation->getTranslation();
            $original = $translation->getOriginal();
            $context = $translation->getContext();
            $merged = $this->addOrCreateString($into, $context, $original);
            $merged->setTranslation($translationString);

            // The following raises an array to string warning
            // $merged->setPluralTranslation($translation->getPluralTranslation());
        }
    }
public function hardTranslationSetMerge ( Locale $ locale , $ from , $ into ) { foreach ( $ from as $ translation ) { $ translationString = $ translation -> getTranslation ( ) ; $ original = $ translation -> getOriginal ( ) ; $ context = $ translation -> getContext ( ) ; $ merged = $ this -> addOrCreateString ( $ into , $ context , $ original ) ; $ merged -> setTranslation ( $ translationString ) ; // The following raises an array to string warning // $merged->setPluralTranslation($translation->getPluralTranslation()); } }
This function also includes empty strings in the process.
@param  Locale $locale [description]
@param  [type] $from   [description]
@param  [type] $into   [description]
@return [type]         [description]
This function also includes empty strings in the process .