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

@ -15646,15 +15646,26 @@ const ROWS: &[[&str; 9]] = &[
"Соңғы 2 жыл",
],
[
"Last 5 years",
"За 5 лет",
"Les 5 dernières années",
"Letzte 5 Jahre",
"Últimos 5 años",
"Ultimi 5 anni",
"Últimos 5 anos",
"Oxirgi 5 yil",
"Соңғы 5 жыл",
"Last 3 months",
"За 3 месяца",
"Les 3 derniers mois",
"Letzte 3 Monate",
"Últimos 3 meses",
"Ultimi 3 mesi",
"Últimos 3 meses",
"Oxirgi 3 oy",
"Соңғы 3 ай",
],
[
"Last 6 months",
"За полгода",
"Les 6 derniers mois",
"Letzte 6 Monate",
"Últimos 6 meses",
"Ultimi 6 mesi",
"Últimos 6 meses",
"Oxirgi 6 oy",
"Соңғы 6 ай",
],
[
"Last {n} months",

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)]),
}