Opponent prep: periods of 3 and 6 months, not 5 years

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
vrubelroman 2026-10-31 20:28:35 +03:00
parent 57fa98241b
commit 570bd84dcf
3 changed files with 26 additions and 13 deletions

View file

@ -370,11 +370,12 @@ pub struct PrepStart {
// ----- the period ------------------------------------------------------------------
/// The periods offered, in the menu's order.
const PERIODS: [Period; 7] = [
const PERIODS: [Period; 8] = [
Period::All,
Period::Months(3),
Period::Months(6),
Period::Months(12),
Period::Months(24),
Period::Months(60),
Period::Last(50),
Period::Last(100),
Period::Last(200),
@ -385,7 +386,8 @@ fn period_label(p: Period) -> String {
Period::All => tr("All games").to_owned(),
Period::Months(12) => tr("Last year").to_owned(),
Period::Months(24) => tr("Last 2 years").to_owned(),
Period::Months(60) => tr("Last 5 years").to_owned(),
Period::Months(3) => tr("Last 3 months").to_owned(),
Period::Months(6) => tr("Last 6 months").to_owned(),
Period::Months(m) => trf("Last {n} months", &[("n", &m)]),
Period::Last(n) => trf("Last {n} games", &[("n", &n)]),
}