Permalink
Browse files

[Translation] forced the catalogue to be regenerated when a resource …

…is added (closes symfony/translation#1)
  • Loading branch information...
1 parent 178b3eb commit b117c96f6b7c81477d646a8919e7d38bae93837e @fabpot fabpot committed Oct 3, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 Translator.php
View
@@ -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]);
}
/**

0 comments on commit b117c96

Please sign in to comment.