Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…is added (closes symfony/Translation#1)
  • Loading branch information...
commit b117c96f6b7c81477d646a8919e7d38bae93837e 1 parent 178b3eb
@fabpot fabpot authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  Translator.php
View
2  Translator.php
@@ -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]);
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.