po_explain_plurals: Explain plural message criteria verbally

View source: R/explain_plurals.R

po_explain_pluralsR Documentation

Explain plural message criteria verbally

Description

The nplural syntax in .po file metadata can be hard to grok, even for native speakers. This function tries to de-mystify this by providing verbal expressions of which numbers apply to which index in the msgstr array.

Usage

po_explain_plurals(language, index)

Arguments

language

A single locale code. See translate_package() for details.

index

Optional. If supplied, a 0-based index to explain for a given language. If not supplied, all plurals for the supplied language are described.


potools documentation built on Nov. 2, 2023, 5:20 p.m.