public function setHeaders($file, $locale)
{
// Replace headers in file
$contents = $this->app['files']->get($file);
$contents = strtr($contents, array('charset=CHARSET' => 'charset=' . $this->app['polyglot.translator']->getEncoding(), 'Language: ' => 'Language: ' . $this->app['polyglot.translator']->shortToLongLocale($locale), 'Language-Team: LANGUAGE <[email protected]>' => 'Language-Team: Madewithlove <[email protected]>'));
// Save content
$this->app['files']->put($file, $contents);
}