private function getTranslationData(MutableBag $tr)
    {
        $translation = new TranslationFile($this->app, $tr->get('domain'), $tr->get('locale'));

        list($tr['path'], $tr['shortPath']) = $translation->path();
        $tr->set('writeallowed', $translation->isWriteAllowed());

        $this->app['logger.system']->info('Editing translation: ' . $tr->get('shortPath'), ['event' => 'translation']);

        return ['contents' => $translation->content()];
    }
private function getTranslationData(MutableBag $tr)
    {
        $translation = new TranslationFile($this->app, $tr->get('domain'), $tr->get('locale'));

        list($tr['path'], $tr['shortPath']) = $translation->path();
        $tr->set('writeallowed', $translation->isWriteAllowed());

        $this->app['logger.system']->info('Editing translation: ' . $tr->get('shortPath'), ['event' => 'translation']);

        return ['contents' => $translation->content()];
    }
private function getTranslationData ( MutableBag $ tr ) { $ translation = new TranslationFile ( $ this -> app , $ tr -> get ( 'domain' ) , $ tr -> get ( 'locale' ) ) ; list ( $ tr [ 'path' ] , $ tr [ 'shortPath' ] ) = $ translation -> path ( ) ; $ tr -> set ( 'writeallowed' , $ translation -> isWriteAllowed ( ) ) ; $ this -> app [ 'logger.system' ] -> info ( 'Editing translation: ' . $ tr -> get ( 'shortPath' ) , [ 'event' => 'translation' ] ) ; return [ 'contents' => $ translation -> content ( ) ] ; }
Get the translation data.

@param MutableBag $tr

@return array
Get the translation data .