diff --git a/apps/desktop/src/i18n.rs b/apps/desktop/src/i18n.rs index b6909c7..6ab26b1 100644 --- a/apps/desktop/src/i18n.rs +++ b/apps/desktop/src/i18n.rs @@ -7903,6 +7903,17 @@ const ROWS: &[[&str; 9]] = &[ "PGNdagi baholar ([%eval])", "PGN-дағы бағалар ([%eval])", ], + [ + "Analyse again", + "Обновить", + "Mettre à jour", + "Aktualisieren", + "Actualizar", + "Aggiorna", + "Atualizar", + "Yangilash", + "Жаңарту", + ], [ "Update", "Дополнить", diff --git a/apps/desktop/src/review.rs b/apps/desktop/src/review.rs index 31ae220..910f489 100644 --- a/apps/desktop/src/review.rs +++ b/apps/desktop/src/review.rs @@ -540,7 +540,9 @@ impl Review { ui.label(RichText::new(text).color(ui.visuals().warn_fg_color)); let can_update = self.analysis.meta.as_ref().is_some_and(|m| m.nodes > 0); if can_update { - let mut button = ui.button(tr("Update")); + // Stale: everything again («Обновить»); otherwise the gaps («Дополнить»). + let mut button = + ui.button(if stale { tr("Analyse again") } else { tr("Update") }); if stale { button = button.on_hover_text(tr( "Every position is analysed again, the same way on every computer", diff --git a/crates/game-review/src/lib.rs b/crates/game-review/src/lib.rs index bf9a982..db0090e 100644 --- a/crates/game-review/src/lib.rs +++ b/crates/game-review/src/lib.rs @@ -231,7 +231,10 @@ impl GameAnalysis { /// so does an analysis of another search ([`Self::stale`]), so that one report never /// mixes two. Returns the positions without an evaluation, for [`run`]. pub fn begin(&mut self, game: &Game, full: bool) -> Vec { - if full || self.stale() { + // Evaluations read from the PGN are no engine analysis to fill in: the engine + // analyses the whole game (else they would pass for the fixed search). + let from_pgn = self.meta.as_ref().is_some_and(|m| m.nodes == 0); + if full || from_pgn || self.stale() { self.evals.clear(); } let engine = self