From fd90de5424e3ebdb4d1f35443f14cf0c7a0e105f Mon Sep 17 00:00:00 2001 From: le king fu Date: Sun, 4 Oct 2026 18:02:07 -0400 Subject: [PATCH] docs(license): align the English tip and the price test notes with #367 The English in-app tip now says, as the French one does, that the revoked license is that of a refunded key left next to the current key, not the key itself. The header of the price tests says that the tests of the stored token call fetch_price_in with a temporary data directory, instead of claiming that every test bypasses the token file. Resolves #367 Co-Authored-By: Claude Opus 5.5 --- src-tauri/src/commands/balance_commands.rs | 3 ++- src/i18n/locales/en.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/commands/balance_commands.rs b/src-tauri/src/commands/balance_commands.rs index 3a962cc..5a75140 100644 --- a/src-tauri/src/commands/balance_commands.rs +++ b/src-tauri/src/commands/balance_commands.rs @@ -401,7 +401,8 @@ fn read_cash_flows( // Each test calls `fetch_price_inner` directly, passing the mock server URL // as `api_base`. This avoids env-var races between concurrent test threads // (all tokio tests share the same process) and bypasses the file-system -// activation token loading. +// activation token loading. The tests of the stored token (#367) call +// `fetch_price_in` instead, with a temporary data directory. #[cfg(test)] mod tests { use super::*; diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index 7d629e2..e5180da 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -1256,7 +1256,7 @@ "The license key applies to the whole machine, not to one profile: it unlocks the modules for every profile on this computer", "On the Free edition automatic updates are locked: the Updates card (Settings → System) offers to download the latest version from the product page, and a manual install stays free", "The License card (Settings → Users) shows your edition and when the key expires; a key valid for more than 50 years shows \"No expiry date\"", - "Activating a machine binds it to your key on the license server; it only serves the market prices of the Balance (Premium), and your edition never depends on it. After a reinstall, a new computer, a different key or an expired activation, the card shows \"Not activated\": click \"Activate\". The app also removes an activation that no longer serves, and the card then shows \"Not activated\": when a price fetch is refused because this machine's activation belongs to a revoked license (a refunded key left next to your current key by an earlier version, for example), and when the machine list does not count this machine (deactivated from another computer, for example). Each such removal is written to the logs (Settings → System)", + "Activating a machine binds it to your key on the license server; it only serves the market prices of the Balance (Premium), and your edition never depends on it. After a reinstall, a new computer, a different key or an expired activation, the card shows \"Not activated\": click \"Activate\". The app also removes an activation that no longer serves, and the card then shows \"Not activated\": when a price fetch is refused because this machine's activation belongs to a revoked license (that of a refunded key, left next to your current key by an earlier version, for example), and when the machine list does not count this machine (deactivated from another computer, for example). Each such removal is written to the logs (Settings → System)", "Activation sends the license server your key, this computer's name and a derived identifier, specific to Simpl'Résultat, in place of the system's machine identifier", "The machine list shows how many machines are activated out of the number your key allows; deactivate one to free a slot", "If the license server reports that your key was revoked, for instance after a refund, the app goes back to the Free edition and stays there from one session to the next: the License card, the locked screens and the Updates card say so. Your data is kept, and another valid key gives its edition back",