[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/js/dist/ -> i18n.js (summary)

(no description)

File Size: 1445 lines (52 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 18 functions

  __webpack_require__()
  getDefault()
  getModuleExports()
  setLocaleData()
  getI18n()
  __()
  _x()
  _n()
  _nx()
  sprintf()
  getPluralFormFunc()
  Chain()
  get_type()
  str_repeat()
  imply()
  popStack()
  lex()
  memoized()

Functions
Functions that are not part of a class:

__webpack_require__(moduleId)   X-Ref
No description

getDefault()   X-Ref
No description

getModuleExports()   X-Ref
No description

setLocaleData()   X-Ref
Merges locale data into the Jed instance by domain. Creates a new Jed
instance if one has not yet been assigned.

param: {?Object} localeData Locale data configuration.
param: {?string} domain     Domain for which configuration applies.

getI18n()   X-Ref
Returns the current Jed instance, initializing with a default configuration
if not already assigned.

return: {Jed} Jed instance.

__(text, domain)   X-Ref
Retrieve the translation of text.

return: {string} Translated text.
param: {string}  text   Text to translate.
param: {?string} domain Domain to retrieve the translated text.

_x(text, context, domain)   X-Ref
Retrieve translated string with gettext context.

return: {string} Translated context string without pipe.
param: {string}  text    Text to translate.
param: {string}  context Context information for the translators.
param: {?string} domain  Domain to retrieve the translated text.

_n(single, plural, number, domain)   X-Ref
Translates and retrieves the singular or plural form based on the supplied
number.

return: {string} The translated singular or plural form.
param: {string}  single The text to be used if the number is singular.
param: {string}  plural The text to be used if the number is plural.
param: {number}  number The number to compare against to use either the
param: {?string} domain Domain to retrieve the translated text.

_nx(single, plural, number, context, domain)   X-Ref
Translates and retrieves the singular or plural form based on the supplied
number, with gettext context.

return: {string} The translated singular or plural form.
param: {string}  single  The text to be used if the number is singular.
param: {string}  plural  The text to be used if the number is plural.
param: {number}  number  The number to compare against to use either the
param: {string}  context Context information for the translators.
param: {?string} domain  Domain to retrieve the translated text.

sprintf(format)   X-Ref
Returns a formatted string. If an error occurs in applying the format, the
original format string is returned.

return: {string} The formatted string.
param: {string}   format  The format of the string to generate.
param: {string[]} ...args Arguments to apply to the format.

getPluralFormFunc( plural_form_string )   X-Ref


Chain( key, i18n )   X-Ref
No description

get_type(variable)   X-Ref
Redistributions of source code must retain the above copyright
Redistributions in binary form must reproduce the above copyright
Neither the name of sprintf() for JavaScript nor the


str_repeat(input, multiplier)   X-Ref
No description

imply( val )   X-Ref
No description

popStack(n)   X-Ref
No description

lex()   X-Ref
No description

memoized( )   X-Ref
No description



Generated: Mon Jan 7 01:00:05 2019 Cross-referenced by PHPXref 0.7.1