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.

Swipe: the copy pane says the verb (Kopieren, Copier), not the noun a copied routine is named with

Duarte Santosa7277c3c3fad
diff --git a/frontend/src/components/SwipeRow.jsx b/frontend/src/components/SwipeRow.jsx
index 3f1816a31..305019c7d 100644
--- a/frontend/src/components/SwipeRow.jsx
+++ b/frontend/src/components/SwipeRow.jsx
@@ -35,7 +35,8 @@ const SwipeRow = forwardRef(function SwipeRow({ children, canDelete = true, onDe
return <div ref={sw.outerRef} className="swrow" data-swipe-ignore="" {...sw.handlers}>
<div ref={sw.cpRef} className="swpane cp" aria-hidden={shut('copy') || undefined} inert={shut('copy') ? true : undefined}>
<button type="button" tabIndex={shut('copy') ? -1 : 0} onClick={sw.pressCopy}>
- <span className="lab"><Icon name="copy" /><b>{t('Copy')}</b></span>
+ {/* 'Copy set', not 'Copy': that key is the noun a copied routine is named with ("Kopie"). */}
+ <span className="lab"><Icon name="copy" /><b>{t('Copy set')}</b></span>
</button>
</div>
<div ref={sw.delRef} className={'swpane del' + (canDelete ? '' : ' dis')} aria-hidden={shut('delete') || undefined} inert={shut('delete') ? true : undefined}>
diff --git a/frontend/src/lib/pt-br-locale.test.js b/frontend/src/lib/pt-br-locale.test.js
index c3db54925..1388ffeea 100644
--- a/frontend/src/lib/pt-br-locale.test.js
+++ b/frontend/src/lib/pt-br-locale.test.js
@@ -41,7 +41,7 @@ describe('Brazilian Portuguese locale', () => {
// has to be taught is a number nobody reads. What the numbers stood for is asserted above.
// If the hash fails, review the changed keys and wording before accepting a new one. From
// frontend/: node scripts/pt-br-inheritance-fingerprint.mjs --list
- expect(fingerprint, 'pt-PT inheritance changed; review the inherited pt-BR wording').toBe('481edabb2b3e5e831a17f59c9f5078fd1895ff8901b231faf610c906524f12f3')
+ expect(fingerprint, 'pt-PT inheritance changed; review the inherited pt-BR wording').toBe('9158547c74fd92bfe714f164605189a4679cd95c8d34724b4daa09cb36779659')
})
test('does not leak European Portuguese UI terms', () => {
diff --git a/frontend/src/locales/ar.js b/frontend/src/locales/ar.js
index 9a776ce35..59de5e58c 100644
--- a/frontend/src/locales/ar.js
+++ b/frontend/src/locales/ar.js
@@ -4,6 +4,7 @@ export default {
'Cancel': 'إلغاء',
'Press back again to exit': 'اضغط زر الرجوع مرة أخرى للخروج',
'Delete': 'حذف',
+ 'Copy set': 'نسخ',
'Save': 'حفظ',
'Import': 'استيراد',
'Discard': 'تجاهل',
diff --git a/frontend/src/locales/de.js b/frontend/src/locales/de.js
index b2395a563..227e69cbc 100644
--- a/frontend/src/locales/de.js
+++ b/frontend/src/locales/de.js
@@ -5,6 +5,7 @@ export default {
'Cancel': 'Abbrechen',
'Press back again to exit': 'Zum Beenden erneut zurück drücken',
'Delete': 'Löschen',
+ 'Copy set': 'Kopieren',
'Import': 'Importieren',
'Discard': 'Verwerfen',
'All': 'Alle',
diff --git a/frontend/src/locales/es.js b/frontend/src/locales/es.js
index a9aa8b752..d8d72ee20 100644
--- a/frontend/src/locales/es.js
+++ b/frontend/src/locales/es.js
@@ -4,6 +4,7 @@ export default {
'Cancel': 'Cancelar',
'Press back again to exit': 'Pulsa atrás otra vez para salir',
'Delete': 'Eliminar',
+ 'Copy set': 'Copiar',
'Import': 'Importar',
'Discard': 'Descartar',
'All': 'Todo',
diff --git a/frontend/src/locales/fr.js b/frontend/src/locales/fr.js
index 10efc7db8..6056afdd3 100644
--- a/frontend/src/locales/fr.js
+++ b/frontend/src/locales/fr.js
@@ -4,6 +4,7 @@ export default {
'Cancel': 'Annuler',
'Press back again to exit': 'Appuyez de nouveau pour quitter',
'Delete': 'Supprimer',
+ 'Copy set': 'Copier',
'Import': 'Importer',
'Discard': 'Abandonner',
'All': 'Tout',
diff --git a/frontend/src/locales/hi.js b/frontend/src/locales/hi.js
index d14d682b3..762287183 100644
--- a/frontend/src/locales/hi.js
+++ b/frontend/src/locales/hi.js
@@ -4,6 +4,7 @@ export default {
'Cancel': 'रद्द करें',
'Press back again to exit': 'बाहर निकलने के लिए फिर से बैक दबाएँ',
'Delete': 'हटाएँ',
+ 'Copy set': 'कॉपी करें',
'Import': 'आयात करें',
'Discard': 'छोड़ें',
'All': 'सभी',
diff --git a/frontend/src/locales/hu.js b/frontend/src/locales/hu.js
index d9f1b99fe..35060e21e 100644
--- a/frontend/src/locales/hu.js
+++ b/frontend/src/locales/hu.js
@@ -5,6 +5,7 @@ export default {
'Cancel': 'Mégse',
'Press back again to exit': 'Nyomd meg újra a vissza gombot a kilépéshez',
'Delete': 'Törlés',
+ 'Copy set': 'Másolás',
'Save': 'Mentés',
'Import': 'Importálás',
'Discard': 'Elvetés',
diff --git a/frontend/src/locales/it.js b/frontend/src/locales/it.js
index 76e716ffb..79e9a9368 100644
--- a/frontend/src/locales/it.js
+++ b/frontend/src/locales/it.js
@@ -4,6 +4,7 @@ export default {
'Cancel': 'Annulla',
'Press back again to exit': 'Premi di nuovo indietro per uscire',
'Delete': 'Elimina',
+ 'Copy set': 'Copia',
'Import': 'Importa',
'Discard': 'Scarta',
'All': 'Tutti',
diff --git a/frontend/src/locales/ko.js b/frontend/src/locales/ko.js
index e2e6e94f1..9f6b1e563 100644
--- a/frontend/src/locales/ko.js
+++ b/frontend/src/locales/ko.js
@@ -4,6 +4,7 @@ export default {
'Cancel': '취소',
'Press back again to exit': '뒤로를 한 번 더 누르면 종료됩니다',
'Delete': '삭제',
+ 'Copy set': '복사',
'Import': '가져오기',
'Discard': '버리기',
'All': '전체',
diff --git a/frontend/src/locales/pl.js b/frontend/src/locales/pl.js
index d4424fe62..349cc75e1 100644
--- a/frontend/src/locales/pl.js
+++ b/frontend/src/locales/pl.js
@@ -4,6 +4,7 @@ export default {
'Cancel': 'Anuluj',
'Press back again to exit': 'Naciśnij wstecz ponownie, aby wyjść',
'Delete': 'Usuń',
+ 'Copy set': 'Kopiuj',
'Import': 'Importuj',
'Discard': 'Odrzuć',
'All': 'Wszystkie',
diff --git a/frontend/src/locales/pt.js b/frontend/src/locales/pt.js
index 25f12722f..4ed2329eb 100644
--- a/frontend/src/locales/pt.js
+++ b/frontend/src/locales/pt.js
@@ -4,6 +4,7 @@ export default {
'Cancel': 'Cancelar',
'Press back again to exit': 'Prima novamente para sair',
'Delete': 'Eliminar',
+ 'Copy set': 'Copiar',
'Import': 'Importar',
'Discard': 'Descartar',
'All': 'Todos',
diff --git a/frontend/src/locales/ru.js b/frontend/src/locales/ru.js
index 3d1be1ab2..b404d5704 100644
--- a/frontend/src/locales/ru.js
+++ b/frontend/src/locales/ru.js
@@ -4,6 +4,7 @@ export default {
'Cancel': 'Отмена',
'Press back again to exit': 'Нажмите «Назад» ещё раз, чтобы выйти',
'Delete': 'Удалить',
+ 'Copy set': 'Копировать',
'Import': 'Импорт',
'Discard': 'Отменить',
'All': 'Все',
diff --git a/frontend/src/locales/th.js b/frontend/src/locales/th.js
index d4dac3a78..f74488274 100644
--- a/frontend/src/locales/th.js
+++ b/frontend/src/locales/th.js
@@ -5,6 +5,7 @@ export default {
'Cancel': 'ยกเลิก',
'Press back again to exit': 'กดย้อนกลับอีกครั้งเพื่อออก',
'Delete': 'ลบ',
+ 'Copy set': 'คัดลอก',
'Save': 'บันทึก',
'Import': 'นำเข้า',
'Discard': 'ทิ้ง',
diff --git a/frontend/src/locales/tr.js b/frontend/src/locales/tr.js
index 1b6e0401d..3b4ba9f80 100644
--- a/frontend/src/locales/tr.js
+++ b/frontend/src/locales/tr.js
@@ -4,6 +4,7 @@ export default {
'Cancel': 'İptal',
'Press back again to exit': 'Çıkmak için geri tuşuna tekrar basın',
'Delete': 'Sil',
+ 'Copy set': 'Kopyala',
'Import': 'İçe aktar',
'Discard': 'Vazgeç',
'All': 'Tümü',
diff --git a/frontend/src/locales/uk.js b/frontend/src/locales/uk.js
index 081482f5d..733a4e63f 100644
--- a/frontend/src/locales/uk.js
+++ b/frontend/src/locales/uk.js
@@ -4,6 +4,7 @@ export default {
'Cancel': 'Скасувати',
'Press back again to exit': 'Натисни «Назад» ще раз, щоб вийти',
'Delete': 'Видалити',
+ 'Copy set': 'Копіювати',
'Import': 'Імпорт',
'Discard': 'Скасувати',
'All': 'Усі',
diff --git a/frontend/src/locales/zh-TW.js b/frontend/src/locales/zh-TW.js
index 29968ae26..4bed58755 100644
--- a/frontend/src/locales/zh-TW.js
+++ b/frontend/src/locales/zh-TW.js
@@ -3,6 +3,7 @@ export default {
'Cancel': '取消',
'Press back again to exit': '再按一次返回以退出',
'Delete': '刪除',
+ 'Copy set': '複製',
'Import': '匯入',
'Discard': '捨棄',
'All': '全部',
diff --git a/frontend/src/locales/zh.js b/frontend/src/locales/zh.js
index 1463c7aca..2b391cfc7 100644
--- a/frontend/src/locales/zh.js
+++ b/frontend/src/locales/zh.js
@@ -4,6 +4,7 @@ export default {
'Cancel': '取消',
'Press back again to exit': '再按一次返回退出',
'Delete': '删除',
+ 'Copy set': '复制',
'Import': '导入',
'Discard': '放弃',
'All': '全部',
diff --git a/frontend/src/views/Workout.swipe.test.jsx b/frontend/src/views/Workout.swipe.test.jsx
index a5c4da814..ba79bea41 100644
--- a/frontend/src/views/Workout.swipe.test.jsx
+++ b/frontend/src/views/Workout.swipe.test.jsx
@@ -372,6 +372,21 @@ describe('the swipe on a timed per-side pair', () => {
})
})
+describe('the swipe panes’ words', () => {
+ // QA 10-06: the Copy pane used the noun a copied routine is named with ("Kopie", "Copie").
+ const packs = import.meta.glob('../locales/*.js', { eager: true, import: 'default' })
+ it('the copy pane says the verb in every pack where the noun is another word', () => {
+ const verb = { de: 'Kopieren', fr: 'Copier', es: 'Copiar', pt: 'Copiar', pl: 'Kopiuj', ru: 'Копировать', uk: 'Копіювати', tr: 'Kopyala' }
+ for (const [lang, want] of Object.entries(verb)) expect(packs[`../locales/${lang}.js`]['Copy set'], lang).toBe(want)
+ for (const [path, pack] of Object.entries(packs)) if (!/(ar|hi|it)\.js$/.test(path) && pack['Copy set']) expect(pack['Copy set'], path).not.toBe(pack.Copy)
+ })
+ it('renders the copy pane with that key', () => {
+ setActive([entry('1001', [row(80), row(80)])])
+ render()
+ expect(container.querySelector('.swpane.cp b').textContent).toBe('Copy set')
+ })
+})
+
describe('the one-time hint', () => {
it('nudges the first unticked set once per person, with a chip', () => {
setActive([entry('1001', [row(80, true), row(80)])], { hints: {} })