I want to write a widget, that allows admins to edit translations on a site, when they click on the "edit" button near some the text. I know how to get translations and have this code in my controller:
$translator = $this->get('translator');
$catalogue = new MessageCatalogue();
$catalogue->set('message', 'updated translation message', 'messages');
$translator->getCatalogue()->addCatalogue($catalogue);
I want to save this updated translation, but can't find a simple way to do this. Translations files stored in php array format. I can't use JmsTranslationBundle.