Skip to content

Commit

Permalink
[Translation] forced the catalogue to be regenerated when a resource …
Browse files Browse the repository at this point in the history
…is added (closes symfony/translation#1)
  • Loading branch information
fabpot committed Oct 3, 2012
1 parent 302c0e4 commit a6ae6f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Symfony/Component/Translation/Translator.php
Expand Up @@ -72,6 +72,8 @@ public function addLoader($format, LoaderInterface $loader)
public function addResource($format, $resource, $locale, $domain = 'messages')
{
$this->resources[$locale][] = array($format, $resource, $domain);

unset($this->catalogues[$locale]);
}

/**
Expand Down

0 comments on commit a6ae6f6

Please sign in to comment.