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