It's 3.30.2 release day, upload a tarball and fix that hidden pesky bug that you missed in .1 🦛

Commit 1267234a authored by Eisha Chen-yen-su's avatar Eisha Chen-yen-su Committed by Daniel Garcia Moreno

member.rs: Add pluralization

Closes World/fractal#241
parent e3dfa34b
......@@ -2,7 +2,7 @@ extern crate gtk;
extern crate gettextrs;
use self::gtk::prelude::*;
use self::gettextrs::gettext;
use self::gettextrs::{gettext, ngettext};
use std::collections::HashMap;
......@@ -84,7 +84,8 @@ impl AppOp {
}
if members.len() > self.member_limit {
let sentence_template = gettext("and {member_count} more");
let sentence_template = ngettext("and one more", "and {member_count} more",
(members.len() - self.member_limit) as u32);
let newlabel = sentence_template.replace("{member_count}",
&(members.len() - self.member_limit).to_string());
self.more_members_btn.set_label(&newlabel);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment