original_string: protected function mergeTranslation($merge_file, $langcode = null)
      {
          $common_file = $this->getCommonFile($langcode);
          $merge_translations = $this->loadTranslation($merge_file);
          $common_translations = $this->loadTranslation($common_file);
  
          if (!empty($merge_translations)) {
              foreach ($merge_translations as $source => $translation) {
                  if (!isset($common_translations[$source])) {
                      array_unshift($translation, $source);
                      gplcart_file_csv($common_file, $translation);
                  }
              }
          }
      }
code: protected function mergeTranslation($merge_file, $langcode = null)
      {
          $common_file = $this->getCommonFile($langcode);
          $merge_translations = $this->loadTranslation($merge_file);
          $common_translations = $this->loadTranslation($common_file);
  
          if (!empty($merge_translations)) {
              foreach ($merge_translations as $source => $translation) {
                  if (!isset($common_translations[$source])) {
                      array_unshift($translation, $source);
                      gplcart_file_csv($common_file, $translation);
                  }
              }
          }
      }
code_tokens: protected function mergeTranslation ( $ merge_file , $ langcode = null ) { $ common_file = $ this -> getCommonFile ( $ langcode ) ; $ merge_translations = $ this -> loadTranslation ( $ merge_file ) ; $ common_translations = $ this -> loadTranslation ( $ common_file ) ; if ( ! empty ( $ merge_translations ) ) { foreach ( $ merge_translations as $ source => $ translation ) { if ( ! isset ( $ common_translations [ $ source ] ) ) { array_unshift ( $ translation , $ source ) ; gplcart_file_csv ( $ common_file , $ translation ) ; } } } }
docstring: Merge two translations
  @param string $merge_file
  @param string|null $langcode
docstring_tokens: Merge two translations