Documentation

CRM_Core_I18n_NativeGettext
in package

Tags
copyright

CiviCRM LLC https://civicrm.org/licensing Convenience class for PHP-Gettext compatibility.

Table of Contents

Methods

ngettext()  : string
pgettext()  : string
Based on php-gettext, since native gettext does not support this as is.
translate()  : string

Methods

ngettext()

public ngettext(string $text, string $plural, int $count) : string
Parameters
$text : string
$plural : string
$count : int
Return values
string

pgettext()

Based on php-gettext, since native gettext does not support this as is.

public pgettext(string $context, string $text) : string
Parameters
$context : string
$text : string
Return values
string

translate()

public translate(string $string) : string
Parameters
$string : string
Return values
string

        
On this page

Search results