mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
update plurify version
This commit is contained in:
parent
f3e7ed60ee
commit
2d13f3ff8a
3 changed files with 6 additions and 3 deletions
|
|
@ -29,8 +29,9 @@ impl Result {
|
|||
// Actions
|
||||
|
||||
pub fn update(&self, current: Option<usize>, total: usize) {
|
||||
use plurify::*;
|
||||
if total > 0 {
|
||||
let matches = plurify::ns(total, &["match", "matches", "matches"]);
|
||||
let matches = total.plurify(&["match", "matches", "matches"]);
|
||||
match current {
|
||||
Some(position) => self
|
||||
.label
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue