original_string: protected function _addTranslation($domain, $msgid, $details = [])
      {
          $context = isset($details['msgctxt']) ? $details['msgctxt'] : '';
  
          if (empty($this->_translations[$domain][$msgid][$context])) {
              $this->_translations[$domain][$msgid][$context] = [
                  'msgid_plural' => false
              ];
          }
  
          if (isset($details['msgid_plural'])) {
              $this->_translations[$domain][$msgid][$context]['msgid_plural'] = $details['msgid_plural'];
          }
  
          if (isset($details['file'])) {
              $line = isset($details['line']) ? $details['line'] : 0;
              $this->_translations[$domain][$msgid][$context]['references'][$details['file']][] = $line;
          }
      }
code: protected function _addTranslation($domain, $msgid, $details = [])
      {
          $context = isset($details['msgctxt']) ? $details['msgctxt'] : '';
  
          if (empty($this->_translations[$domain][$msgid][$context])) {
              $this->_translations[$domain][$msgid][$context] = [
                  'msgid_plural' => false
              ];
          }
  
          if (isset($details['msgid_plural'])) {
              $this->_translations[$domain][$msgid][$context]['msgid_plural'] = $details['msgid_plural'];
          }
  
          if (isset($details['file'])) {
              $line = isset($details['line']) ? $details['line'] : 0;
              $this->_translations[$domain][$msgid][$context]['references'][$details['file']][] = $line;
          }
      }
code_tokens: protected function _addTranslation ( $ domain , $ msgid , $ details = [ ] ) { $ context = isset ( $ details [ 'msgctxt' ] ) ? $ details [ 'msgctxt' ] : '' ; if ( empty ( $ this -> _translations [ $ domain ] [ $ msgid ] [ $ context ] ) ) { $ this -> _translations [ $ domain ] [ $ msgid ] [ $ context ] = [ 'msgid_plural' => false ] ; } if ( isset ( $ details [ 'msgid_plural' ] ) ) { $ this -> _translations [ $ domain ] [ $ msgid ] [ $ context ] [ 'msgid_plural' ] = $ details [ 'msgid_plural' ] ; } if ( isset ( $ details [ 'file' ] ) ) { $ line = isset ( $ details [ 'line' ] ) ? $ details [ 'line' ] : 0 ; $ this -> _translations [ $ domain ] [ $ msgid ] [ $ context ] [ 'references' ] [ $ details [ 'file' ] ] [ ] = $ line ; } }
docstring: Add a translation to the internal translations property
  
  Takes care of duplicate translations
  
  @param string $domain The domain
  @param string $msgid The message string
  @param array $details Context and plural form if any, file and line references
  @return void
docstring_tokens: Add a translation to the internal translations property