pub struct PoItem {
pub msgid: String,
pub msgctxt: Option<String>,
pub references: PoVec<String>,
pub msgid_plural: Option<String>,
pub msgstr: MsgStr,
pub comments: PoVec<String>,
pub extracted_comments: PoVec<String>,
pub flags: PoVec<String>,
pub metadata: PoVec<(String, String)>,
pub obsolete: bool,
pub nplurals: usize,
}Expand description
A single gettext message entry.
Fields§
§msgid: StringSource message identifier.
msgctxt: Option<String>Optional gettext message context.
references: PoVec<String>Source references such as src/app.rs:10.
msgid_plural: Option<String>Optional plural source identifier.
msgstr: MsgStrTranslation payload for the message.
comments: PoVec<String>Translator comments attached to the item.
extracted_comments: PoVec<String>Extracted comments attached to the item.
flags: PoVec<String>Raw gettext flags such as fuzzy.
The low-level PO parser and serializer preserve this field for faithful
PO round trips. Since Ferrocat 2.0, the high-level catalog layer drops
gettext flags, including fuzzy, when parsing or writing catalog data;
fuzzy/discard decisions are modeled by catalog-layer behavior instead
of being carried through this raw PO field.
metadata: PoVec<(String, String)>Raw metadata lines that do not fit the dedicated fields.
obsolete: boolWhether the item is marked obsolete.
nplurals: usizeNumber of plural slots expected when the item is serialized.