pgettext
Translates a message with the specified context.
info
Shorthand for L10n.pgettext
.
Signature
pgettext(context: string, message: string, ...arguments: string[]): string
Parameters
Name | Type | Optional | Description |
---|---|---|---|
context | string | No | Specifies the translation context. |
message | string | No | Specifies the message to translate. |
arguments | string[] | Yes | Optional string arguments which can be referenced in the message using the percent sign followed by the argument index %n . The first argument is referenced with %1 . |
Return value
Returns the translated message.