diff options
Diffstat (limited to 'android')
| -rw-r--r-- | android/translations-converter/src/gettext/messages.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/android/translations-converter/src/gettext/messages.rs b/android/translations-converter/src/gettext/messages.rs index 65664c65f5..de6c18e11a 100644 --- a/android/translations-converter/src/gettext/messages.rs +++ b/android/translations-converter/src/gettext/messages.rs @@ -180,6 +180,16 @@ impl Messages { self.entries.push(entry); } + + /// Add a plural entry. + pub fn add_plural(&mut self, id: MsgString, plural_id: MsgString, values: Vec<MsgString>) { + let entry = MsgEntry { + id, + value: MsgValue::Plural { plural_id, values }, + }; + + self.entries.push(entry); + } } impl IntoIterator for Messages { |
