Skip to content

Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.

Merge #203: feat: edit saved workout entries and recover sync conflicts (Space-Hermes)

Duarte Santos3505be6d42bd
diff --cc frontend/src/components/TabBar.jsx
index 6918ee611,c18a792cc..f29e8013c
--- a/frontend/src/components/TabBar.jsx
+++ b/frontend/src/components/TabBar.jsx
@@@ -45,10 -38,10 +45,10 @@@ export default function TabBar({ onStar
were on — the marker is kept in S.active.cur and never moves on its own (#21). */}
<button className={'start' + (S.active ? ' rec' : '') + (S.active && cur === 'workout' ? ' on' : '')} onClick={startWorkout}>
<span className="cir"><Icon name={S.active ? (cur === 'workout' ? 'dumbbell' : 'play') : 'dumbbell'} /></span>
- <span>{S.active ? (cur === 'workout' ? t('Workout') : t('Resume')) : t('Start')}</span>
+ <span>{S.active ? (cur === 'workout' ? t('Workout') : S.active.editingWorkoutId ? t('Edit workout') : t('Resume')) : t('Start')}</span>
</button>
- <Tab k="stats" icon="chart" to="/stats" label={t('Stats')} />
- <Tab k="library" icon="list" to="/library" label={t('Exercises')} />
+ <Tab active={on('stats')} icon="chart" label={t('Stats')} onClick={() => nav('/stats')} />
+ <Tab active={on('library')} icon="list" label={t('Exercises')} onClick={() => nav('/library')} />
</nav>
)
}
diff --cc frontend/src/lib/sync-merge.js
index 1e4b1704f,77e7f9305..17238ccb8
--- a/frontend/src/lib/sync-merge.js
+++ b/frontend/src/lib/sync-merge.js
@@@ -8,15 -10,14 +10,16 @@@ import { bestWeightForEntry } from './h
*
* Rules, by field:
* - scalars and settings, `week`, `dayPlan`, `wc`, `reminder`, …: from the copy with the newer `_ts`
- * - workouts, routines, customEx, equipProfiles, gymCards: union by id, the newer copy's version
- * of an id that both have; workouts sorted by day and start like every other writer
+ * - workouts, customEx, equipProfiles, gymCards: union by id, the newer copy's version of an
+ * id that both have; workouts sorted by day and start like every other writer
+ * - routines: union by id in the newer copy's order; of an id that both have, the version
+ * edited last by its own `_ts` (stampRoutines), the newer copy's on a tie
* - bodyweight: union by day, the later-edited (`t`) entry of a day that both have
* - favEx: ordered set union, the newer copy first
- * - exWeights: union by exercise, the better `w` for that exercise — larger for an ordinary
- * lift, smaller on an assistance machine (a PR logged on the other device must not be
- * forgotten, whichever way it runs); exNotes, barWeights: key union
+ * - exWeights: union by exercise, normally the larger `w`; when the winning side changed an
+ * existing workout, affected exercises are rebuilt from that side and the merged history so
+ * a deliberate history correction can lower a stale cached best. Assistance machines use
+ * their smaller-is-better ordering; exNotes and barWeights remain key unions.
* - `_ts`: the later of the two; `_rev` dropped (the server sets it); `active` left to the caller
*
* Known limit: with no record of what each side deleted, an entry removed on one device inside
@@@ -90,20 -111,9 +113,20 @@@ export function mergeStates(a, b, { pre
for (const f of ['routines', 'customEx', 'equipProfiles', 'gymCards']) {
if (list(n[f]).length || list(o[f]).length) out[f] = unionById(n[f], o[f]).map(clone)
}
+ // A routine edited on both sides keeps the version edited last. Taking the newer copy's
+ // version dropped a plan edit made on one device whenever the other had since logged a set or
+ // flipped a setting — its whole copy was newer, its version of that routine was not. `prefer`
+ // (sign-in) keeps the preferred side's plan as it is.
+ if (!prefer && out.routines) {
+ const other = new Map(list(o.routines).filter(r => r?.id != null).map(r => [r.id, r]))
+ out.routines = out.routines.map(r => {
+ const alt = r?.id != null && other.get(r.id)
+ return alt && (alt._ts || 0) > (r._ts || 0) ? clone(alt) : r
+ })
+ }
out.bodyweight = mergeBodyweight(n.bodyweight, o.bodyweight).map(clone)
if (list(n.favEx).length || list(o.favEx).length) out.favEx = [...new Set([...list(n.favEx), ...list(o.favEx)])]
- out.exWeights = clone(mergeExWeights(n.exWeights, o.exWeights))
+ out.exWeights = clone(mergeExWeights(n.exWeights, o.exWeights, out.workouts, corrected))
for (const f of ['exNotes', 'barWeights']) {
if (n[f] || o[f]) out[f] = clone({ ...(o[f] || {}), ...(n[f] || {}) })
}
diff --cc frontend/src/locales/de.js
index 5706fbb82,1f210d3ba..d515d3d1a
--- a/frontend/src/locales/de.js
+++ b/frontend/src/locales/de.js
@@@ -1276,61 -1270,15 +1276,72 @@@ export default
'already added': 'schon drin',
'no exercises': 'keine Übungen',
'Pick equipment': 'Gerät wählen',
+ // --- connection indicator, Server & sync, changes not on the server yet ---
+ 'All synced': 'Alles synchronisiert',
+ 'Waiting to sync': 'Wartet auf Synchronisierung',
+ 'Offline — the server cannot be reached': 'Offline — der Server ist nicht erreichbar',
+ 'Not an openGym answer (HTTP {0})': 'Keine openGym-Antwort (HTTP {0})',
+ 'Your server’s address answered with something other than openGym (HTTP {0}). Your changes are kept here.': 'Die Adresse deines Servers hat mit etwas anderem als openGym geantwortet (HTTP {0}). Deine Änderungen bleiben hier.',
+ 'Server error (HTTP {0})': 'Serverfehler (HTTP {0})',
+ 'Your server answered with an error (HTTP {0}). Your changes are kept here.': 'Dein Server hat mit einem Fehler geantwortet (HTTP {0}). Deine Änderungen bleiben hier.',
+ 'The server refuses this browser': 'Der Server lehnt diesen Browser ab',
+ 'Your server no longer accepts this browser. Your changes are kept here.': 'Dein Server akzeptiert diesen Browser nicht mehr. Deine Änderungen bleiben hier.',
+ 'This phone is no longer paired with your server. Your changes are kept here.': 'Dieses Handy ist nicht mehr mit deinem Server gekoppelt. Deine Änderungen bleiben hier.',
+ 'The server refuses this phone': 'Der Server lehnt dieses Handy ab',
+ 'Your server no longer accepts this phone. Your changes are kept here.': 'Dein Server akzeptiert dieses Handy nicht mehr. Deine Änderungen bleiben hier.',
+ 'On this phone only — not connected to a server': 'Nur auf diesem Handy — mit keinem Server verbunden',
+ 'Pair again': 'Neu koppeln',
+ 'Sign in': 'Anmelden',
+ 'Disconnect anyway': 'Trotzdem trennen',
+ 'Sign out anyway': 'Trotzdem abmelden',
+ 'Could not keep a copy of the changes on this device — nothing was removed.': 'Die Änderungen konnten nicht auf diesem Gerät aufbewahrt werden — es wurde nichts entfernt.',
+ 'Not everything is on your server yet': 'Noch ist nicht alles auf deinem Server',
+ 'Not on your server yet: {0}': 'Noch nicht auf deinem Server: {0}',
+ 'Some changes on this device have not reached your server.': 'Einige Änderungen auf diesem Gerät haben deinen Server noch nicht erreicht.',
+ 'Try again, or export a backup first. Going ahead anyway keeps a copy of these changes on this device until it connects to this server as this account again — then they are added back.': 'Versuch es noch einmal oder exportiere zuerst ein Backup. Machst du trotzdem weiter, bleibt eine Kopie dieser Änderungen auf diesem Gerät, bis es sich wieder mit diesem Konto mit diesem Server verbindet — dann werden sie wieder hinzugefügt.',
+ 'Syncing…': 'Wird synchronisiert…',
+ 'Try again': 'Erneut versuchen',
+ 'Last synced: {0}': 'Zuletzt synchronisiert: {0}',
+ 'Not synced with this server yet': 'Noch nicht mit diesem Server synchronisiert',
+ 'Server & sync': 'Server & Sync',
+ 'Signed in as {0}': 'Angemeldet als {0}',
+ 'Sync now': 'Jetzt synchronisieren',
+ 'Your changes are kept here, and merged into your account once it is paired again.': 'Deine Änderungen bleiben hier und werden in dein Konto übernommen, sobald das Handy neu gekoppelt ist.',
+ 'Your changes are kept here, and merged into your account once you are signed in again.': 'Deine Änderungen bleiben hier und werden in dein Konto übernommen, sobald du wieder angemeldet bist.',
+ 'Changes kept for {0}': 'Aufbewahrte Änderungen für {0}',
+ 'Added back when this device connects as that account again.': 'Werden wieder hinzugefügt, wenn sich dieses Gerät wieder mit diesem Konto verbindet.',
+ 'The changes your server has not seen are kept on this device, and added back when it connects as this account again.': 'Die Änderungen, die dein Server noch nicht hat, bleiben auf diesem Gerät und werden wieder hinzugefügt, wenn es sich wieder mit diesem Konto verbindet.',
+ 'This phone switches back to local-only and its copy of your account is removed. First it checks that your server has every change — if not, you choose what happens to them.': 'Dieses Handy wechselt zurück in den lokalen Modus, und die Kopie deines Kontos wird davon entfernt. Vorher wird geprüft, ob dein Server jede Änderung hat — falls nicht, entscheidest du, was mit ihnen passiert.',
+ 'Your data is removed from this browser; your profile on the server keeps it. First it checks that the server has every change — if not, you choose what happens to them.': 'Deine Daten werden aus diesem Browser entfernt; dein Profil auf dem Server behält sie. Vorher wird geprüft, ob der Server jede Änderung hat — falls nicht, entscheidest du, was mit ihnen passiert.',
+ 'Signs this profile out on every device, including this one. Phones paired with it are disconnected and have to be paired again. Your passkeys keep working — sign in with them again anytime.': 'Meldet dieses Profil auf allen Geräten ab, auch auf diesem. Damit gekoppelte Handys werden getrennt und müssen neu gekoppelt werden. Deine Passkeys funktionieren weiter — melde dich jederzeit wieder damit an.',
+ 'Open Settings → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Öffne auf deiner openGym-Seite im Browser Einstellungen → „Mobile App koppeln“ und gib den neuen Code ein, der dort angezeigt wird. Was dieses Handy aufbewahrt hat, wird in dein Konto übernommen.',
+ '{0} change': '{0} Änderung',
+ '{0} changes': '{0} Änderungen',
+ // --- plan vs session: the routine's own reps, per-routine progress (#275, #216) ---
+ 'Planned sessions start from': 'Ausgangspunkt geplanter Einheiten',
+ 'The routine’s sets and reps. Your history decides the weight.': 'Die Sätze und Wiederholungen der Routine. Das Gewicht ergibt sich aus deinem Verlauf.',
+ 'Your last session': 'Deine letzte Einheit',
+ 'The reps you logged last time in that routine, carried over.': 'Die Wiederholungen, die du zuletzt in dieser Routine eingetragen hast, werden übernommen.',
+ 'Plan changed — starting from your new target.': 'Plan geändert — es geht mit deiner neuen Vorgabe los.',
+ 'First time in this routine — starting from its own target.': 'Zum ersten Mal in dieser Routine — es geht mit ihrer eigenen Vorgabe los.',
+ 'No weight logged last time — enter what you lift and progression takes it from there.': 'Letztes Mal kein Gewicht eingetragen — trag ein, was du bewegst, dann übernimmt die Progression.',
+ 'Plan: {0}': 'Plan: {0}',
+ 'today {0}': 'heute {0}',
+ 'reps from your last session': 'Wdh. aus deiner letzten Einheit',
+ 'Save as routine?': 'Als Routine speichern?',
+ 'Save as routine': 'Als Routine speichern',
+ 'Create an independent routine from these exercise targets. Your workout history is kept.': 'Eine unabhängige Routine aus diesen Trainingszielen erstellen. Dein Trainingsverlauf bleibt erhalten.',
+ 'Keep timing after target': 'Nach dem Ziel weiterzählen',
+ 'Timed sets continue up to 15 extra minutes. Tap Done to log the actual duration.': 'Zeitbasierte Sätze laufen bis zu 15 zusätzliche Minuten weiter. Tippe auf „Fertig“, um die tatsächliche Dauer zu speichern.',
+ 'Edit workout': 'Training bearbeiten',
+ 'Workout updated': 'Training aktualisiert',
+ 'Save workout changes?': 'Änderungen am Training speichern?',
+ 'Save your edits to this workout, or keep the original record.': 'Speichere deine Änderungen an diesem Training oder behalte den ursprünglichen Eintrag.',
+ 'Save changes': 'Änderungen speichern',
+ "Don't save": 'Nicht speichern',
+ 'Keep editing': 'Weiter bearbeiten',
+ 'This workout was deleted on another device. Your edits are still here.': 'Dieses Training wurde auf einem anderen Gerät gelöscht. Deine Änderungen sind noch hier.',
+ 'This workout changed on another device. Your edits are still here.': 'Dieses Training wurde auf einem anderen Gerät geändert. Deine Änderungen sind noch hier.',
+ 'Close editor': 'Editor schließen',
+ 'Editing a saved workout. Date and duration stay unchanged.': 'Du bearbeitest ein gespeichertes Training. Datum und Dauer bleiben unverändert.',
}
diff --cc frontend/src/locales/es.js
index 76a5f103b,e4c36d2a8..475cde863
--- a/frontend/src/locales/es.js
+++ b/frontend/src/locales/es.js
@@@ -1256,61 -1250,15 +1256,72 @@@ export default
'already added': 'ya añadido',
'no exercises': 'sin ejercicios',
'Pick equipment': 'Elegir equipamiento',
+ // --- connection indicator, Server & sync, changes not on the server yet ---
+ 'All synced': 'Todo sincronizado',
+ 'Waiting to sync': 'Pendiente de sincronizar',
+ 'Offline — the server cannot be reached': 'Sin conexión: no se puede llegar al servidor',
+ 'Not an openGym answer (HTTP {0})': 'No es una respuesta de openGym (HTTP {0})',
+ 'Your server’s address answered with something other than openGym (HTTP {0}). Your changes are kept here.': 'La dirección de tu servidor respondió con algo que no es openGym (HTTP {0}). Tus cambios se quedan aquí.',
+ 'Server error (HTTP {0})': 'Error del servidor (HTTP {0})',
+ 'Your server answered with an error (HTTP {0}). Your changes are kept here.': 'Tu servidor respondió con un error (HTTP {0}). Tus cambios se quedan aquí.',
+ 'The server refuses this browser': 'El servidor rechaza este navegador',
+ 'Your server no longer accepts this browser. Your changes are kept here.': 'Tu servidor ya no acepta este navegador. Tus cambios se quedan aquí.',
+ 'This phone is no longer paired with your server. Your changes are kept here.': 'Este teléfono ya no está emparejado con tu servidor. Tus cambios se quedan aquí.',
+ 'The server refuses this phone': 'El servidor rechaza este teléfono',
+ 'Your server no longer accepts this phone. Your changes are kept here.': 'Tu servidor ya no acepta este teléfono. Tus cambios se quedan aquí.',
+ 'On this phone only — not connected to a server': 'Solo en este teléfono: sin conexión a ningún servidor',
+ 'Pair again': 'Volver a emparejar',
+ 'Sign in': 'Iniciar sesión',
+ 'Disconnect anyway': 'Desconectar de todos modos',
+ 'Sign out anyway': 'Cerrar sesión de todos modos',
+ 'Could not keep a copy of the changes on this device — nothing was removed.': 'No se pudo guardar una copia de los cambios en este dispositivo: no se ha eliminado nada.',
+ 'Not everything is on your server yet': 'Tu servidor aún no lo tiene todo',
+ 'Not on your server yet: {0}': 'Aún sin llegar a tu servidor: {0}',
+ 'Some changes on this device have not reached your server.': 'Algunos cambios de este dispositivo aún no han llegado a tu servidor.',
+ 'Try again, or export a backup first. Going ahead anyway keeps a copy of these changes on this device until it connects to this server as this account again — then they are added back.': 'Vuelve a intentarlo o exporta antes una copia. Si continúas de todos modos, se guarda una copia de estos cambios en este dispositivo hasta que vuelva a conectarse a este servidor con esta cuenta; entonces se vuelven a añadir.',
+ 'Syncing…': 'Sincronizando…',
+ 'Try again': 'Reintentar',
+ 'Last synced: {0}': 'Última sincronización: {0}',
+ 'Not synced with this server yet': 'Aún no sincronizado con este servidor',
+ 'Server & sync': 'Servidor y sincronización',
+ 'Signed in as {0}': 'Sesión iniciada como {0}',
+ 'Sync now': 'Sincronizar ahora',
+ 'Your changes are kept here, and merged into your account once it is paired again.': 'Tus cambios se quedan aquí y se fusionan con tu cuenta en cuanto vuelvas a emparejar el teléfono.',
+ 'Your changes are kept here, and merged into your account once you are signed in again.': 'Tus cambios se quedan aquí y se fusionan con tu cuenta en cuanto vuelvas a iniciar sesión.',
+ 'Changes kept for {0}': 'Cambios guardados para {0}',
+ 'Added back when this device connects as that account again.': 'Se vuelven a añadir cuando este dispositivo se conecte de nuevo con esa cuenta.',
+ 'The changes your server has not seen are kept on this device, and added back when it connects as this account again.': 'Los cambios que tu servidor aún no tiene se guardan en este dispositivo y se vuelven a añadir cuando se conecte de nuevo con esta cuenta.',
+ 'This phone switches back to local-only and its copy of your account is removed. First it checks that your server has every change — if not, you choose what happens to them.': 'Este teléfono vuelve al modo local y se elimina de él la copia de tu cuenta. Antes se comprueba que tu servidor tiene todos los cambios; si no, tú decides qué hacer con ellos.',
+ 'Your data is removed from this browser; your profile on the server keeps it. First it checks that the server has every change — if not, you choose what happens to them.': 'Tus datos se eliminan de este navegador; tu perfil en el servidor los conserva. Antes se comprueba que el servidor tiene todos los cambios; si no, tú decides qué hacer con ellos.',
+ 'Signs this profile out on every device, including this one. Phones paired with it are disconnected and have to be paired again. Your passkeys keep working — sign in with them again anytime.': 'Cierra la sesión de este perfil en todos los dispositivos, incluido este. Los teléfonos emparejados con él se desconectan y hay que volver a emparejarlos. Tus passkeys siguen funcionando: inicia sesión con ellas cuando quieras.',
+ 'Open Settings → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Abre Ajustes → «Emparejar la app móvil» en tu sitio de openGym en un navegador e introduce el nuevo código que aparece ahí. Lo que este teléfono guardó se fusiona con tu cuenta.',
+ '{0} change': '{0} cambio',
+ '{0} changes': '{0} cambios',
+ // --- plan vs session: the routine's own reps, per-routine progress (#275, #216) ---
+ 'Planned sessions start from': 'Punto de partida de las sesiones planificadas',
+ 'The routine’s sets and reps. Your history decides the weight.': 'Las series y repeticiones de la rutina. Tu historial decide el peso.',
+ 'Your last session': 'Tu última sesión',
+ 'The reps you logged last time in that routine, carried over.': 'Se mantienen las repeticiones que registraste la última vez en esa rutina.',
+ 'Plan changed — starting from your new target.': 'Plan cambiado: empiezas desde tu nuevo objetivo.',
+ 'First time in this routine — starting from its own target.': 'Primera vez en esta rutina: empiezas desde su propio objetivo.',
+ 'No weight logged last time — enter what you lift and progression takes it from there.': 'La última vez no se registró peso: introduce lo que levantas y la progresión seguirá desde ahí.',
+ 'Plan: {0}': 'Plan: {0}',
+ 'today {0}': 'hoy {0}',
+ 'reps from your last session': 'reps de tu última sesión',
+ 'Save as routine?': '¿Guardar como rutina?',
+ 'Save as routine': 'Guardar como rutina',
+ 'Create an independent routine from these exercise targets. Your workout history is kept.': 'Crea una rutina independiente a partir de estos objetivos. Tu historial de entrenamientos se conserva.',
+ 'Keep timing after target': 'Seguir contando después del objetivo',
+ 'Timed sets continue up to 15 extra minutes. Tap Done to log the actual duration.': 'Las series cronometradas continúan hasta 15 minutos extra. Toca «Listo» para registrar la duración real.',
+ 'Edit workout': 'Editar entrenamiento',
+ 'Workout updated': 'Entrenamiento actualizado',
+ 'Save workout changes?': '¿Guardar los cambios del entrenamiento?',
+ 'Save your edits to this workout, or keep the original record.': 'Guarda los cambios de este entrenamiento o conserva el registro original.',
+ 'Save changes': 'Guardar cambios',
+ "Don't save": 'No guardar',
+ 'Keep editing': 'Seguir editando',
+ 'This workout was deleted on another device. Your edits are still here.': 'Este entrenamiento se eliminó en otro dispositivo. Tus cambios siguen aquí.',
+ 'This workout changed on another device. Your edits are still here.': 'Este entrenamiento cambió en otro dispositivo. Tus cambios siguen aquí.',
+ 'Close editor': 'Cerrar editor',
+ 'Editing a saved workout. Date and duration stay unchanged.': 'Estás editando un entrenamiento guardado. La fecha y la duración no cambian.',
}
diff --cc frontend/src/locales/fr.js
index c06eeb7b3,b1e91e0d1..cfce3bc2d
--- a/frontend/src/locales/fr.js
+++ b/frontend/src/locales/fr.js
@@@ -1256,61 -1250,15 +1256,72 @@@ export default
'already added': 'déjà ajouté',
'no exercises': 'aucun exercice',
'Pick equipment': 'Choisir l’équipement',
+ // --- connection indicator, Server & sync, changes not on the server yet ---
+ 'All synced': 'Tout est synchronisé',
+ 'Waiting to sync': 'En attente de synchronisation',
+ 'Offline — the server cannot be reached': 'Hors ligne — le serveur est injoignable',
+ 'Not an openGym answer (HTTP {0})': 'Pas une réponse d\'openGym (HTTP {0})',
+ 'Your server’s address answered with something other than openGym (HTTP {0}). Your changes are kept here.': 'L\'adresse de votre serveur a répondu avec autre chose qu\'openGym (HTTP {0}). Vos modifications restent ici.',
+ 'Server error (HTTP {0})': 'Erreur du serveur (HTTP {0})',
+ 'Your server answered with an error (HTTP {0}). Your changes are kept here.': 'Votre serveur a répondu par une erreur (HTTP {0}). Vos modifications restent ici.',
+ 'The server refuses this browser': 'Le serveur refuse ce navigateur',
+ 'Your server no longer accepts this browser. Your changes are kept here.': 'Votre serveur n\'accepte plus ce navigateur. Vos modifications restent ici.',
+ 'This phone is no longer paired with your server. Your changes are kept here.': 'Ce téléphone n\'est plus associé à votre serveur. Vos modifications restent ici.',
+ 'The server refuses this phone': 'Le serveur refuse ce téléphone',
+ 'Your server no longer accepts this phone. Your changes are kept here.': 'Votre serveur n\'accepte plus ce téléphone. Vos modifications restent ici.',
+ 'On this phone only — not connected to a server': 'Sur ce téléphone uniquement — connecté à aucun serveur',
+ 'Pair again': 'Associer à nouveau',
+ 'Sign in': 'Se connecter',
+ 'Disconnect anyway': 'Déconnecter quand même',
+ 'Sign out anyway': 'Se déconnecter quand même',
+ 'Could not keep a copy of the changes on this device — nothing was removed.': 'Impossible de garder une copie des modifications sur cet appareil — rien n\'a été supprimé.',
+ 'Not everything is on your server yet': 'Votre serveur n\'a pas encore tout',
+ 'Not on your server yet: {0}': 'Pas encore sur votre serveur : {0}',
+ 'Some changes on this device have not reached your server.': 'Certaines modifications de cet appareil n\'ont pas encore atteint votre serveur.',
+ 'Try again, or export a backup first. Going ahead anyway keeps a copy of these changes on this device until it connects to this server as this account again — then they are added back.': 'Réessayez, ou exportez d\'abord une sauvegarde. Si vous continuez quand même, une copie de ces modifications reste sur cet appareil jusqu\'à ce qu\'il se reconnecte à ce serveur avec ce compte — elles sont alors rajoutées.',
+ 'Syncing…': 'Synchronisation…',
+ 'Try again': 'Réessayer',
+ 'Last synced: {0}': 'Dernière synchronisation : {0}',
+ 'Not synced with this server yet': 'Pas encore synchronisé avec ce serveur',
+ 'Server & sync': 'Serveur et synchronisation',
+ 'Signed in as {0}': 'Connecté en tant que {0}',
+ 'Sync now': 'Synchroniser maintenant',
+ 'Your changes are kept here, and merged into your account once it is paired again.': 'Vos modifications restent ici et sont fusionnées avec votre compte dès que le téléphone est à nouveau associé.',
+ 'Your changes are kept here, and merged into your account once you are signed in again.': 'Vos modifications restent ici et sont fusionnées avec votre compte dès que vous êtes à nouveau connecté.',
+ 'Changes kept for {0}': 'Modifications gardées pour {0}',
+ 'Added back when this device connects as that account again.': 'Rajoutées quand cet appareil se reconnecte avec ce compte.',
+ 'The changes your server has not seen are kept on this device, and added back when it connects as this account again.': 'Les modifications que votre serveur n\'a pas encore sont gardées sur cet appareil, et rajoutées quand il se reconnecte avec ce compte.',
+ 'This phone switches back to local-only and its copy of your account is removed. First it checks that your server has every change — if not, you choose what happens to them.': 'Ce téléphone repasse en mode local et la copie de votre compte en est supprimée. On vérifie d\'abord que votre serveur a toutes les modifications — sinon, vous choisissez ce qu\'elles deviennent.',
+ 'Your data is removed from this browser; your profile on the server keeps it. First it checks that the server has every change — if not, you choose what happens to them.': 'Vos données sont supprimées de ce navigateur ; votre profil sur le serveur les conserve. On vérifie d\'abord que le serveur a toutes les modifications — sinon, vous choisissez ce qu\'elles deviennent.',
+ 'Signs this profile out on every device, including this one. Phones paired with it are disconnected and have to be paired again. Your passkeys keep working — sign in with them again anytime.': 'Déconnecte ce profil sur tous les appareils, y compris celui-ci. Les téléphones associés sont déconnectés et devront être associés à nouveau. Vos passkeys continuent de fonctionner — reconnectez-vous avec quand vous voulez.',
+ 'Open Settings → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Ouvrez Réglages → « Associer l\'application mobile » sur votre site openGym dans un navigateur et saisissez le nouveau code qui s\'y affiche. Ce que ce téléphone a gardé est fusionné avec votre compte.',
+ '{0} change': '{0} modification',
+ '{0} changes': '{0} modifications',
+ // --- plan vs session: the routine's own reps, per-routine progress (#275, #216) ---
+ 'Planned sessions start from': 'Point de départ des séances planifiées',
+ 'The routine’s sets and reps. Your history decides the weight.': 'Les séries et répétitions de la routine. Ton historique décide du poids.',
+ 'Your last session': 'Ta dernière séance',
+ 'The reps you logged last time in that routine, carried over.': 'Les répétitions notées la dernière fois dans cette routine sont reprises.',
+ 'Plan changed — starting from your new target.': 'Plan modifié — on repart de ton nouvel objectif.',
+ 'First time in this routine — starting from its own target.': 'Première fois dans cette routine — on part de son propre objectif.',
+ 'No weight logged last time — enter what you lift and progression takes it from there.': 'Aucun poids noté la dernière fois — entre ce que tu soulèves et la progression prend le relais.',
+ 'Plan: {0}': 'Plan : {0}',
+ 'today {0}': 'aujourd’hui {0}',
+ 'reps from your last session': 'reps de ta dernière séance',
+ 'Save as routine?': 'Enregistrer comme routine ?',
+ 'Save as routine': 'Enregistrer comme routine',
+ 'Create an independent routine from these exercise targets. Your workout history is kept.': 'Créer une routine indépendante à partir de ces objectifs. Votre historique reste conservé.',
+ 'Keep timing after target': 'Continuer après l’objectif',
+ 'Timed sets continue up to 15 extra minutes. Tap Done to log the actual duration.': 'Les séries chronométrées continuent jusqu’à 15 minutes supplémentaires. Touchez « Terminé » pour enregistrer la durée réelle.',
+ 'Edit workout': 'Modifier l’entraînement',
+ 'Workout updated': 'Entraînement mis à jour',
+ 'Save workout changes?': 'Enregistrer les modifications de l’entraînement ?',
+ 'Save your edits to this workout, or keep the original record.': 'Enregistrez vos modifications ou conservez l’enregistrement d’origine.',
+ 'Save changes': 'Enregistrer les modifications',
+ "Don't save": 'Ne pas enregistrer',
+ 'Keep editing': 'Continuer la modification',
+ 'This workout was deleted on another device. Your edits are still here.': 'Cet entraînement a été supprimé sur un autre appareil. Vos modifications sont toujours ici.',
+ 'This workout changed on another device. Your edits are still here.': 'Cet entraînement a été modifié sur un autre appareil. Vos modifications sont toujours ici.',
+ 'Close editor': 'Fermer l’éditeur',
+ 'Editing a saved workout. Date and duration stay unchanged.': 'Vous modifiez un entraînement enregistré. La date et la durée restent inchangées.',
}
diff --cc frontend/src/locales/hi.js
index 6e0284d6e,94249a59c..eb8f1e901
--- a/frontend/src/locales/hi.js
+++ b/frontend/src/locales/hi.js
@@@ -1256,61 -1250,15 +1256,72 @@@ export default
'already added': 'पहले से जोड़ा हुआ',
'no exercises': 'कोई व्यायाम नहीं',
'Pick equipment': 'उपकरण चुनें',
+ // --- connection indicator, Server & sync, changes not on the server yet ---
+ 'All synced': 'सब सिंक हो गया',
+ 'Waiting to sync': 'सिंक होने की प्रतीक्षा',
+ 'Offline — the server cannot be reached': 'ऑफ़लाइन — सर्वर तक नहीं पहुँचा जा सकता',
+ 'Not an openGym answer (HTTP {0})': 'openGym का जवाब नहीं (HTTP {0})',
+ 'Your server’s address answered with something other than openGym (HTTP {0}). Your changes are kept here.': 'आपके सर्वर के पते ने openGym के बजाय कुछ और जवाब दिया (HTTP {0})। आपके बदलाव यहीं रखे हैं।',
+ 'Server error (HTTP {0})': 'सर्वर त्रुटि (HTTP {0})',
+ 'Your server answered with an error (HTTP {0}). Your changes are kept here.': 'आपके सर्वर ने त्रुटि के साथ जवाब दिया (HTTP {0})। आपके बदलाव यहीं रखे हैं।',
+ 'The server refuses this browser': 'सर्वर इस ब्राउज़र को अस्वीकार कर रहा है',
+ 'Your server no longer accepts this browser. Your changes are kept here.': 'आपका सर्वर अब इस ब्राउज़र को स्वीकार नहीं करता। आपके बदलाव यहीं रखे हैं।',
+ 'This phone is no longer paired with your server. Your changes are kept here.': 'यह फ़ोन अब आपके सर्वर से पेयर नहीं है। आपके बदलाव यहीं रखे हैं।',
+ 'The server refuses this phone': 'सर्वर इस फ़ोन को अस्वीकार कर रहा है',
+ 'Your server no longer accepts this phone. Your changes are kept here.': 'आपका सर्वर अब इस फ़ोन को स्वीकार नहीं करता। आपके बदलाव यहीं रखे हैं।',
+ 'On this phone only — not connected to a server': 'केवल इसी फ़ोन पर — किसी सर्वर से कनेक्ट नहीं',
+ 'Pair again': 'फिर से पेयर करें',
+ 'Sign in': 'साइन इन',
+ 'Disconnect anyway': 'फिर भी डिस्कनेक्ट करें',
+ 'Sign out anyway': 'फिर भी साइन आउट करें',
+ 'Could not keep a copy of the changes on this device — nothing was removed.': 'इस डिवाइस पर बदलावों की कॉपी नहीं रखी जा सकी — कुछ भी हटाया नहीं गया।',
+ 'Not everything is on your server yet': 'आपके सर्वर पर अभी सब कुछ नहीं है',
+ 'Not on your server yet: {0}': 'अभी सर्वर पर नहीं: {0}',
+ 'Some changes on this device have not reached your server.': 'इस डिवाइस के कुछ बदलाव अभी आपके सर्वर तक नहीं पहुँचे हैं।',
+ 'Try again, or export a backup first. Going ahead anyway keeps a copy of these changes on this device until it connects to this server as this account again — then they are added back.': 'फिर से कोशिश करें, या पहले बैकअप निर्यात करें। फिर भी आगे बढ़ने पर इन बदलावों की एक कॉपी इस डिवाइस पर तब तक रहती है जब तक यह इसी खाते से इस सर्वर से फिर कनेक्ट नहीं होता — तब वे वापस जोड़ दिए जाते हैं।',
+ 'Syncing…': 'सिंक हो रहा है…',
+ 'Try again': 'फिर से कोशिश करें',
+ 'Last synced: {0}': 'आख़िरी सिंक: {0}',
+ 'Not synced with this server yet': 'इस सर्वर से अभी तक सिंक नहीं हुआ',
+ 'Server & sync': 'सर्वर और सिंक',
+ 'Signed in as {0}': '{0} के रूप में साइन इन',
+ 'Sync now': 'अभी सिंक करें',
+ 'Your changes are kept here, and merged into your account once it is paired again.': 'आपके बदलाव यहीं रखे हैं, और फ़ोन फिर से पेयर होते ही आपके खाते में जोड़ दिए जाएँगे।',
+ 'Your changes are kept here, and merged into your account once you are signed in again.': 'आपके बदलाव यहीं रखे हैं, और फिर से साइन इन करते ही आपके खाते में जोड़ दिए जाएँगे।',
+ 'Changes kept for {0}': '{0} के लिए रखे गए बदलाव',
+ 'Added back when this device connects as that account again.': 'जब यह डिवाइस उस खाते से फिर कनेक्ट होगा, तब वापस जोड़ दिए जाएँगे।',
+ 'The changes your server has not seen are kept on this device, and added back when it connects as this account again.': 'जो बदलाव आपके सर्वर तक नहीं पहुँचे, वे इस डिवाइस पर रखे जाते हैं और इसी खाते से फिर कनेक्ट होने पर वापस जोड़ दिए जाते हैं।',
+ 'This phone switches back to local-only and its copy of your account is removed. First it checks that your server has every change — if not, you choose what happens to them.': 'यह फ़ोन वापस केवल-लोकल मोड में चला जाता है और आपके खाते की कॉपी इससे हटा दी जाती है। पहले जाँचा जाता है कि आपके सर्वर पर हर बदलाव है — अगर नहीं, तो आप तय करते हैं कि उनका क्या होगा।',
+ 'Your data is removed from this browser; your profile on the server keeps it. First it checks that the server has every change — if not, you choose what happens to them.': 'आपका डेटा इस ब्राउज़र से हटा दिया जाता है; सर्वर पर आपकी प्रोफ़ाइल उसे रखती है। पहले जाँचा जाता है कि सर्वर पर हर बदलाव है — अगर नहीं, तो आप तय करते हैं कि उनका क्या होगा।',
+ 'Signs this profile out on every device, including this one. Phones paired with it are disconnected and have to be paired again. Your passkeys keep working — sign in with them again anytime.': 'इस प्रोफ़ाइल को इस डिवाइस समेत हर डिवाइस से साइन आउट करता है। इससे पेयर किए गए फ़ोन डिस्कनेक्ट हो जाते हैं और उन्हें फिर से पेयर करना होगा। आपकी पासकी काम करती रहेंगी — कभी भी उनसे फिर साइन इन करें।',
+ 'Open Settings → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'ब्राउज़र में अपनी openGym साइट पर सेटिंग्स → "मोबाइल ऐप पेयर करें" खोलें और वहाँ दिखा नया कोड डालें। इस फ़ोन ने जो रखा है, वह आपके खाते में जोड़ दिया जाएगा।',
+ '{0} change': '{0} बदलाव',
+ '{0} changes': '{0} बदलाव',
+ // --- plan vs session: the routine's own reps, per-routine progress (#275, #216) ---
+ 'Planned sessions start from': 'प्लान किए गए सेशन की शुरुआत',
+ 'The routine’s sets and reps. Your history decides the weight.': 'रूटीन के सेट और रेप्स। वज़न आपका इतिहास तय करता है।',
+ 'Your last session': 'आपका पिछला सेशन',
+ 'The reps you logged last time in that routine, carried over.': 'उस रूटीन में पिछली बार दर्ज किए गए रेप्स आगे ले जाए जाते हैं।',
+ 'Plan changed — starting from your new target.': 'प्लान बदला — आपके नए लक्ष्य से शुरुआत।',
+ 'First time in this routine — starting from its own target.': 'इस रूटीन में पहली बार — इसके अपने लक्ष्य से शुरुआत।',
+ 'No weight logged last time — enter what you lift and progression takes it from there.': 'पिछली बार कोई वज़न दर्ज नहीं हुआ — जितना उठाते हैं उतना दर्ज करें, प्रगति वहीं से आगे बढ़ेगी।',
+ 'Plan: {0}': 'प्लान: {0}',
+ 'today {0}': 'आज {0}',
+ 'reps from your last session': 'रेप्स आपके पिछले सेशन से',
+ 'Save as routine?': 'रूटीन के रूप में सहेजें?',
+ 'Save as routine': 'रूटीन के रूप में सहेजें',
+ 'Create an independent routine from these exercise targets. Your workout history is kept.': 'इन व्यायाम लक्ष्यों से एक स्वतंत्र रूटीन बनाएँ। आपका वर्कआउट इतिहास सुरक्षित रहेगा।',
+ 'Keep timing after target': 'लक्ष्य के बाद भी समय जारी रखें',
+ 'Timed sets continue up to 15 extra minutes. Tap Done to log the actual duration.': 'समयबद्ध सेट 15 अतिरिक्त मिनट तक जारी रहेंगे। वास्तविक अवधि दर्ज करने के लिए “पूरा” दबाएँ।',
+ 'Edit workout': 'वर्कआउट संपादित करें',
+ 'Workout updated': 'वर्कआउट अपडेट हुआ',
+ 'Save workout changes?': 'वर्कआउट के बदलाव सहेजें?',
+ 'Save your edits to this workout, or keep the original record.': 'इस वर्कआउट के बदलाव सहेजें या मूल रिकॉर्ड रखें।',
+ 'Save changes': 'बदलाव सहेजें',
+ "Don't save": 'न सहेजें',
+ 'Keep editing': 'संपादन जारी रखें',
+ 'This workout was deleted on another device. Your edits are still here.': 'यह वर्कआउट दूसरे डिवाइस पर मिटा दिया गया। आपके बदलाव अभी भी यहाँ हैं।',
+ 'This workout changed on another device. Your edits are still here.': 'यह वर्कआउट दूसरे डिवाइस पर बदला गया। आपके बदलाव अभी भी यहाँ हैं।',
+ 'Close editor': 'संपादक बंद करें',
+ 'Editing a saved workout. Date and duration stay unchanged.': 'आप सहेजा हुआ वर्कआउट संपादित कर रहे हैं। तारीख और अवधि नहीं बदलेंगी।',
}
diff --cc frontend/src/locales/hu.js
index 86be1a0ad,e0d682ac7..9e2895ac3
--- a/frontend/src/locales/hu.js
+++ b/frontend/src/locales/hu.js
@@@ -1259,61 -1253,15 +1259,72 @@@ export default
'already added': 'már hozzáadva',
'no exercises': 'nincs gyakorlat',
'Pick equipment': 'Eszköz kiválasztása',
+ // --- connection indicator, Server & sync, changes not on the server yet ---
+ 'All synced': 'Minden szinkronizálva',
+ 'Waiting to sync': 'Szinkronizálásra vár',
+ 'Offline — the server cannot be reached': 'Offline — a szerver nem érhető el',
+ 'Not an openGym answer (HTTP {0})': 'Nem openGym-válasz (HTTP {0})',
+ 'Your server’s address answered with something other than openGym (HTTP {0}). Your changes are kept here.': 'A szervered címe nem openGym-válasszal felelt (HTTP {0}). A módosításaid itt maradnak.',
+ 'Server error (HTTP {0})': 'Szerverhiba (HTTP {0})',
+ 'Your server answered with an error (HTTP {0}). Your changes are kept here.': 'A szervered hibával válaszolt (HTTP {0}). A módosításaid itt maradnak.',
+ 'The server refuses this browser': 'A szerver elutasítja ezt a böngészőt',
+ 'Your server no longer accepts this browser. Your changes are kept here.': 'A szervered már nem fogadja el ezt a böngészőt. A módosításaid itt maradnak.',
+ 'This phone is no longer paired with your server. Your changes are kept here.': 'Ez a telefon már nincs párosítva a szervereddel. A módosításaid itt maradnak.',
+ 'The server refuses this phone': 'A szerver elutasítja ezt a telefont',
+ 'Your server no longer accepts this phone. Your changes are kept here.': 'A szervered már nem fogadja el ezt a telefont. A módosításaid itt maradnak.',
+ 'On this phone only — not connected to a server': 'Csak ezen a telefonon — nem csatlakozik szerverhez',
+ 'Pair again': 'Újrapárosítás',
+ 'Sign in': 'Bejelentkezés',
+ 'Disconnect anyway': 'Leválasztás mindenképp',
+ 'Sign out anyway': 'Kijelentkezés mindenképp',
+ 'Could not keep a copy of the changes on this device — nothing was removed.': 'Nem sikerült megőrizni a módosítások másolatát ezen az eszközön — semmi sem lett eltávolítva.',
+ 'Not everything is on your server yet': 'A szervereden még nincs meg minden',
+ 'Not on your server yet: {0}': 'Még nincs a szervereden: {0}',
+ 'Some changes on this device have not reached your server.': 'Az eszköz néhány módosítása még nem jutott el a szerveredre.',
+ 'Try again, or export a backup first. Going ahead anyway keeps a copy of these changes on this device until it connects to this server as this account again — then they are added back.': 'Próbáld újra, vagy előbb exportálj egy biztonsági mentést. Ha mégis folytatod, a módosítások másolata ezen az eszközön marad, amíg újra nem csatlakozik ehhez a szerverhez ezzel a fiókkal — akkor visszakerülnek.',
+ 'Syncing…': 'Szinkronizálás…',
+ 'Try again': 'Próbáld újra',
+ 'Last synced: {0}': 'Utoljára szinkronizálva: {0}',
+ 'Not synced with this server yet': 'Ezzel a szerverrel még nem volt szinkronizálás',
+ 'Server & sync': 'Szerver és szinkronizálás',
+ 'Signed in as {0}': 'Bejelentkezve: {0}',
+ 'Sync now': 'Szinkronizálás most',
+ 'Your changes are kept here, and merged into your account once it is paired again.': 'A módosításaid itt maradnak, és a fiókodba kerülnek, amint a telefont újra párosítod.',
+ 'Your changes are kept here, and merged into your account once you are signed in again.': 'A módosításaid itt maradnak, és a fiókodba kerülnek, amint újra bejelentkezel.',
+ 'Changes kept for {0}': 'Megőrzött módosítások: {0}',
+ 'Added back when this device connects as that account again.': 'Visszakerülnek, amikor ez az eszköz újra csatlakozik azzal a fiókkal.',
+ 'The changes your server has not seen are kept on this device, and added back when it connects as this account again.': 'Azok a módosítások, amelyek még nincsenek a szervereden, ezen az eszközön maradnak, és visszakerülnek, amikor újra csatlakozik ezzel a fiókkal.',
+ 'This phone switches back to local-only and its copy of your account is removed. First it checks that your server has every change — if not, you choose what happens to them.': 'Ez a telefon visszavált csak-helyi módba, és a fiókod másolata törlődik róla. Előtte ellenőrzi, hogy a szervereden megvan-e minden módosítás — ha nem, te döntöd el, mi legyen velük.',
+ 'Your data is removed from this browser; your profile on the server keeps it. First it checks that the server has every change — if not, you choose what happens to them.': 'Az adataid törlődnek ebből a böngészőből; a szerveren lévő profilod megőrzi őket. Előtte ellenőrzi, hogy a szerveren megvan-e minden módosítás — ha nem, te döntöd el, mi legyen velük.',
+ 'Signs this profile out on every device, including this one. Phones paired with it are disconnected and have to be paired again. Your passkeys keep working — sign in with them again anytime.': 'Kijelentkezteti ezt a profilt minden eszközön, ezen is. A vele párosított telefonok leválasztódnak, és újra párosítani kell őket. A jelszókulcsaid továbbra is működnek — bármikor bejelentkezhetsz velük újra.',
+ 'Open Settings → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Nyisd meg a Beállítások → „Mobilalkalmazás párosítása” menüpontot az openGym oldaladon egy böngészőben, és add meg az ott látható új kódot. Amit ez a telefon megőrzött, a fiókodba kerül.',
+ '{0} change': '{0} módosítás',
+ '{0} changes': '{0} módosítás',
+ // --- plan vs session: the routine's own reps, per-routine progress (#275, #216) ---
+ 'Planned sessions start from': 'A tervezett edzések kiindulópontja',
+ 'The routine’s sets and reps. Your history decides the weight.': 'A rutin sorozatai és ismétlései. A súlyt az előzményeid döntik el.',
+ 'Your last session': 'Az utolsó edzésed',
+ 'The reps you logged last time in that routine, carried over.': 'Az abban a rutinban legutóbb rögzített ismétlések kerülnek át.',
+ 'Plan changed — starting from your new target.': 'A terv megváltozott — az új célodtól indulsz.',
+ 'First time in this routine — starting from its own target.': 'Először ebben a rutinban — a saját céljától indulsz.',
+ 'No weight logged last time — enter what you lift and progression takes it from there.': 'Legutóbb nem volt súly rögzítve — add meg, mennyit emelsz, és onnan halad tovább a progresszió.',
+ 'Plan: {0}': 'Terv: {0}',
+ 'today {0}': 'ma {0}',
+ 'reps from your last session': 'ismétlések az utolsó edzésedből',
+ 'Save as routine?': 'Mentés rutinként?',
+ 'Save as routine': 'Mentés rutinként',
+ 'Create an independent routine from these exercise targets. Your workout history is kept.': 'Független rutin létrehozása ezekből a célokból. Az edzéstörténeted megmarad.',
+ 'Keep timing after target': 'Időzítés folytatása a cél után',
+ 'Timed sets continue up to 15 extra minutes. Tap Done to log the actual duration.': 'Az időzített sorozatok legfeljebb 15 extra percig folytatódnak. A tényleges idő rögzítéséhez koppints a Kész gombra.',
+ 'Edit workout': 'Edzés szerkesztése',
+ 'Workout updated': 'Edzés frissítve',
+ 'Save workout changes?': 'Mented az edzés módosításait?',
+ 'Save your edits to this workout, or keep the original record.': 'Mentsd az edzés módosításait, vagy tartsd meg az eredeti bejegyzést.',
+ 'Save changes': 'Módosítások mentése',
+ "Don't save": 'Ne mentse',
+ 'Keep editing': 'Szerkesztés folytatása',
+ 'This workout was deleted on another device. Your edits are still here.': 'Ezt az edzést egy másik eszközön törölték. A módosításaid továbbra is itt vannak.',
+ 'This workout changed on another device. Your edits are still here.': 'Ezt az edzést egy másik eszközön módosították. A módosításaid továbbra is itt vannak.',
+ 'Close editor': 'Szerkesztő bezárása',
+ 'Editing a saved workout. Date and duration stay unchanged.': 'Mentett edzést szerkesztesz. A dátum és az időtartam változatlan marad.',
}
diff --cc frontend/src/locales/it.js
index b0cbab9f2,50fd27408..3960d1eee
--- a/frontend/src/locales/it.js
+++ b/frontend/src/locales/it.js
@@@ -1256,61 -1250,15 +1256,72 @@@ export default
'already added': 'già aggiunto',
'no exercises': 'nessun esercizio',
'Pick equipment': 'Scegli l’attrezzatura',
+ // --- connection indicator, Server & sync, changes not on the server yet ---
+ 'All synced': 'Tutto sincronizzato',
+ 'Waiting to sync': 'In attesa di sincronizzazione',
+ 'Offline — the server cannot be reached': 'Offline — il server non è raggiungibile',
+ 'Not an openGym answer (HTTP {0})': 'Non è una risposta di openGym (HTTP {0})',
+ 'Your server’s address answered with something other than openGym (HTTP {0}). Your changes are kept here.': 'L\'indirizzo del tuo server ha risposto con qualcosa che non è openGym (HTTP {0}). Le tue modifiche restano qui.',
+ 'Server error (HTTP {0})': 'Errore del server (HTTP {0})',
+ 'Your server answered with an error (HTTP {0}). Your changes are kept here.': 'Il tuo server ha risposto con un errore (HTTP {0}). Le tue modifiche restano qui.',
+ 'The server refuses this browser': 'Il server rifiuta questo browser',
+ 'Your server no longer accepts this browser. Your changes are kept here.': 'Il tuo server non accetta più questo browser. Le tue modifiche restano qui.',
+ 'This phone is no longer paired with your server. Your changes are kept here.': 'Questo telefono non è più abbinato al tuo server. Le tue modifiche restano qui.',
+ 'The server refuses this phone': 'Il server rifiuta questo telefono',
+ 'Your server no longer accepts this phone. Your changes are kept here.': 'Il tuo server non accetta più questo telefono. Le tue modifiche restano qui.',
+ 'On this phone only — not connected to a server': 'Solo su questo telefono — non collegato a nessun server',
+ 'Pair again': 'Abbina di nuovo',
+ 'Sign in': 'Accedi',
+ 'Disconnect anyway': 'Disconnetti comunque',
+ 'Sign out anyway': 'Esci comunque',
+ 'Could not keep a copy of the changes on this device — nothing was removed.': 'Impossibile conservare una copia delle modifiche su questo dispositivo — non è stato rimosso nulla.',
+ 'Not everything is on your server yet': 'Il tuo server non ha ancora tutto',
+ 'Not on your server yet: {0}': 'Non ancora sul tuo server: {0}',
+ 'Some changes on this device have not reached your server.': 'Alcune modifiche su questo dispositivo non hanno ancora raggiunto il tuo server.',
+ 'Try again, or export a backup first. Going ahead anyway keeps a copy of these changes on this device until it connects to this server as this account again — then they are added back.': 'Riprova, oppure esporta prima un backup. Se procedi comunque, una copia di queste modifiche resta su questo dispositivo finché non si ricollega a questo server con questo account — poi vengono aggiunte di nuovo.',
+ 'Syncing…': 'Sincronizzazione…',
+ 'Try again': 'Riprova',
+ 'Last synced: {0}': 'Ultima sincronizzazione: {0}',
+ 'Not synced with this server yet': 'Non ancora sincronizzato con questo server',
+ 'Server & sync': 'Server e sincronizzazione',
+ 'Signed in as {0}': 'Accesso effettuato come {0}',
+ 'Sync now': 'Sincronizza ora',
+ 'Your changes are kept here, and merged into your account once it is paired again.': 'Le tue modifiche restano qui e vengono unite al tuo account appena il telefono è di nuovo abbinato.',
+ 'Your changes are kept here, and merged into your account once you are signed in again.': 'Le tue modifiche restano qui e vengono unite al tuo account appena accedi di nuovo.',
+ 'Changes kept for {0}': 'Modifiche conservate per {0}',
+ 'Added back when this device connects as that account again.': 'Vengono aggiunte di nuovo quando questo dispositivo si ricollega con quell\'account.',
+ 'The changes your server has not seen are kept on this device, and added back when it connects as this account again.': 'Le modifiche che il tuo server non ha ancora restano su questo dispositivo e vengono aggiunte di nuovo quando si ricollega con questo account.',
+ 'This phone switches back to local-only and its copy of your account is removed. First it checks that your server has every change — if not, you choose what happens to them.': 'Questo telefono torna alla modalità locale e la copia del tuo account viene rimossa. Prima si controlla che il tuo server abbia tutte le modifiche — altrimenti scegli tu cosa farne.',
+ 'Your data is removed from this browser; your profile on the server keeps it. First it checks that the server has every change — if not, you choose what happens to them.': 'I tuoi dati vengono rimossi da questo browser; il tuo profilo sul server li conserva. Prima si controlla che il server abbia tutte le modifiche — altrimenti scegli tu cosa farne.',
+ 'Signs this profile out on every device, including this one. Phones paired with it are disconnected and have to be paired again. Your passkeys keep working — sign in with them again anytime.': 'Disconnette questo profilo su tutti i dispositivi, compreso questo. I telefoni abbinati vengono scollegati e vanno abbinati di nuovo. Le tue passkey continuano a funzionare — accedi di nuovo quando vuoi.',
+ 'Open Settings → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Apri Impostazioni → «Abbina l\'app mobile» sul tuo sito openGym in un browser e inserisci il nuovo codice mostrato lì. Ciò che questo telefono ha conservato viene unito al tuo account.',
+ '{0} change': '{0} modifica',
+ '{0} changes': '{0} modifiche',
+ // --- plan vs session: the routine's own reps, per-routine progress (#275, #216) ---
+ 'Planned sessions start from': 'Punto di partenza delle sessioni pianificate',
+ 'The routine’s sets and reps. Your history decides the weight.': 'Serie e ripetizioni della routine. Il peso lo decide il tuo storico.',
+ 'Your last session': 'La tua ultima sessione',
+ 'The reps you logged last time in that routine, carried over.': 'Vengono riprese le ripetizioni registrate l’ultima volta in quella routine.',
+ 'Plan changed — starting from your new target.': 'Piano cambiato: si riparte dal tuo nuovo obiettivo.',
+ 'First time in this routine — starting from its own target.': 'Prima volta in questa routine: si parte dal suo obiettivo.',
+ 'No weight logged last time — enter what you lift and progression takes it from there.': 'Nessun peso registrato l’ultima volta: inserisci quanto sollevi e la progressione riparte da lì.',
+ 'Plan: {0}': 'Piano: {0}',
+ 'today {0}': 'oggi {0}',
+ 'reps from your last session': 'rip. dalla tua ultima sessione',
+ 'Save as routine?': 'Salvare come routine?',
+ 'Save as routine': 'Salva come routine',
+ 'Create an independent routine from these exercise targets. Your workout history is kept.': 'Crea una routine indipendente da questi obiettivi. La cronologia degli allenamenti resta invariata.',
+ 'Keep timing after target': 'Continua a cronometrare dopo l’obiettivo',
+ 'Timed sets continue up to 15 extra minutes. Tap Done to log the actual duration.': 'Le serie a tempo continuano fino a 15 minuti extra. Tocca Fine per registrare la durata effettiva.',
+ 'Edit workout': 'Modifica allenamento',
+ 'Workout updated': 'Allenamento aggiornato',
+ 'Save workout changes?': 'Salvare le modifiche all’allenamento?',
+ 'Save your edits to this workout, or keep the original record.': 'Salva le modifiche a questo allenamento oppure conserva il record originale.',
+ 'Save changes': 'Salva modifiche',
+ "Don't save": 'Non salvare',
+ 'Keep editing': 'Continua a modificare',
+ 'This workout was deleted on another device. Your edits are still here.': 'Questo allenamento è stato eliminato su un altro dispositivo. Le tue modifiche sono ancora qui.',
+ 'This workout changed on another device. Your edits are still here.': 'Questo allenamento è stato modificato su un altro dispositivo. Le tue modifiche sono ancora qui.',
+ 'Close editor': 'Chiudi editor',
+ 'Editing a saved workout. Date and duration stay unchanged.': 'Stai modificando un allenamento salvato. Data e durata rimangono invariate.',
}
diff --cc frontend/src/locales/ko.js
index 4e5444522,d2e456309..2bf902bc3
--- a/frontend/src/locales/ko.js
+++ b/frontend/src/locales/ko.js
@@@ -1256,61 -1250,15 +1256,72 @@@ export default
'already added': '이미 추가됨',
'no exercises': '운동 없음',
'Pick equipment': '기구 선택',
+ // --- connection indicator, Server & sync, changes not on the server yet ---
+ 'All synced': '모두 동기화됨',
+ 'Waiting to sync': '동기화 대기 중',
+ 'Offline — the server cannot be reached': '오프라인 — 서버에 연결할 수 없음',
+ 'Not an openGym answer (HTTP {0})': 'openGym 응답이 아님 (HTTP {0})',
+ 'Your server’s address answered with something other than openGym (HTTP {0}). Your changes are kept here.': '서버 주소가 openGym이 아닌 다른 응답을 보냈습니다 (HTTP {0}). 변경 사항은 이 기기에 보관됩니다.',
+ 'Server error (HTTP {0})': '서버 오류 (HTTP {0})',
+ 'Your server answered with an error (HTTP {0}). Your changes are kept here.': '서버가 오류로 응답했습니다 (HTTP {0}). 변경 사항은 이 기기에 보관됩니다.',
+ 'The server refuses this browser': '서버가 이 브라우저를 거부합니다',
+ 'Your server no longer accepts this browser. Your changes are kept here.': '서버가 더 이상 이 브라우저를 허용하지 않습니다. 변경 사항은 이 기기에 보관됩니다.',
+ 'This phone is no longer paired with your server. Your changes are kept here.': '이 휴대폰은 더 이상 서버와 페어링되어 있지 않습니다. 변경 사항은 이 기기에 보관됩니다.',
+ 'The server refuses this phone': '서버가 이 휴대폰을 거부합니다',
+ 'Your server no longer accepts this phone. Your changes are kept here.': '서버가 더 이상 이 휴대폰을 허용하지 않습니다. 변경 사항은 이 기기에 보관됩니다.',
+ 'On this phone only — not connected to a server': '이 휴대폰에만 저장 — 서버에 연결되지 않음',
+ 'Pair again': '다시 페어링',
+ 'Sign in': '로그인',
+ 'Disconnect anyway': '그래도 연결 해제',
+ 'Sign out anyway': '그래도 로그아웃',
+ 'Could not keep a copy of the changes on this device — nothing was removed.': '이 기기에 변경 사항의 사본을 보관하지 못했습니다 — 아무것도 삭제되지 않았습니다.',
+ 'Not everything is on your server yet': '아직 서버에 모든 내용이 있지는 않습니다',
+ 'Not on your server yet: {0}': '아직 서버에 없음: {0}',
+ 'Some changes on this device have not reached your server.': '이 기기의 일부 변경 사항이 아직 서버에 도달하지 않았습니다.',
+ 'Try again, or export a backup first. Going ahead anyway keeps a copy of these changes on this device until it connects to this server as this account again — then they are added back.': '다시 시도하거나 먼저 백업을 내보내세요. 그래도 계속하면 이 기기가 이 계정으로 이 서버에 다시 연결될 때까지 변경 사항의 사본이 이 기기에 보관되며, 그때 다시 추가됩니다.',
+ 'Syncing…': '동기화 중…',
+ 'Try again': '다시 시도',
+ 'Last synced: {0}': '마지막 동기화: {0}',
+ 'Not synced with this server yet': '아직 이 서버와 동기화되지 않음',
+ 'Server & sync': '서버 및 동기화',
+ 'Signed in as {0}': '{0}(으)로 로그인됨',
+ 'Sync now': '지금 동기화',
+ 'Your changes are kept here, and merged into your account once it is paired again.': '변경 사항은 이 기기에 보관되며, 다시 페어링하면 계정에 병합됩니다.',
+ 'Your changes are kept here, and merged into your account once you are signed in again.': '변경 사항은 이 기기에 보관되며, 다시 로그인하면 계정에 병합됩니다.',
+ 'Changes kept for {0}': '{0}의 보관된 변경 사항',
+ 'Added back when this device connects as that account again.': '이 기기가 해당 계정으로 다시 연결되면 다시 추가됩니다.',
+ 'The changes your server has not seen are kept on this device, and added back when it connects as this account again.': '서버에 아직 없는 변경 사항은 이 기기에 보관되며, 이 계정으로 다시 연결되면 다시 추가됩니다.',
+ 'This phone switches back to local-only and its copy of your account is removed. First it checks that your server has every change — if not, you choose what happens to them.': '이 휴대폰은 로컬 모드로 돌아가고, 계정 사본이 휴대폰에서 삭제됩니다. 먼저 서버에 모든 변경 사항이 있는지 확인하며, 없으면 어떻게 할지 직접 선택합니다.',
+ 'Your data is removed from this browser; your profile on the server keeps it. First it checks that the server has every change — if not, you choose what happens to them.': '데이터가 이 브라우저에서 삭제되며, 서버의 프로필에는 그대로 남습니다. 먼저 서버에 모든 변경 사항이 있는지 확인하며, 없으면 어떻게 할지 직접 선택합니다.',
+ 'Signs this profile out on every device, including this one. Phones paired with it are disconnected and have to be paired again. Your passkeys keep working — sign in with them again anytime.': '이 기기를 포함한 모든 기기에서 이 프로필을 로그아웃합니다. 이 프로필과 페어링된 휴대폰은 연결이 해제되며 다시 페어링해야 합니다. 패스키는 계속 작동하므로 언제든 다시 로그인할 수 있습니다.',
+ 'Open Settings → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': '브라우저에서 openGym 사이트의 설정 → "모바일 앱 페어링"을 열고 거기에 표시된 새 코드를 입력하세요. 이 휴대폰에 보관된 내용은 계정에 병합됩니다.',
+ '{0} change': '변경 {0}개',
+ '{0} changes': '변경 {0}개',
+ // --- plan vs session: the routine's own reps, per-routine progress (#275, #216) ---
+ 'Planned sessions start from': '계획된 세션의 시작 기준',
+ 'The routine’s sets and reps. Your history decides the weight.': '루틴의 세트와 횟수. 무게는 기록에 따라 정해집니다.',
+ 'Your last session': '지난 세션',
+ 'The reps you logged last time in that routine, carried over.': '그 루틴에서 지난번에 기록한 횟수를 그대로 가져옵니다.',
+ 'Plan changed — starting from your new target.': '계획이 바뀌었습니다 — 새 목표부터 시작합니다.',
+ 'First time in this routine — starting from its own target.': '이 루틴에서 처음입니다 — 루틴의 목표부터 시작합니다.',
+ 'No weight logged last time — enter what you lift and progression takes it from there.': '지난번에 무게가 기록되지 않았습니다 — 드는 무게를 입력하면 거기서부터 진행합니다.',
+ 'Plan: {0}': '계획: {0}',
+ 'today {0}': '오늘 {0}',
+ 'reps from your last session': '지난 세션의 횟수',
+ 'Save as routine?': '루틴으로 저장할까요?',
+ 'Save as routine': '루틴으로 저장',
+ 'Create an independent routine from these exercise targets. Your workout history is kept.': '이 운동 목표로 독립 루틴을 만듭니다. 운동 기록은 그대로 유지됩니다.',
+ 'Keep timing after target': '목표 시간 후에도 계속 측정',
+ 'Timed sets continue up to 15 extra minutes. Tap Done to log the actual duration.': '시간 제한 세트는 최대 15분 추가로 계속됩니다. 실제 시간을 기록하려면 완료를 누르세요.',
+ 'Edit workout': '운동 편집',
+ 'Workout updated': '운동이 업데이트됨',
+ 'Save workout changes?': '운동 변경 사항을 저장할까요?',
+ 'Save your edits to this workout, or keep the original record.': '이 운동의 변경 사항을 저장하거나 원래 기록을 유지하세요.',
+ 'Save changes': '변경 사항 저장',
+ "Don't save": '저장하지 않기',
+ 'Keep editing': '계속 편집',
+ 'This workout was deleted on another device. Your edits are still here.': '이 운동은 다른 기기에서 삭제되었습니다. 편집 내용은 여기에 남아 있습니다.',
+ 'This workout changed on another device. Your edits are still here.': '이 운동은 다른 기기에서 변경되었습니다. 편집 내용은 여기에 남아 있습니다.',
+ 'Close editor': '편집기 닫기',
+ 'Editing a saved workout. Date and duration stay unchanged.': '저장된 운동을 편집 중입니다. 날짜와 시간은 변경되지 않습니다.',
}
diff --cc frontend/src/locales/pl.js
index 5cb2fc396,5e1130e22..0dd47d633
--- a/frontend/src/locales/pl.js
+++ b/frontend/src/locales/pl.js
@@@ -1256,61 -1250,15 +1256,72 @@@ export default
'already added': 'już dodano',
'no exercises': 'brak ćwiczeń',
'Pick equipment': 'Wybierz sprzęt',
+ // --- connection indicator, Server & sync, changes not on the server yet ---
+ 'All synced': 'Wszystko zsynchronizowane',
+ 'Waiting to sync': 'Czeka na synchronizację',
+ 'Offline — the server cannot be reached': 'Offline — serwer jest nieosiągalny',
+ 'Not an openGym answer (HTTP {0})': 'To nie jest odpowiedź openGym (HTTP {0})',
+ 'Your server’s address answered with something other than openGym (HTTP {0}). Your changes are kept here.': 'Adres twojego serwera odpowiedział czymś innym niż openGym (HTTP {0}). Twoje zmiany zostają tutaj.',
+ 'Server error (HTTP {0})': 'Błąd serwera (HTTP {0})',
+ 'Your server answered with an error (HTTP {0}). Your changes are kept here.': 'Twój serwer odpowiedział błędem (HTTP {0}). Twoje zmiany zostają tutaj.',
+ 'The server refuses this browser': 'Serwer odrzuca tę przeglądarkę',
+ 'Your server no longer accepts this browser. Your changes are kept here.': 'Twój serwer nie akceptuje już tej przeglądarki. Twoje zmiany zostają tutaj.',
+ 'This phone is no longer paired with your server. Your changes are kept here.': 'Ten telefon nie jest już sparowany z twoim serwerem. Twoje zmiany zostają tutaj.',
+ 'The server refuses this phone': 'Serwer odrzuca ten telefon',
+ 'Your server no longer accepts this phone. Your changes are kept here.': 'Twój serwer nie akceptuje już tego telefonu. Twoje zmiany zostają tutaj.',
+ 'On this phone only — not connected to a server': 'Tylko na tym telefonie — bez połączenia z serwerem',
+ 'Pair again': 'Sparuj ponownie',
+ 'Sign in': 'Zaloguj się',
+ 'Disconnect anyway': 'Rozłącz mimo to',
+ 'Sign out anyway': 'Wyloguj mimo to',
+ 'Could not keep a copy of the changes on this device — nothing was removed.': 'Nie udało się zachować kopii zmian na tym urządzeniu — nic nie zostało usunięte.',
+ 'Not everything is on your server yet': 'Twój serwer nie ma jeszcze wszystkiego',
+ 'Not on your server yet: {0}': 'Jeszcze nie na twoim serwerze — {0}',
+ 'Some changes on this device have not reached your server.': 'Niektóre zmiany z tego urządzenia nie dotarły jeszcze na twój serwer.',
+ 'Try again, or export a backup first. Going ahead anyway keeps a copy of these changes on this device until it connects to this server as this account again — then they are added back.': 'Spróbuj ponownie albo najpierw wyeksportuj kopię. Jeśli mimo to przejdziesz dalej, kopia tych zmian zostanie na tym urządzeniu, aż ponownie połączy się z tym serwerem na tym koncie — wtedy zostaną dodane z powrotem.',
+ 'Syncing…': 'Synchronizowanie…',
+ 'Try again': 'Spróbuj ponownie',
+ 'Last synced: {0}': 'Ostatnia synchronizacja: {0}',
+ 'Not synced with this server yet': 'Jeszcze nie zsynchronizowano z tym serwerem',
+ 'Server & sync': 'Serwer i synchronizacja',
+ 'Signed in as {0}': 'Zalogowano jako {0}',
+ 'Sync now': 'Synchronizuj teraz',
+ 'Your changes are kept here, and merged into your account once it is paired again.': 'Twoje zmiany zostają tutaj i zostaną scalone z twoim kontem, gdy telefon zostanie ponownie sparowany.',
+ 'Your changes are kept here, and merged into your account once you are signed in again.': 'Twoje zmiany zostają tutaj i zostaną scalone z twoim kontem, gdy znów się zalogujesz.',
+ 'Changes kept for {0}': 'Zmiany zachowane dla {0}',
+ 'Added back when this device connects as that account again.': 'Zostaną dodane z powrotem, gdy to urządzenie znów połączy się z tym kontem.',
+ 'The changes your server has not seen are kept on this device, and added back when it connects as this account again.': 'Zmiany, których twój serwer jeszcze nie ma, zostają na tym urządzeniu i zostaną dodane z powrotem, gdy znów połączy się ono z tym kontem.',
+ 'This phone switches back to local-only and its copy of your account is removed. First it checks that your server has every change — if not, you choose what happens to them.': 'Ten telefon wraca do trybu lokalnego, a kopia twojego konta zostaje z niego usunięta. Najpierw sprawdzane jest, czy twój serwer ma wszystkie zmiany — jeśli nie, sam decydujesz, co się z nimi stanie.',
+ 'Your data is removed from this browser; your profile on the server keeps it. First it checks that the server has every change — if not, you choose what happens to them.': 'Twoje dane zostają usunięte z tej przeglądarki; twój profil na serwerze je zachowuje. Najpierw sprawdzane jest, czy serwer ma wszystkie zmiany — jeśli nie, sam decydujesz, co się z nimi stanie.',
+ 'Signs this profile out on every device, including this one. Phones paired with it are disconnected and have to be paired again. Your passkeys keep working — sign in with them again anytime.': 'Wylogowuje ten profil na wszystkich urządzeniach, także na tym. Sparowane z nim telefony zostaną rozłączone i trzeba je będzie sparować ponownie. Twoje passkeys nadal działają — zaloguj się nimi ponownie w dowolnej chwili.',
+ 'Open Settings → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Otwórz Ustawienia → „Sparuj aplikację mobilną” na swojej stronie openGym w przeglądarce i wpisz nowy kod, który się tam pojawi. To, co zachował ten telefon, zostanie scalone z twoim kontem.',
+ '{0} change': '{0} zmiana',
+ '{0} changes': 'zmian: {0}',
+ // --- plan vs session: the routine's own reps, per-routine progress (#275, #216) ---
+ 'Planned sessions start from': 'Punkt wyjścia zaplanowanych treningów',
+ 'The routine’s sets and reps. Your history decides the weight.': 'Serie i powtórzenia z planu treningowego. Ciężar wynika z twojej historii.',
+ 'Your last session': 'Twoja ostatnia sesja',
+ 'The reps you logged last time in that routine, carried over.': 'Przenoszone są powtórzenia zapisane ostatnio w tym planie treningowym.',
+ 'Plan changed — starting from your new target.': 'Plan zmieniony — zaczynasz od nowego celu.',
+ 'First time in this routine — starting from its own target.': 'Pierwszy raz w tym planie treningowym — zaczynasz od jego własnego celu.',
+ 'No weight logged last time — enter what you lift and progression takes it from there.': 'Ostatnio nie zapisano ciężaru — wpisz, ile podnosisz, a progresja ruszy od tego miejsca.',
+ 'Plan: {0}': 'Plan: {0}',
+ 'today {0}': 'dziś {0}',
+ 'reps from your last session': 'powt. z ostatniej sesji',
+ 'Save as routine?': 'Zapisać jako rutynę?',
+ 'Save as routine': 'Zapisz jako rutynę',
+ 'Create an independent routine from these exercise targets. Your workout history is kept.': 'Utwórz niezależną rutynę z tych celów ćwiczeń. Historia treningów pozostanie bez zmian.',
+ 'Keep timing after target': 'Kontynuuj pomiar po czasie docelowym',
+ 'Timed sets continue up to 15 extra minutes. Tap Done to log the actual duration.': 'Serie na czas trwają do 15 dodatkowych minut. Stuknij Gotowe, aby zapisać rzeczywisty czas.',
+ 'Edit workout': 'Edytuj trening',
+ 'Workout updated': 'Trening zaktualizowany',
+ 'Save workout changes?': 'Zapisać zmiany treningu?',
+ 'Save your edits to this workout, or keep the original record.': 'Zapisz zmiany w tym treningu albo zachowaj oryginalny zapis.',
+ 'Save changes': 'Zapisz zmiany',
+ "Don't save": 'Nie zapisuj',
+ 'Keep editing': 'Kontynuuj edycję',
+ 'This workout was deleted on another device. Your edits are still here.': 'Ten trening usunięto na innym urządzeniu. Twoje zmiany nadal są tutaj.',
+ 'This workout changed on another device. Your edits are still here.': 'Ten trening zmieniono na innym urządzeniu. Twoje zmiany nadal są tutaj.',
+ 'Close editor': 'Zamknij edytor',
+ 'Editing a saved workout. Date and duration stay unchanged.': 'Edytujesz zapisany trening. Data i czas trwania pozostaną bez zmian.',
}
diff --cc frontend/src/locales/pt-BR.js
index 269d9d218,fdb9e4c7f..dec0b40eb
--- a/frontend/src/locales/pt-BR.js
+++ b/frontend/src/locales/pt-BR.js
@@@ -673,53 -672,17 +673,64 @@@ export const PT_BR_OVERRIDES =
'Download & Install': 'Baixar e instalar',
'Starting download…': 'Iniciando download…',
'Downloading update…': 'Baixando atualização…',
+ 'This phone is not connected to a server.': 'Este celular não está conectado a nenhum servidor.',
+ // --- connection indicator, Server & sync, changes not on the server yet ---
+ 'Waiting to sync': 'Aguardando sincronização',
+ 'Offline — the server cannot be reached': 'Offline — não é possível acessar o servidor',
+ 'Your server’s address answered with something other than openGym (HTTP {0}). Your changes are kept here.': 'O endereço do seu servidor respondeu com algo que não é o openGym (HTTP {0}). Suas alterações ficam aqui.',
+ 'Your server answered with an error (HTTP {0}). Your changes are kept here.': 'Seu servidor respondeu com um erro (HTTP {0}). Suas alterações ficam aqui.',
+ 'Your server no longer accepts this browser. Your changes are kept here.': 'Seu servidor não aceita mais este navegador. Suas alterações ficam aqui.',
+ 'This phone is no longer paired with your server. Your changes are kept here.': 'Este celular não está mais pareado com seu servidor. Suas alterações ficam aqui.',
+ 'The server refuses this phone': 'O servidor recusa este celular',
+ 'Your server no longer accepts this phone. Your changes are kept here.': 'Seu servidor não aceita mais este celular. Suas alterações ficam aqui.',
+ 'On this phone only — not connected to a server': 'Só neste celular — sem conexão com nenhum servidor',
+ 'Pair again': 'Parear de novo',
+ 'Sign in': 'Entrar',
+ 'Disconnect anyway': 'Desconectar mesmo assim',
+ 'Sign out anyway': 'Sair mesmo assim',
+ 'Could not keep a copy of the changes on this device — nothing was removed.': 'Não foi possível manter uma cópia das alterações neste dispositivo — nada foi removido.',
+ 'Not everything is on your server yet': 'Seu servidor ainda não tem tudo',
+ 'Not on your server yet: {0}': 'Faltando no seu servidor: {0}',
+ 'Some changes on this device have not reached your server.': 'Algumas alterações neste dispositivo ainda não chegaram ao seu servidor.',
+ 'Try again, or export a backup first. Going ahead anyway keeps a copy of these changes on this device until it connects to this server as this account again — then they are added back.': 'Tente de novo ou exporte um backup antes. Se continuar mesmo assim, uma cópia dessas alterações fica neste dispositivo até ele se conectar de novo a este servidor com esta conta — aí elas são adicionadas de volta.',
+ 'Syncing…': 'Sincronizando…',
+ 'Try again': 'Tentar novamente',
+ 'Signed in as {0}': 'Conectado como {0}',
+ 'Your changes are kept here, and merged into your account once it is paired again.': 'Suas alterações ficam aqui e são incorporadas à sua conta assim que o celular for pareado de novo.',
+ 'Your changes are kept here, and merged into your account once you are signed in again.': 'Suas alterações ficam aqui e são incorporadas à sua conta assim que você entrar de novo.',
+ 'Changes kept for {0}': 'Alterações mantidas para {0}',
+ 'Added back when this device connects as that account again.': 'São adicionadas de volta quando este dispositivo se conectar de novo com essa conta.',
+ 'The changes your server has not seen are kept on this device, and added back when it connects as this account again.': 'As alterações que seu servidor ainda não tem ficam neste dispositivo e são adicionadas de volta quando ele se conectar de novo com esta conta.',
+ 'This phone switches back to local-only and its copy of your account is removed. First it checks that your server has every change — if not, you choose what happens to them.': 'Este celular volta para o modo somente local e a cópia da sua conta é removida dele. Antes é verificado se o seu servidor tem todas as alterações — se não tiver, você escolhe o que acontece com elas.',
+ 'Your data is removed from this browser; your profile on the server keeps it. First it checks that the server has every change — if not, you choose what happens to them.': 'Seus dados são removidos deste navegador; seu perfil no servidor os mantém. Antes é verificado se o servidor tem todas as alterações — se não tiver, você escolhe o que acontece com elas.',
+ 'Signs this profile out on every device, including this one. Phones paired with it are disconnected and have to be paired again. Your passkeys keep working — sign in with them again anytime.': 'Encerra a sessão deste perfil em todos os dispositivos, incluindo este. Os celulares pareados com ele são desconectados e precisam ser pareados de novo. Suas chaves de acesso continuam funcionando — entre com elas de novo quando quiser.',
+ 'Open Settings → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'No seu site openGym em um navegador, abra Configurações → “Parear o aplicativo” e digite o novo código mostrado lá. O que este celular manteve é incorporado à sua conta.',
+ // plan vs session (#275, #216) — pt-PT's "planeadas", "registado" and tu-forms read as
+ // Portugal here; "Plano: {0}" and "hoje {0}" are shared and inherit
+ 'Planned sessions start from': 'Ponto de partida das sessões planejadas',
+ 'The routine’s sets and reps. Your history decides the weight.': 'As séries e repetições da rotina. Seu histórico decide o peso.',
+ 'Your last session': 'Sua última sessão',
+ 'The reps you logged last time in that routine, carried over.': 'São mantidas as repetições que você registrou da última vez nessa rotina.',
+ 'Plan changed — starting from your new target.': 'Plano alterado — você começa pela sua nova meta.',
+ 'First time in this routine — starting from its own target.': 'Primeira vez nesta rotina — você começa pela meta dela.',
+ 'No weight logged last time — enter what you lift and progression takes it from there.': 'Nenhum peso registrado na última vez — informe quanto você levanta e a progressão segue a partir daí.',
+ 'reps from your last session': 'reps da sua última sessão',
+ 'Save as routine?': 'Salvar como rotina?',
+ 'Save as routine': 'Salvar como rotina',
+ 'Create an independent routine from these exercise targets. Your workout history is kept.': 'Criar uma rotina independente a partir destes objetivos. O histórico de treinos será mantido.',
+ 'Keep timing after target': 'Continuar contando após o objetivo',
+ 'Timed sets continue up to 15 extra minutes. Tap Done to log the actual duration.': 'As séries cronometradas continuam por até 15 minutos extras. Toque em Concluído para registrar a duração real.',
+ 'Edit workout': 'Editar treino',
+ 'Workout updated': 'Treino atualizado',
+ 'Save workout changes?': 'Salvar alterações do treino?',
+ 'Save your edits to this workout, or keep the original record.': 'Salve as alterações deste treino ou mantenha o registro original.',
+ 'Save changes': 'Salvar alterações',
+ "Don't save": 'Não salvar',
+ 'Keep editing': 'Continuar editando',
+ 'This workout was deleted on another device. Your edits are still here.': 'Este treino foi excluído em outro dispositivo. Suas alterações continuam aqui.',
+ 'This workout changed on another device. Your edits are still here.': 'Este treino foi alterado em outro dispositivo. Suas alterações continuam aqui.',
+ 'Close editor': 'Fechar editor',
+ 'Editing a saved workout. Date and duration stay unchanged.': 'Você está editando um treino salvo. A data e a duração permanecem iguais.',
}
export default { ...pt, ...PT_BR_OVERRIDES }
diff --cc frontend/src/locales/pt.js
index 7f420d3d4,bce4118ec..724de4172
--- a/frontend/src/locales/pt.js
+++ b/frontend/src/locales/pt.js
@@@ -1256,61 -1250,15 +1256,72 @@@ export default
'already added': 'já adicionado',
'no exercises': 'sem exercícios',
'Pick equipment': 'Escolher equipamento',
+ // --- connection indicator, Server & sync, changes not on the server yet ---
+ 'All synced': 'Tudo sincronizado',
+ 'Waiting to sync': 'À espera de sincronizar',
+ 'Offline — the server cannot be reached': 'Offline — não é possível chegar ao servidor',
+ 'Not an openGym answer (HTTP {0})': 'Não é uma resposta do openGym (HTTP {0})',
+ 'Your server’s address answered with something other than openGym (HTTP {0}). Your changes are kept here.': 'O endereço do teu servidor respondeu com algo que não é o openGym (HTTP {0}). As tuas alterações ficam aqui.',
+ 'Server error (HTTP {0})': 'Erro do servidor (HTTP {0})',
+ 'Your server answered with an error (HTTP {0}). Your changes are kept here.': 'O teu servidor respondeu com um erro (HTTP {0}). As tuas alterações ficam aqui.',
+ 'The server refuses this browser': 'O servidor recusa este navegador',
+ 'Your server no longer accepts this browser. Your changes are kept here.': 'O teu servidor já não aceita este navegador. As tuas alterações ficam aqui.',
+ 'This phone is no longer paired with your server. Your changes are kept here.': 'Este telemóvel já não está emparelhado com o teu servidor. As tuas alterações ficam aqui.',
+ 'The server refuses this phone': 'O servidor recusa este telemóvel',
+ 'Your server no longer accepts this phone. Your changes are kept here.': 'O teu servidor já não aceita este telemóvel. As tuas alterações ficam aqui.',
+ 'On this phone only — not connected to a server': 'Só neste telemóvel — sem ligação a nenhum servidor',
+ 'Pair again': 'Emparelhar de novo',
+ 'Sign in': 'Iniciar sessão',
+ 'Disconnect anyway': 'Desligar mesmo assim',
+ 'Sign out anyway': 'Terminar sessão mesmo assim',
+ 'Could not keep a copy of the changes on this device — nothing was removed.': 'Não foi possível guardar uma cópia das alterações neste dispositivo — nada foi removido.',
+ 'Not everything is on your server yet': 'O teu servidor ainda não tem tudo',
+ 'Not on your server yet: {0}': 'Ainda em falta no teu servidor: {0}',
+ 'Some changes on this device have not reached your server.': 'Algumas alterações neste dispositivo ainda não chegaram ao teu servidor.',
+ 'Try again, or export a backup first. Going ahead anyway keeps a copy of these changes on this device until it connects to this server as this account again — then they are added back.': 'Tenta de novo, ou exporta primeiro uma cópia. Se continuares mesmo assim, fica uma cópia destas alterações neste dispositivo até ele voltar a ligar-se a este servidor com esta conta — aí são novamente adicionadas.',
+ 'Syncing…': 'A sincronizar…',
+ 'Try again': 'Tentar de novo',
+ 'Last synced: {0}': 'Última sincronização: {0}',
+ 'Not synced with this server yet': 'Ainda não sincronizado com este servidor',
+ 'Server & sync': 'Servidor e sincronização',
+ 'Signed in as {0}': 'Sessão iniciada como {0}',
+ 'Sync now': 'Sincronizar agora',
+ 'Your changes are kept here, and merged into your account once it is paired again.': 'As tuas alterações ficam aqui e são integradas na tua conta assim que o telemóvel voltar a ser emparelhado.',
+ 'Your changes are kept here, and merged into your account once you are signed in again.': 'As tuas alterações ficam aqui e são integradas na tua conta assim que voltares a iniciar sessão.',
+ 'Changes kept for {0}': 'Alterações guardadas para {0}',
+ 'Added back when this device connects as that account again.': 'São novamente adicionadas quando este dispositivo voltar a ligar-se com essa conta.',
+ 'The changes your server has not seen are kept on this device, and added back when it connects as this account again.': 'As alterações que o teu servidor ainda não tem ficam guardadas neste dispositivo e são novamente adicionadas quando ele voltar a ligar-se com esta conta.',
+ 'This phone switches back to local-only and its copy of your account is removed. First it checks that your server has every change — if not, you choose what happens to them.': 'Este telemóvel volta ao modo local e a cópia da tua conta é removida dele. Primeiro verifica-se se o teu servidor tem todas as alterações — se não tiver, escolhes o que lhes acontece.',
+ 'Your data is removed from this browser; your profile on the server keeps it. First it checks that the server has every change — if not, you choose what happens to them.': 'Os teus dados são removidos deste navegador; o teu perfil no servidor mantém-nos. Primeiro verifica-se se o servidor tem todas as alterações — se não tiver, escolhes o que lhes acontece.',
+ 'Signs this profile out on every device, including this one. Phones paired with it are disconnected and have to be paired again. Your passkeys keep working — sign in with them again anytime.': 'Termina a sessão deste perfil em todos os dispositivos, incluindo este. Os telemóveis emparelhados com ele são desligados e têm de ser emparelhados de novo. As tuas passkeys continuam a funcionar — entra de novo com elas quando quiseres.',
+ 'Open Settings → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Abre Definições → «Emparelhar a app móvel» no teu site openGym num navegador e introduz o novo código apresentado aí. O que este telemóvel guardou é integrado na tua conta.',
+ '{0} change': '{0} alteração',
+ '{0} changes': '{0} alterações',
+ // --- plan vs session: the routine's own reps, per-routine progress (#275, #216) ---
+ 'Planned sessions start from': 'Ponto de partida das sessões planeadas',
+ 'The routine’s sets and reps. Your history decides the weight.': 'As séries e repetições da rotina. O teu histórico decide o peso.',
+ 'Your last session': 'A tua última sessão',
+ 'The reps you logged last time in that routine, carried over.': 'Mantêm-se as repetições que registaste da última vez nessa rotina.',
+ 'Plan changed — starting from your new target.': 'Plano alterado — começas a partir do teu novo objetivo.',
+ 'First time in this routine — starting from its own target.': 'Primeira vez nesta rotina — começas a partir do objetivo dela.',
+ 'No weight logged last time — enter what you lift and progression takes it from there.': 'Nenhum peso registado da última vez — introduz o que levantas e a progressão segue a partir daí.',
+ 'Plan: {0}': 'Plano: {0}',
+ 'today {0}': 'hoje {0}',
+ 'reps from your last session': 'reps da tua última sessão',
+ 'Save as routine?': 'Guardar como rotina?',
+ 'Save as routine': 'Guardar como rotina',
+ 'Create an independent routine from these exercise targets. Your workout history is kept.': 'Criar uma rotina independente a partir destes objetivos. O teu histórico de treinos é mantido.',
+ 'Keep timing after target': 'Continuar a contar após o objetivo',
+ 'Timed sets continue up to 15 extra minutes. Tap Done to log the actual duration.': 'As séries cronometradas continuam até mais 15 minutos. Toca em Concluído para registar a duração real.',
+ 'Edit workout': 'Editar treino',
+ 'Workout updated': 'Treino atualizado',
+ 'Save workout changes?': 'Guardar alterações do treino?',
+ 'Save your edits to this workout, or keep the original record.': 'Guarda as alterações deste treino ou mantém o registo original.',
+ 'Save changes': 'Guardar alterações',
+ "Don't save": 'Não guardar',
+ 'Keep editing': 'Continuar a editar',
+ 'This workout was deleted on another device. Your edits are still here.': 'Este treino foi eliminado noutro dispositivo. As tuas alterações continuam aqui.',
+ 'This workout changed on another device. Your edits are still here.': 'Este treino foi alterado noutro dispositivo. As tuas alterações continuam aqui.',
+ 'Close editor': 'Fechar editor',
+ 'Editing a saved workout. Date and duration stay unchanged.': 'Estás a editar um treino guardado. A data e a duração permanecem inalteradas.',
}
diff --cc frontend/src/locales/ru.js
index e03778112,3eae44190..3ea97ed4c
--- a/frontend/src/locales/ru.js
+++ b/frontend/src/locales/ru.js
@@@ -1256,61 -1250,15 +1256,72 @@@ export default
'already added': 'уже добавлено',
'no exercises': 'нет упражнений',
'Pick equipment': 'Выбрать оборудование',
+ // --- connection indicator, Server & sync, changes not on the server yet ---
+ 'All synced': 'Всё синхронизировано',
+ 'Waiting to sync': 'Ожидает синхронизации',
+ 'Offline — the server cannot be reached': 'Офлайн — сервер недоступен',
+ 'Not an openGym answer (HTTP {0})': 'Это не ответ openGym (HTTP {0})',
+ 'Your server’s address answered with something other than openGym (HTTP {0}). Your changes are kept here.': 'Адрес вашего сервера ответил не как openGym (HTTP {0}). Ваши изменения остаются здесь.',
+ 'Server error (HTTP {0})': 'Ошибка сервера (HTTP {0})',
+ 'Your server answered with an error (HTTP {0}). Your changes are kept here.': 'Ваш сервер ответил ошибкой (HTTP {0}). Ваши изменения остаются здесь.',
+ 'The server refuses this browser': 'Сервер отклоняет этот браузер',
+ 'Your server no longer accepts this browser. Your changes are kept here.': 'Ваш сервер больше не принимает этот браузер. Ваши изменения остаются здесь.',
+ 'This phone is no longer paired with your server. Your changes are kept here.': 'Этот телефон больше не сопряжён с вашим сервером. Ваши изменения остаются здесь.',
+ 'The server refuses this phone': 'Сервер отклоняет этот телефон',
+ 'Your server no longer accepts this phone. Your changes are kept here.': 'Ваш сервер больше не принимает этот телефон. Ваши изменения остаются здесь.',
+ 'On this phone only — not connected to a server': 'Только на этом телефоне — без подключения к серверу',
+ 'Pair again': 'Сопрячь заново',
+ 'Sign in': 'Войти',
+ 'Disconnect anyway': 'Всё равно отключить',
+ 'Sign out anyway': 'Всё равно выйти',
+ 'Could not keep a copy of the changes on this device — nothing was removed.': 'Не удалось сохранить копию изменений на этом устройстве — ничего не удалено.',
+ 'Not everything is on your server yet': 'На вашем сервере ещё не всё',
+ 'Not on your server yet: {0}': 'Ещё не на вашем сервере — {0}',
+ 'Some changes on this device have not reached your server.': 'Некоторые изменения на этом устройстве ещё не дошли до вашего сервера.',
+ 'Try again, or export a backup first. Going ahead anyway keeps a copy of these changes on this device until it connects to this server as this account again — then they are added back.': 'Повторите попытку или сначала экспортируйте резервную копию. Если всё равно продолжить, копия этих изменений останется на этом устройстве, пока оно снова не подключится к этому серверу с этим аккаунтом, — тогда они будут добавлены обратно.',
+ 'Syncing…': 'Синхронизация…',
+ 'Try again': 'Повторить',
+ 'Last synced: {0}': 'Последняя синхронизация: {0}',
+ 'Not synced with this server yet': 'Ещё не синхронизировано с этим сервером',
+ 'Server & sync': 'Сервер и синхронизация',
+ 'Signed in as {0}': 'Вы вошли как {0}',
+ 'Sync now': 'Синхронизировать сейчас',
+ 'Your changes are kept here, and merged into your account once it is paired again.': 'Ваши изменения остаются здесь и будут объединены с вашим аккаунтом, как только телефон снова будет сопряжён.',
+ 'Your changes are kept here, and merged into your account once you are signed in again.': 'Ваши изменения остаются здесь и будут объединены с вашим аккаунтом, как только вы снова войдёте.',
+ 'Changes kept for {0}': 'Сохранённые изменения для {0}',
+ 'Added back when this device connects as that account again.': 'Будут добавлены обратно, когда это устройство снова подключится с этим аккаунтом.',
+ 'The changes your server has not seen are kept on this device, and added back when it connects as this account again.': 'Изменения, которых ещё нет на вашем сервере, сохраняются на этом устройстве и будут добавлены обратно, когда оно снова подключится с этим аккаунтом.',
+ 'This phone switches back to local-only and its copy of your account is removed. First it checks that your server has every change — if not, you choose what happens to them.': 'Этот телефон вернётся в локальный режим, а копия вашего аккаунта будет с него удалена. Сначала проверяется, что на вашем сервере есть все изменения, — если нет, вы сами решаете, что с ними делать.',
+ 'Your data is removed from this browser; your profile on the server keeps it. First it checks that the server has every change — if not, you choose what happens to them.': 'Ваши данные будут удалены из этого браузера; ваш профиль на сервере их сохранит. Сначала проверяется, что на сервере есть все изменения, — если нет, вы сами решаете, что с ними делать.',
+ 'Signs this profile out on every device, including this one. Phones paired with it are disconnected and have to be paired again. Your passkeys keep working — sign in with them again anytime.': 'Выполняет выход из этого профиля на всех устройствах, включая это. Сопряжённые с ним телефоны отключаются, и их нужно будет сопрячь заново. Ваши ключи доступа продолжают работать — входите с ними снова в любое время.',
+ 'Open Settings → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Откройте Настройки → «Сопряжение мобильного приложения» на своём сайте openGym в браузере и введите показанный там новый код. То, что сохранил этот телефон, будет объединено с вашим аккаунтом.',
+ '{0} change': '{0} изменение',
+ '{0} changes': 'изменений: {0}',
+ // --- plan vs session: the routine's own reps, per-routine progress (#275, #216) ---
+ 'Planned sessions start from': 'Основа запланированных тренировок',
+ 'The routine’s sets and reps. Your history decides the weight.': 'Подходы и повторения из программы. Вес определяет ваша история.',
+ 'Your last session': 'Ваша последняя тренировка',
+ 'The reps you logged last time in that routine, carried over.': 'Повторения, записанные в прошлый раз в этой программе, переносятся.',
+ 'Plan changed — starting from your new target.': 'План изменён — начинаем с новой цели.',
+ 'First time in this routine — starting from its own target.': 'Впервые в этой программе — начинаем с её собственной цели.',
+ 'No weight logged last time — enter what you lift and progression takes it from there.': 'В прошлый раз вес не был записан — укажите, с каким весом работаете, и прогрессия продолжится оттуда.',
+ 'Plan: {0}': 'План: {0}',
+ 'today {0}': 'сегодня {0}',
+ 'reps from your last session': 'повт. с прошлой тренировки',
+ 'Save as routine?': 'Сохранить как тренировку?',
+ 'Save as routine': 'Сохранить как тренировку',
+ 'Create an independent routine from these exercise targets. Your workout history is kept.': 'Создать отдельную тренировку из этих целей. История тренировок сохранится.',
+ 'Keep timing after target': 'Продолжать отсчёт после цели',
+ 'Timed sets continue up to 15 extra minutes. Tap Done to log the actual duration.': 'Подходы на время продолжаются ещё до 15 минут. Нажмите «Готово», чтобы записать фактическую длительность.',
+ 'Edit workout': 'Редактировать тренировку',
+ 'Workout updated': 'Тренировка обновлена',
+ 'Save workout changes?': 'Сохранить изменения тренировки?',
+ 'Save your edits to this workout, or keep the original record.': 'Сохраните изменения этой тренировки или оставьте исходную запись.',
+ 'Save changes': 'Сохранить изменения',
+ "Don't save": 'Не сохранять',
+ 'Keep editing': 'Продолжить редактирование',
+ 'This workout was deleted on another device. Your edits are still here.': 'Эта тренировка удалена на другом устройстве. Ваши изменения всё ещё здесь.',
+ 'This workout changed on another device. Your edits are still here.': 'Эта тренировка изменена на другом устройстве. Ваши изменения всё ещё здесь.',
+ 'Close editor': 'Закрыть редактор',
+ 'Editing a saved workout. Date and duration stay unchanged.': 'Вы редактируете сохранённую тренировку. Дата и длительность не изменятся.',
}
diff --cc frontend/src/locales/th.js
index 2f04b84dd,fac7404c2..e38e1b9d5
--- a/frontend/src/locales/th.js
+++ b/frontend/src/locales/th.js
@@@ -1267,61 -1261,15 +1267,72 @@@ export default
'already added': 'เพิ่มแล้ว',
'no exercises': 'ไม่มีท่าออกกำลังกาย',
'Pick equipment': 'เลือกอุปกรณ์',
+ // --- connection indicator, Server & sync, changes not on the server yet ---
+ 'All synced': 'ซิงค์ครบแล้ว',
+ 'Waiting to sync': 'รอซิงค์',
+ 'Offline — the server cannot be reached': 'ออฟไลน์ — เชื่อมต่อเซิร์ฟเวอร์ไม่ได้',
+ 'Not an openGym answer (HTTP {0})': 'ไม่ใช่การตอบกลับของ openGym (HTTP {0})',
+ 'Your server’s address answered with something other than openGym (HTTP {0}). Your changes are kept here.': 'ที่อยู่เซิร์ฟเวอร์ของคุณตอบกลับด้วยสิ่งที่ไม่ใช่ openGym (HTTP {0}) การเปลี่ยนแปลงของคุณยังเก็บไว้ที่นี่',
+ 'Server error (HTTP {0})': 'เซิร์ฟเวอร์ผิดพลาด (HTTP {0})',
+ 'Your server answered with an error (HTTP {0}). Your changes are kept here.': 'เซิร์ฟเวอร์ของคุณตอบกลับด้วยข้อผิดพลาด (HTTP {0}) การเปลี่ยนแปลงของคุณยังเก็บไว้ที่นี่',
+ 'The server refuses this browser': 'เซิร์ฟเวอร์ปฏิเสธเบราว์เซอร์นี้',
+ 'Your server no longer accepts this browser. Your changes are kept here.': 'เซิร์ฟเวอร์ของคุณไม่ยอมรับเบราว์เซอร์นี้อีกต่อไป การเปลี่ยนแปลงของคุณยังเก็บไว้ที่นี่',
+ 'This phone is no longer paired with your server. Your changes are kept here.': 'โทรศัพท์เครื่องนี้ไม่ได้จับคู่กับเซิร์ฟเวอร์ของคุณแล้ว การเปลี่ยนแปลงของคุณยังเก็บไว้ที่นี่',
+ 'The server refuses this phone': 'เซิร์ฟเวอร์ปฏิเสธโทรศัพท์เครื่องนี้',
+ 'Your server no longer accepts this phone. Your changes are kept here.': 'เซิร์ฟเวอร์ของคุณไม่ยอมรับโทรศัพท์เครื่องนี้อีกต่อไป การเปลี่ยนแปลงของคุณยังเก็บไว้ที่นี่',
+ 'On this phone only — not connected to a server': 'ในโทรศัพท์เครื่องนี้เท่านั้น — ไม่ได้เชื่อมต่อกับเซิร์ฟเวอร์',
+ 'Pair again': 'จับคู่ใหม่',
+ 'Sign in': 'เข้าสู่ระบบ',
+ 'Disconnect anyway': 'ยกเลิกการเชื่อมต่อเลย',
+ 'Sign out anyway': 'ออกจากระบบเลย',
+ 'Could not keep a copy of the changes on this device — nothing was removed.': 'เก็บสำเนาการเปลี่ยนแปลงไว้ในอุปกรณ์นี้ไม่ได้ — ไม่มีสิ่งใดถูกลบ',
+ 'Not everything is on your server yet': 'เซิร์ฟเวอร์ของคุณยังมีข้อมูลไม่ครบ',
+ 'Not on your server yet: {0}': 'ยังไม่อยู่บนเซิร์ฟเวอร์: {0}',
+ 'Some changes on this device have not reached your server.': 'การเปลี่ยนแปลงบางอย่างในอุปกรณ์นี้ยังไปไม่ถึงเซิร์ฟเวอร์ของคุณ',
+ 'Try again, or export a backup first. Going ahead anyway keeps a copy of these changes on this device until it connects to this server as this account again — then they are added back.': 'ลองอีกครั้ง หรือส่งออกข้อมูลสำรองก่อน หากดำเนินการต่อ สำเนาของการเปลี่ยนแปลงเหล่านี้จะอยู่ในอุปกรณ์นี้จนกว่าจะเชื่อมต่อกับเซิร์ฟเวอร์นี้ด้วยบัญชีนี้อีกครั้ง — แล้วจะถูกเพิ่มกลับเข้าไป',
+ 'Syncing…': 'กำลังซิงค์…',
+ 'Try again': 'ลองอีกครั้ง',
+ 'Last synced: {0}': 'ซิงค์ล่าสุด: {0}',
+ 'Not synced with this server yet': 'ยังไม่เคยซิงค์กับเซิร์ฟเวอร์นี้',
+ 'Server & sync': 'เซิร์ฟเวอร์และการซิงค์',
+ 'Signed in as {0}': 'เข้าสู่ระบบในชื่อ {0}',
+ 'Sync now': 'ซิงค์ตอนนี้',
+ 'Your changes are kept here, and merged into your account once it is paired again.': 'การเปลี่ยนแปลงของคุณเก็บไว้ที่นี่ และจะรวมเข้ากับบัญชีเมื่อจับคู่โทรศัพท์อีกครั้ง',
+ 'Your changes are kept here, and merged into your account once you are signed in again.': 'การเปลี่ยนแปลงของคุณเก็บไว้ที่นี่ และจะรวมเข้ากับบัญชีเมื่อคุณเข้าสู่ระบบอีกครั้ง',
+ 'Changes kept for {0}': 'การเปลี่ยนแปลงที่เก็บไว้ของ {0}',
+ 'Added back when this device connects as that account again.': 'จะถูกเพิ่มกลับเมื่ออุปกรณ์นี้เชื่อมต่อด้วยบัญชีนั้นอีกครั้ง',
+ 'The changes your server has not seen are kept on this device, and added back when it connects as this account again.': 'การเปลี่ยนแปลงที่เซิร์ฟเวอร์ของคุณยังไม่มีจะเก็บไว้ในอุปกรณ์นี้ และจะถูกเพิ่มกลับเมื่อเชื่อมต่อด้วยบัญชีนี้อีกครั้ง',
+ 'This phone switches back to local-only and its copy of your account is removed. First it checks that your server has every change — if not, you choose what happens to them.': 'โทรศัพท์เครื่องนี้จะกลับไปใช้งานแบบเก็บข้อมูลในเครื่อง และสำเนาบัญชีของคุณจะถูกลบออก ก่อนอื่นจะตรวจว่าเซิร์ฟเวอร์ของคุณมีการเปลี่ยนแปลงครบทุกอย่าง — ถ้าไม่ครบ คุณเลือกได้ว่าจะทำอย่างไรกับมัน',
+ 'Your data is removed from this browser; your profile on the server keeps it. First it checks that the server has every change — if not, you choose what happens to them.': 'ข้อมูลของคุณจะถูกลบออกจากเบราว์เซอร์นี้ โปรไฟล์บนเซิร์ฟเวอร์ยังเก็บไว้ ก่อนอื่นจะตรวจว่าเซิร์ฟเวอร์มีการเปลี่ยนแปลงครบทุกอย่าง — ถ้าไม่ครบ คุณเลือกได้ว่าจะทำอย่างไรกับมัน',
+ 'Signs this profile out on every device, including this one. Phones paired with it are disconnected and have to be paired again. Your passkeys keep working — sign in with them again anytime.': 'ออกจากระบบโปรไฟล์นี้ในทุกอุปกรณ์ รวมถึงเครื่องนี้ โทรศัพท์ที่จับคู่ไว้จะถูกตัดการเชื่อมต่อและต้องจับคู่ใหม่ พาสคีย์ของคุณยังใช้ได้ — เข้าสู่ระบบด้วยพาสคีย์ได้ทุกเมื่อ',
+ 'Open Settings → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'เปิดการตั้งค่า → “จับคู่แอปมือถือ” บนเว็บไซต์ openGym ของคุณในเบราว์เซอร์ แล้วป้อนรหัสใหม่ที่แสดงไว้ที่นั่น สิ่งที่โทรศัพท์เครื่องนี้เก็บไว้จะรวมเข้ากับบัญชีของคุณ',
+ '{0} change': '{0} รายการ',
+ '{0} changes': '{0} รายการ',
+ // --- plan vs session: the routine's own reps, per-routine progress (#275, #216) ---
+ 'Planned sessions start from': 'จุดเริ่มต้นของเซสชันตามแผน',
+ 'The routine’s sets and reps. Your history decides the weight.': 'จำนวนเซ็ตและครั้งตามรูทีน ส่วนน้ำหนักขึ้นอยู่กับประวัติของคุณ',
+ 'Your last session': 'เซสชันล่าสุดของคุณ',
+ 'The reps you logged last time in that routine, carried over.': 'ใช้จำนวนครั้งที่บันทึกไว้ครั้งก่อนในรูทีนนั้นต่อ',
+ 'Plan changed — starting from your new target.': 'แผนเปลี่ยนแล้ว — เริ่มจากเป้าหมายใหม่ของคุณ',
+ 'First time in this routine — starting from its own target.': 'ครั้งแรกในรูทีนนี้ — เริ่มจากเป้าหมายของรูทีนเอง',
+ 'No weight logged last time — enter what you lift and progression takes it from there.': 'ครั้งก่อนไม่ได้บันทึกน้ำหนัก — กรอกน้ำหนักที่คุณยก แล้วการเพิ่มน้ำหนักจะเริ่มจากตรงนั้น',
+ 'Plan: {0}': 'แผน: {0}',
+ 'today {0}': 'วันนี้ {0}',
+ 'reps from your last session': 'จำนวนครั้งจากเซสชันล่าสุด',
+ 'Save as routine?': 'บันทึกเป็นรูทีนไหม',
+ 'Save as routine': 'บันทึกเป็นรูทีน',
+ 'Create an independent routine from these exercise targets. Your workout history is kept.': 'สร้างรูทีนอิสระจากเป้าหมายเหล่านี้ ประวัติการออกกำลังกายของคุณจะยังคงอยู่',
+ 'Keep timing after target': 'จับเวลาต่อหลังถึงเป้าหมาย',
+ 'Timed sets continue up to 15 extra minutes. Tap Done to log the actual duration.': 'เซ็ตแบบจับเวลาจะทำต่อได้อีกสูงสุด 15 นาที แตะ “เสร็จแล้ว” เพื่อบันทึกระยะเวลาจริง',
+ 'Edit workout': 'แก้ไขการออกกำลังกาย',
+ 'Workout updated': 'อัปเดตการออกกำลังกายแล้ว',
+ 'Save workout changes?': 'บันทึกการเปลี่ยนแปลงการออกกำลังกายไหม',
+ 'Save your edits to this workout, or keep the original record.': 'บันทึกการแก้ไขการออกกำลังกายนี้ หรือเก็บบันทึกเดิมไว้',
+ 'Save changes': 'บันทึกการเปลี่ยนแปลง',
+ "Don't save": 'ไม่บันทึก',
+ 'Keep editing': 'แก้ไขต่อ',
+ 'This workout was deleted on another device. Your edits are still here.': 'การออกกำลังกายนี้ถูกลบในอุปกรณ์อื่น การแก้ไขของคุณยังอยู่ที่นี่',
+ 'This workout changed on another device. Your edits are still here.': 'การออกกำลังกายนี้ถูกเปลี่ยนในอุปกรณ์อื่น การแก้ไขของคุณยังอยู่ที่นี่',
+ 'Close editor': 'ปิดตัวแก้ไข',
+ 'Editing a saved workout. Date and duration stay unchanged.': 'กำลังแก้ไขการออกกำลังกายที่บันทึกไว้ วันที่และระยะเวลาจะไม่เปลี่ยน',
}
diff --cc frontend/src/locales/tr.js
index ade3f488f,e22bf3f8d..c0b3f0923
--- a/frontend/src/locales/tr.js
+++ b/frontend/src/locales/tr.js
@@@ -1256,61 -1250,15 +1256,72 @@@ export default
'already added': 'zaten ekli',
'no exercises': 'egzersiz yok',
'Pick equipment': 'Ekipman seç',
+ // --- connection indicator, Server & sync, changes not on the server yet ---
+ 'All synced': 'Her şey eşitlendi',
+ 'Waiting to sync': 'Eşitlenmeyi bekliyor',
+ 'Offline — the server cannot be reached': 'Çevrimdışı — sunucuya ulaşılamıyor',
+ 'Not an openGym answer (HTTP {0})': 'openGym yanıtı değil (HTTP {0})',
+ 'Your server’s address answered with something other than openGym (HTTP {0}). Your changes are kept here.': 'Sunucunun adresi openGym dışında bir şeyle yanıt verdi (HTTP {0}). Değişikliklerin burada kalıyor.',
+ 'Server error (HTTP {0})': 'Sunucu hatası (HTTP {0})',
+ 'Your server answered with an error (HTTP {0}). Your changes are kept here.': 'Sunucun bir hatayla yanıt verdi (HTTP {0}). Değişikliklerin burada kalıyor.',
+ 'The server refuses this browser': 'Sunucu bu tarayıcıyı reddediyor',
+ 'Your server no longer accepts this browser. Your changes are kept here.': 'Sunucun bu tarayıcıyı artık kabul etmiyor. Değişikliklerin burada kalıyor.',
+ 'This phone is no longer paired with your server. Your changes are kept here.': 'Bu telefon artık sunucunla eşleşmiş değil. Değişikliklerin burada kalıyor.',
+ 'The server refuses this phone': 'Sunucu bu telefonu reddediyor',
+ 'Your server no longer accepts this phone. Your changes are kept here.': 'Sunucun bu telefonu artık kabul etmiyor. Değişikliklerin burada kalıyor.',
+ 'On this phone only — not connected to a server': 'Yalnızca bu telefonda — hiçbir sunucuya bağlı değil',
+ 'Pair again': 'Yeniden eşleştir',
+ 'Sign in': 'Giriş yap',
+ 'Disconnect anyway': 'Yine de bağlantıyı kes',
+ 'Sign out anyway': 'Yine de çıkış yap',
+ 'Could not keep a copy of the changes on this device — nothing was removed.': 'Değişikliklerin bir kopyası bu cihazda saklanamadı — hiçbir şey kaldırılmadı.',
+ 'Not everything is on your server yet': 'Sunucunda henüz her şey yok',
+ 'Not on your server yet: {0}': 'Henüz sunucunda değil: {0}',
+ 'Some changes on this device have not reached your server.': 'Bu cihazdaki bazı değişiklikler henüz sunucuna ulaşmadı.',
+ 'Try again, or export a backup first. Going ahead anyway keeps a copy of these changes on this device until it connects to this server as this account again — then they are added back.': 'Yeniden dene ya da önce bir yedek dışa aktar. Yine de devam edersen bu değişikliklerin bir kopyası, cihaz bu hesapla bu sunucuya yeniden bağlanana kadar bu cihazda kalır — sonra geri eklenir.',
+ 'Syncing…': 'Eşitleniyor…',
+ 'Try again': 'Yeniden dene',
+ 'Last synced: {0}': 'Son eşitleme: {0}',
+ 'Not synced with this server yet': 'Bu sunucuyla henüz eşitlenmedi',
+ 'Server & sync': 'Sunucu ve eşitleme',
+ 'Signed in as {0}': '{0} olarak giriş yapıldı',
+ 'Sync now': 'Şimdi eşitle',
+ 'Your changes are kept here, and merged into your account once it is paired again.': 'Değişikliklerin burada kalıyor ve telefon yeniden eşleştirilince hesabınla birleştirilecek.',
+ 'Your changes are kept here, and merged into your account once you are signed in again.': 'Değişikliklerin burada kalıyor ve yeniden giriş yapınca hesabınla birleştirilecek.',
+ 'Changes kept for {0}': '{0} için saklanan değişiklikler',
+ 'Added back when this device connects as that account again.': 'Bu cihaz o hesapla yeniden bağlandığında geri eklenir.',
+ 'The changes your server has not seen are kept on this device, and added back when it connects as this account again.': 'Sunucunun henüz görmediği değişiklikler bu cihazda saklanır ve cihaz bu hesapla yeniden bağlandığında geri eklenir.',
+ 'This phone switches back to local-only and its copy of your account is removed. First it checks that your server has every change — if not, you choose what happens to them.': 'Bu telefon yerel moda döner ve hesabının kopyası telefondan kaldırılır. Önce sunucunda her değişikliğin olup olmadığı kontrol edilir — yoksa onlara ne olacağını sen seçersin.',
+ 'Your data is removed from this browser; your profile on the server keeps it. First it checks that the server has every change — if not, you choose what happens to them.': 'Verilerin bu tarayıcıdan kaldırılır; sunucudaki profilin onları saklar. Önce sunucuda her değişikliğin olup olmadığı kontrol edilir — yoksa onlara ne olacağını sen seçersin.',
+ 'Signs this profile out on every device, including this one. Phones paired with it are disconnected and have to be paired again. Your passkeys keep working — sign in with them again anytime.': 'Bu profilin oturumunu bu cihaz dahil tüm cihazlarda kapatır. Bu profille eşleştirilmiş telefonların bağlantısı kesilir ve yeniden eşleştirilmeleri gerekir. Geçiş anahtarların çalışmaya devam eder — istediğin zaman onlarla yeniden giriş yap.',
+ 'Open Settings → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Bir tarayıcıda openGym sitende Ayarlar → “Mobil uygulamayı eşleştir”i aç ve orada gösterilen yeni kodu gir. Bu telefonun sakladıkları hesabınla birleştirilir.',
+ '{0} change': '{0} değişiklik',
+ '{0} changes': '{0} değişiklik',
+ // --- plan vs session: the routine's own reps, per-routine progress (#275, #216) ---
+ 'Planned sessions start from': 'Planlı seansların çıkış noktası',
+ 'The routine’s sets and reps. Your history decides the weight.': 'Rutinin setleri ve tekrarları. Ağırlığı geçmişin belirler.',
+ 'Your last session': 'Son seansın',
+ 'The reps you logged last time in that routine, carried over.': 'O rutinde geçen sefer kaydettiğin tekrarlar aynen aktarılır.',
+ 'Plan changed — starting from your new target.': 'Plan değişti — yeni hedefinden başlıyorsun.',
+ 'First time in this routine — starting from its own target.': 'Bu rutinde ilk kez — rutinin kendi hedefinden başlıyorsun.',
+ 'No weight logged last time — enter what you lift and progression takes it from there.': 'Geçen sefer ağırlık kaydedilmedi — kaldırdığın ağırlığı gir, ilerleme oradan devam etsin.',
+ 'Plan: {0}': 'Plan: {0}',
+ 'today {0}': 'bugün {0}',
+ 'reps from your last session': 'tekrarlar son seansından',
+ 'Save as routine?': 'Rutin olarak kaydedilsin mi?',
+ 'Save as routine': 'Rutin olarak kaydet',
+ 'Create an independent routine from these exercise targets. Your workout history is kept.': 'Bu egzersiz hedeflerinden bağımsız bir rutin oluştur. Antrenman geçmişin korunur.',
+ 'Keep timing after target': 'Hedeften sonra zamanlamayı sürdür',
+ 'Timed sets continue up to 15 extra minutes. Tap Done to log the actual duration.': 'Süreli setler en fazla 15 dakika daha devam eder. Gerçek süreyi kaydetmek için Bitti’ye dokunun.',
+ 'Edit workout': 'Antrenmanı düzenle',
+ 'Workout updated': 'Antrenman güncellendi',
+ 'Save workout changes?': 'Antrenman değişiklikleri kaydedilsin mi?',
+ 'Save your edits to this workout, or keep the original record.': 'Bu antrenmandaki düzenlemelerini kaydet veya özgün kaydı koru.',
+ 'Save changes': 'Değişiklikleri kaydet',
+ "Don't save": 'Kaydetme',
+ 'Keep editing': 'Düzenlemeye devam et',
+ 'This workout was deleted on another device. Your edits are still here.': 'Bu antrenman başka bir cihazda silindi. Düzenlemelerin hâlâ burada.',
+ 'This workout changed on another device. Your edits are still here.': 'Bu antrenman başka bir cihazda değiştirildi. Düzenlemelerin hâlâ burada.',
+ 'Close editor': 'Düzenleyiciyi kapat',
+ 'Editing a saved workout. Date and duration stay unchanged.': 'Kayıtlı bir antrenmanı düzenliyorsun. Tarih ve süre değişmeden kalır.',
}
diff --cc frontend/src/locales/zh.js
index 5b287221c,8993cbc41..ce312131c
--- a/frontend/src/locales/zh.js
+++ b/frontend/src/locales/zh.js
@@@ -1256,61 -1250,15 +1256,72 @@@ export default
'already added': '已添加',
'no exercises': '没有动作',
'Pick equipment': '选择器械',
+ // --- connection indicator, Server & sync, changes not on the server yet ---
+ 'All synced': '已全部同步',
+ 'Waiting to sync': '等待同步',
+ 'Offline — the server cannot be reached': '离线——无法连接服务器',
+ 'Not an openGym answer (HTTP {0})': '不是 openGym 的响应(HTTP {0})',
+ 'Your server’s address answered with something other than openGym (HTTP {0}). Your changes are kept here.': '你的服务器地址返回了不属于 openGym 的内容(HTTP {0})。你的更改保留在这里。',
+ 'Server error (HTTP {0})': '服务器错误(HTTP {0})',
+ 'Your server answered with an error (HTTP {0}). Your changes are kept here.': '你的服务器返回了错误(HTTP {0})。你的更改保留在这里。',
+ 'The server refuses this browser': '服务器拒绝了此浏览器',
+ 'Your server no longer accepts this browser. Your changes are kept here.': '你的服务器不再接受此浏览器。你的更改保留在这里。',
+ 'This phone is no longer paired with your server. Your changes are kept here.': '这部手机已不再与你的服务器配对。你的更改保留在这里。',
+ 'The server refuses this phone': '服务器拒绝了这部手机',
+ 'Your server no longer accepts this phone. Your changes are kept here.': '你的服务器不再接受这部手机。你的更改保留在这里。',
+ 'On this phone only — not connected to a server': '仅在这部手机上——未连接服务器',
+ 'Pair again': '重新配对',
+ 'Sign in': '登录',
+ 'Disconnect anyway': '仍然断开连接',
+ 'Sign out anyway': '仍然退出登录',
+ 'Could not keep a copy of the changes on this device — nothing was removed.': '无法在此设备上保留更改的副本——没有删除任何内容。',
+ 'Not everything is on your server yet': '你的服务器还没有全部内容',
+ 'Not on your server yet: {0}': '尚未到达服务器:{0}',
+ 'Some changes on this device have not reached your server.': '此设备上的部分更改尚未到达你的服务器。',
+ 'Try again, or export a backup first. Going ahead anyway keeps a copy of these changes on this device until it connects to this server as this account again — then they are added back.': '请重试,或先导出备份。如果仍然继续,这些更改的副本会保留在此设备上,直到它再次以此账号连接到此服务器——届时会重新加入。',
+ 'Syncing…': '正在同步…',
+ 'Try again': '重试',
+ 'Last synced: {0}': '上次同步:{0}',
+ 'Not synced with this server yet': '尚未与此服务器同步',
+ 'Server & sync': '服务器与同步',
+ 'Signed in as {0}': '已登录为 {0}',
+ 'Sync now': '立即同步',
+ 'Your changes are kept here, and merged into your account once it is paired again.': '你的更改保留在这里,重新配对后会合并到你的账号。',
+ 'Your changes are kept here, and merged into your account once you are signed in again.': '你的更改保留在这里,重新登录后会合并到你的账号。',
+ 'Changes kept for {0}': '为 {0} 保留的更改',
+ 'Added back when this device connects as that account again.': '此设备再次以该账号连接时会重新加入。',
+ 'The changes your server has not seen are kept on this device, and added back when it connects as this account again.': '服务器尚未收到的更改会保留在此设备上,并在它再次以此账号连接时重新加入。',
+ 'This phone switches back to local-only and its copy of your account is removed. First it checks that your server has every change — if not, you choose what happens to them.': '这部手机将切换回仅本地模式,并删除其中的账号副本。会先检查你的服务器是否已有全部更改——如果没有,由你决定如何处理。',
+ 'Your data is removed from this browser; your profile on the server keeps it. First it checks that the server has every change — if not, you choose what happens to them.': '你的数据将从此浏览器中删除;服务器上的个人资料会保留它们。会先检查服务器是否已有全部更改——如果没有,由你决定如何处理。',
+ 'Signs this profile out on every device, including this one. Phones paired with it are disconnected and have to be paired again. Your passkeys keep working — sign in with them again anytime.': '在所有设备(包括此设备)上退出此个人资料。与它配对的手机会断开连接,需要重新配对。你的通行密钥仍然有效——随时可以用它们重新登录。',
+ 'Open Settings → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': '在浏览器中打开你的 openGym 网站的设置 →“配对手机应用”,然后输入那里显示的新配对码。这部手机保留的内容会合并到你的账号。',
+ '{0} change': '{0} 项更改',
+ '{0} changes': '{0} 项更改',
+ // --- plan vs session: the routine's own reps, per-routine progress (#275, #216) ---
+ 'Planned sessions start from': '计划训练的起点',
+ 'The routine’s sets and reps. Your history decides the weight.': '按训练日的组数和次数,重量由你的历史记录决定。',
+ 'Your last session': '你的上次训练',
+ 'The reps you logged last time in that routine, carried over.': '沿用你上次在该训练日记录的次数。',
+ 'Plan changed — starting from your new target.': '计划已更改——从你的新目标开始。',
+ 'First time in this routine — starting from its own target.': '第一次练这个训练日——从它自己的目标开始。',
+ 'No weight logged last time — enter what you lift and progression takes it from there.': '上次没有记录重量——填上你实际举的重量,渐进就从那里开始。',
+ 'Plan: {0}': '计划:{0}',
+ 'today {0}': '今天 {0}',
+ 'reps from your last session': '次数沿用上次训练',
+ 'Save as routine?': '要保存为训练计划吗?',
+ 'Save as routine': '保存为训练计划',
+ 'Create an independent routine from these exercise targets. Your workout history is kept.': '根据这些训练目标创建独立训练计划。你的训练记录会保留。',
+ 'Keep timing after target': '达到目标后继续计时',
+ 'Timed sets continue up to 15 extra minutes. Tap Done to log the actual duration.': '计时组最多继续 15 分钟。点击“完成”记录实际时长。',
+ 'Edit workout': '编辑训练',
+ 'Workout updated': '训练已更新',
+ 'Save workout changes?': '保存训练更改?',
+ 'Save your edits to this workout, or keep the original record.': '保存对此训练的编辑,或保留原始记录。',
+ 'Save changes': '保存更改',
+ "Don't save": '不保存',
+ 'Keep editing': '继续编辑',
+ 'This workout was deleted on another device. Your edits are still here.': '此训练已在另一台设备上删除。你的编辑仍保留在这里。',
+ 'This workout changed on another device. Your edits are still here.': '此训练已在另一台设备上更改。你的编辑仍保留在这里。',
+ 'Close editor': '关闭编辑器',
+ 'Editing a saved workout. Date and duration stay unchanged.': '正在编辑已保存的训练。日期和时长保持不变。',
}
diff --cc frontend/src/sheets.jsx
index 057297905,187f8a565..9e24e0f32
--- a/frontend/src/sheets.jsx
+++ b/frontend/src/sheets.jsx
@@@ -35,10 -34,10 +35,11 @@@ import { nextUnfinishedUnit } from './l
import { swapActiveExercise } from './lib/active-exercise-swap.js'
import { useSheetKeyboard, useRevealActiveChip, tappable } from './lib/use-sheet-keyboard.js'
import { isFav, toggleFav, sortFavouritesFirst } from './lib/favourites.js'
-import { buildSessionEntries } from './lib/session-start.js'
+import { buildSessionEntries, buildPlannedEntry } from './lib/session-start.js'
import { buildCombinedEntries, deriveSessionName } from './lib/session-merge.js'
import { workoutsOn, backfillStart, backfillEnd, completeBackfill } from './lib/backfill.js'
+import { moveWorkout, sameWorkout, startTimeOf } from './lib/workout-date.js'
+ import { editCompletedSession } from './lib/session-edit.js'
const S = () => useStore.getState().S
const update = (...a) => useStore.getState().update(...a)
@@@ -1791,26 -1737,12 +1792,32 @@@ function WorkoutDetail({ w, close })
placeholder={t('How the session went as a whole.')}
onFocus={onNoteFocus} onChange={e => setNote(e.target.value)} onBlur={saveNote} />
<div style={{ height: 14 }} />
+ {st.active && <p className="small muted">{t('Finish the current workout first.')}</p>}
+ <Button icon="pencil" disabled={!!st.active} onClick={() => {
+ try { update(state => editCompletedSession(state, w.id)); close(); nav('/workout') }
+ catch (error) { toast(t(error.message)) }
+ }}>{t('Edit workout')}</Button>
+ <div style={{ height: 8 }} />
+ {/* The note lives in a textarea that only writes on blur, and moving the workout re-keys a
+ legacy record — so flush it first and stop the unmount hook writing it a second time. */}
+ <Button icon="calendar" style={{ marginBottom: 8 }} onClick={() => {
+ saveNote()
+ initial.current = latest.current.trim().slice(0, NOTE_MAX)
+ workoutDateSheet(w, close)
+ }}>{t('Change date & time')}</Button>
+ <Button icon="plus" onClick={() => confirmSheet({
+ title: t('Save as routine?'),
+ message: t('Create an independent routine from these exercise targets. Your workout history is kept.'),
+ confirmText: t('Save'),
+ onConfirm: () => {
+ let id
+ try { update(s => { id = saveSessionAsRoutine(s, w, w.name) }) }
+ catch (e) { toast(t(e.message)); return }
+ close()
+ nav('/plan/r/' + id)
+ }
+ })}>{t('Save as routine')}</Button>
+ <div style={{ height: 10 }} />
<Button variant="danger" onClick={() => confirmSheet({ title: t('Delete workout?'), message: t('This removes it from your history for good.'), confirmText: t('Delete'), danger: true, onConfirm: () => { update(s => { s.workouts = s.workouts.filter(x => x.id !== w.id) }); close(); toast(t('Workout deleted')) } })}>{t('Delete workout')}</Button>
</>
}
diff --cc frontend/src/store/useStore.js
index f0675b81e,ec8606465..5e72081bc
--- a/frontend/src/store/useStore.js
+++ b/frontend/src/store/useStore.js
@@@ -5,11 -5,10 +5,12 @@@ import { t } from '../lib/i18n.js
import { registerCustom } from '../lib/exercises.js'
import { DEMO, DEMO_SEEDED } from '../lib/demo.js'
import { guestAllowed } from '../lib/guest.js'
-import { MOBILE, initReminderSync, nativeLoad, nativeSave, onAppActive, syncReminder, writeAutoBackup } from '../lib/mobile.js'
-import { mergeStates, localExtras } from '../lib/sync-merge.js'
-import { prepareLocalStateForEditMerge, rebuildHistoryDerived, saveWorkoutEdit } from '../lib/session-edit.js'
-import { loadRemote, chooseLocal, forgetRemote, connect } from '../lib/remote.js'
+import { MOBILE, initReminderSync, nativeLoad, nativeSave, onAppActive, readJsonFile, syncReminder, writeAutoBackup, writeJsonFile } from '../lib/mobile.js'
+import { mergeStates, localExtras, stampRoutines } from '../lib/sync-merge.js'
+import { countChanges, syncFingerprint } from '../lib/sync-changes.js'
++import { saveWorkoutEdit } from '../lib/session-edit.js'
+import { appBase } from '../lib/app-base.js'
+import { loadRemote, chooseLocal, forgetRemote, connect, normalizeServerUrl, renewToken } from '../lib/remote.js'
import { loadCoachDevice, saveCoachDevice, coachDeviceSettings } from '../lib/coach-device.js'
import { WC_DEFAULT } from '../lib/workout-controls.js'
@@@ -647,15 -361,28 +648,25 @@@ export const useStore = create((set, ge
set({ coachLocal: coachDeviceSettings(await saveCoachDevice(patch)) })
},
- // Mutate a draft of S via producer fn, then persist + schedule sync.
+ // Mutate a draft of S via producer fn, then persist + schedule sync. Every routine the change
+ // touched carries the time of it, for a conflict to keep the version edited last.
update(mut, push = true) {
- const S = clone(get().S)
+ const prev = get().S
+ const S = clone(prev)
mut(S)
+ stampRoutines(prev.routines, S.routines)
persist(S, push)
},
++ // An edit of a saved workout (lib/session-edit.js) is saved or dropped like any other change:
++ // the store's own sync takes it to the server, and a conflict on the way is settled by
++ // mergeStates like one between two devices. A save that cannot happen throws before anything
++ // is written, and the editor stays open with the edits.
+ saveHistoryEdit() {
- const S = clone(get().S)
- const original = clone(S.active?.editingOriginal)
- const id = S.active?.editingWorkoutId
- const saved = saveWorkoutEdit(S)
- if (get().user) writePendingEdits([...readPendingEdits().filter(edit => edit.id !== id), { id, original, saved: clone(saved) }])
- persist(S)
++ let saved = null
++ get().update(S => { saved = saveWorkoutEdit(S) })
+ return saved
+ },
- discardHistoryEdit() {
- const S = clone(get().S)
- const id = S.active?.editingWorkoutId
- S.active = null
- if (id) writePendingEdits(readPendingEdits().filter(edit => edit.id !== id))
- persist(S)
- },
++ discardHistoryEdit() { get().update(S => { S.active = null }) },
// A replace that is meant to reach the server (backup import, reset) is a deliberate
// overwrite, not a change to merge: the push it arms goes without a baseRev.
replaceState(S, push = false) { if (push) forceNext = true; persist(clone(S), push) },
diff --cc frontend/src/views/Workout.jsx
index 8564bc23c,d13881fc7..e1c7dd286
--- a/frontend/src/views/Workout.jsx
+++ b/frontend/src/views/Workout.jsx
@@@ -69,10 -71,9 +69,10 @@@ function Elapsed({ start })
/* ---------- one exercise block (reps: weight×reps · time: a held duration · cardio: duration+speed) ---------- */
// `compact` shrinks the block for a superset member; `dense` (compact view) goes further and
// drops everything that is not a set you are logging — media, tag chips, the note lines, the
-// "last time" recap and the progression line — leaving the name, the ⋯ menu and the sets.
+// "last time" recap and the progression line — leaving the name, the ⋯ menu, the one-line plan
+// the rows are measured against, and the sets.
// Nothing dropped is lost: it is all still on the ⋯ menu, or one ⋮ switch back to list/cards.
- function ExerciseBlock({ entryIdx, compact, dense, onToggle, onToggleSide, onField, onAddSet, onRemoveSet, onAddWarmup, onRemoveSetAt, onStartTimed, onPairPrev, onPairNext, onSetRowRef, onProgressionSettings, onSwap, onMoveUp, onMoveDown, canMoveUp, canMoveDown, onRemoveExercise, busy }) {
+ function ExerciseBlock({ entryIdx, compact, dense, editing, onToggle, onToggleSide, onField, onAddSet, onRemoveSet, onAddWarmup, onRemoveSetAt, onStartTimed, onPairPrev, onPairNext, onSetRowRef, onProgressionSettings, onSwap, onMoveUp, onMoveDown, canMoveUp, canMoveDown, onRemoveExercise, busy }) {
const S = useStore(s => s.S)
const update = useStore(s => s.update)
const working = useUI(s => s.work)
@@@ -551,11 -518,12 +551,12 @@@ function ActiveWorkout()
const nav = useNavigate()
const S = useStore(s => s.S)
const update = useStore(s => s.update)
- const { startRest: liveRest, stopRest, stopWork, work } = useUI()
+ const { startRest: liveRest, stopRest, stopWork, work, timer } = useUI()
const A = S.active
+ const editing = !!A.editingWorkoutId
// A past workout has no rest to time — the sets were done days ago. The work timer for
// timed sets stays, since counting a hold is how its duration gets entered.
- const startRest = A.backfill ? () => {} : liveRest
+ const startRest = (A.backfill || editing) ? () => {} : liveRest
const units = supersetUnits(A.entries)
const cur = Number.isInteger(A.cur)
? Math.min(Math.max(A.cur, 0), Math.max(0, A.entries.length - 1))
@@@ -934,9 -882,7 +940,9 @@@
if (side) e.sets[i] = toggleSide(e.sets[i], side)
else e.sets[i].done = !e.sets[i].done
checked = e.sets[i].done
+ // A finished row has no use for a plan set aside by a hold that did not finish.
+ if (checked && e.sets[i].planSec != null) delete e.sets[i].planSec
- if (e.sets[i].done) {
+ if (e.sets[i].done && !editing) {
beep(S.sound, 1040, 0.12); vibrate(30)
// The unit that owns the ticked set — not the marked one. Since !92 the marker no longer
// follows a finished exercise, and in list mode any exercise can be worked on, so judging