Gettext.PO.PluralTranslation
A struct that holds information on a plural translation.
This struct describes a translation which has a plural form, such as the one
in the following snippet of .po file:
msgid "There was an error"
msgid_plural "There were %{count} errors"
msgstr[0] "C'è stato un errore"
msgstr[1] "Ci sono stati %{count} errori"
This struct contains three fields:
msgid- the id of the singular translation.msgid_plural- the id of the pluralized translation.msgstr- a map which maps plural forms as keys to translated strings as values. The plural forms mentioned here are the ones described inGettext.Plural.comments- a list of comments as they are found in the PO file (e.g.,["# foo"]).references- a list of references (files this translation comes from) in the form{file, line}.po_source_line- the line this translation is on in the PO file where it comes from.
Types
t :: %Gettext.PO.PluralTranslation{msgid: [binary], msgid_plural: [binary], msgstr: %{non_neg_integer => [binary]}, comments: [binary], references: [{binary, pos_integer}], po_source_line: pos_integer}