Browse Source

Merge pull request #1321 from carsten-ulrich-tyre24/master

bugfix: name of a field was added to the translation-catalogue when you used a translated label
Thomas 11 years ago
parent
commit
1a7c4de432
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Translator/Extractor/JMSTranslatorBundle/AdminExtractor.php

+ 2 - 0
Translator/Extractor/JMSTranslatorBundle/AdminExtractor.php

@@ -153,6 +153,7 @@ class AdminExtractor implements ExtractorInterface, TranslatorInterface, Securit
     public function trans($id, array $parameters = array(), $domain = null, $locale = null)
     {
         $this->addMessage($id, $domain);
+        return $id;
     }
 
     /**
@@ -161,6 +162,7 @@ class AdminExtractor implements ExtractorInterface, TranslatorInterface, Securit
     public function transChoice($id, $number, array $parameters = array(), $domain = null, $locale = null)
     {
         $this->addMessage($id, $domain);
+        return $id;
     }
 
     /**