formatString example

return $this->formatItem();
  }

  /** * Format the POItem as a string. */
  private function formatItem() {
    $output = '';

    // Format string context.     if (!empty($this->context)) {
      $output .= 'msgctxt ' . $this->formatString($this->context);
    }

    // Format translation.     if ($this->plural) {
      $output .= $this->formatPlural();
    }
    else {
      $output .= $this->formatSingular();
    }

    // Add one empty line to separate the translations.
Home | Imprint | This part of the site doesn't use cookies.