Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby

Use the app's words for creating, pausing and opening bills (#4096)

Guillem Arias Faustea8f42d20b9a4
diff --git a/app/views/bills/all.html.erb b/app/views/bills/all.html.erb
index 8caf210af7..82bed112b8 100644
--- a/app/views/bills/all.html.erb
+++ b/app/views/bills/all.html.erb
@@ -1,5 +1,3 @@
-<%= content_for :page_title, t("bills.index.title") %>
-
<div class="space-y-4 pb-6 lg:pb-12">
<%= render "bills/view_switcher", active: "all" %>
diff --git a/app/views/bills/calendar.html.erb b/app/views/bills/calendar.html.erb
index d44066da90..c2dea3482c 100644
--- a/app/views/bills/calendar.html.erb
+++ b/app/views/bills/calendar.html.erb
@@ -1,5 +1,3 @@
-<%= content_for :page_title, t("bills.index.title") %>
-
<div class="space-y-4 pb-6 lg:pb-12">
<%= render "bills/view_switcher", active: "calendar" %>
diff --git a/app/views/bills/index.html.erb b/app/views/bills/index.html.erb
index e792697c57..ee12df48cf 100644
--- a/app/views/bills/index.html.erb
+++ b/app/views/bills/index.html.erb
@@ -1,5 +1,3 @@
-<%= content_for :page_title, t(".title") %>
-
<div class="space-y-4 pb-6 lg:pb-12">
<%= render "bills/view_switcher", active: "overview" %>
diff --git a/app/views/bills/paycheck.html.erb b/app/views/bills/paycheck.html.erb
index b89ca51232..d1323e9702 100644
--- a/app/views/bills/paycheck.html.erb
+++ b/app/views/bills/paycheck.html.erb
@@ -2,8 +2,6 @@
before the next payday, then one surface holding every upcoming pay
period in turn. %>
-<%= content_for :page_title, t("bills.index.title") %>
-
<%# The bridge/period split and why the bridge never becomes a timeline row
live with BillsHelper#paycheck_plan_sections; this template only renders
the prepared sections. %>
diff --git a/config/locales/views/bills/ca.yml b/config/locales/views/bills/ca.yml
index 5bf196d34c..2f64fb0f4b 100644
--- a/config/locales/views/bills/ca.yml
+++ b/config/locales/views/bills/ca.yml
@@ -86,7 +86,7 @@ ca:
remaining: '%{amount} pendents'
paid_headline: '%{amount} pagats'
add_bill: Afegeix una factura
- manage: Gestiona
+ manage: Mostra
find_payment: Cerca el pagament
add_payment: Afegeix un pagament
review_match: Revisa la coincidència
@@ -252,8 +252,8 @@ ca:
paid_so_far: Pagat fins ara
hero_past_due: '%{amount} vençuts'
hero_next_seven: '%{amount} vencen en els pròxims 7 dies'
- add_bill: Afegeix una factura
- add_income: Afegeix un ingrés
+ add_bill: Nova factura
+ add_income: Nou ingrés
review_with_ai: Revisa amb IA
detected_review:
one: Hem trobat %{count} pagament recurrent a les teves transaccions. Revisa'l perquè els totals d'aquí coincideixin amb el que pagues realment.
@@ -293,7 +293,7 @@ ca:
this_month: Aquest mes
later: Després d'aquest mes
paid_this_month: Pagades aquest mes
- dormant: Inactives
+ dormant: En pausa
kpi_remaining: Pendent aquest mes
kpi_paid: Pagat aquest mes
kpi_next_seven: Venç en 7 dies
diff --git a/config/locales/views/bills/de.yml b/config/locales/views/bills/de.yml
index f0ec0d4685..ab51582adc 100644
--- a/config/locales/views/bills/de.yml
+++ b/config/locales/views/bills/de.yml
@@ -20,7 +20,7 @@ de:
all: Alle Rechnungen
index:
title: Rechnungen
- add_bill: Rechnung hinzufügen
- add_income: Einkommen hinzufügen
+ add_bill: Neue Rechnung
+ add_income: Neues Einkommen
review_with_ai: Mit KI prüfen
notices_heading: Änderungen
diff --git a/config/locales/views/bills/en.yml b/config/locales/views/bills/en.yml
index 8ec840ee11..592582ca86 100644
--- a/config/locales/views/bills/en.yml
+++ b/config/locales/views/bills/en.yml
@@ -88,7 +88,7 @@ en:
remaining: "%{amount} remaining"
paid_headline: "%{amount} paid"
add_bill: Add bill
- manage: Manage
+ manage: View
find_payment: Find payment
add_payment: Add payment
review_match: Review match
@@ -267,8 +267,8 @@ en:
paid_so_far: Paid so far
hero_past_due: "%{amount} past due"
hero_next_seven: "%{amount} due in the next 7 days"
- add_bill: Add bill
- add_income: Add income
+ add_bill: New bill
+ add_income: New income
review_with_ai: Review with AI
detected_review:
one: We found 1 recurring payment in your transactions. Check it over so the totals here match what you actually pay.
@@ -308,7 +308,7 @@ en:
this_month: This month
later: After this month
paid_this_month: Paid this month
- dormant: Dormant
+ dormant: Paused
kpi_remaining: Remaining this month
kpi_paid: Paid this month
kpi_next_seven: Due next 7 days
diff --git a/config/locales/views/bills/fr.yml b/config/locales/views/bills/fr.yml
index 16eb8d2bf6..54b70fb4cc 100644
--- a/config/locales/views/bills/fr.yml
+++ b/config/locales/views/bills/fr.yml
@@ -119,8 +119,8 @@ fr:
find_payment: Trouver le paiement
index:
accept: Appliquer
- add_bill: Ajouter une facture
- add_income: Ajouter un revenu
+ add_bill: Nouvelle facture
+ add_income: Nouveau revenu
all_automatic: toutes en prélèvement automatique
attention_overdue_total: "%{amount} en retard"
confidence: "%{percent} % de correspondance"
@@ -128,7 +128,7 @@ fr:
one: Nous avons trouvé 1 paiement récurrent dans vos transactions. Vérifiez-le pour que les totaux affichés ici correspondent à ce que vous payez réellement.
other: Nous avons trouvé %{count} paiements récurrents dans vos transactions. Vérifiez-les pour que les totaux affichés ici correspondent à ce que vous payez réellement.
detected_review_action: Les vérifier
- dormant: Inactive
+ dormant: En pause
empty:
action: Trouver les transactions récurrentes
description: Les factures sont vos dépenses récurrentes. Sure les détecte automatiquement dans votre historique de transactions, et vous pouvez ajouter un lien de paiement à chacune pour régler directement depuis ici.
@@ -180,7 +180,7 @@ fr:
one: 1 facture n'est pas incluse, aucun taux de change disponible
other: "%{count} factures ne sont pas incluses, aucun taux de change disponible"
installment_progress: Paiement %{done_plus_one} sur %{total}
- manage: Gérer
+ manage: Voir
manage_payments: Gérer les paiements
match:
amount_off: "%{amount} d'écart"
diff --git a/config/locales/views/bills/pl.yml b/config/locales/views/bills/pl.yml
index 6a3d5fe628..2ef1d7977e 100644
--- a/config/locales/views/bills/pl.yml
+++ b/config/locales/views/bills/pl.yml
@@ -132,8 +132,8 @@ pl:
find_payment: Znajdź płatność
index:
accept: Zastosuj
- add_bill: Dodaj rachunek
- add_income: Dodaj przychód
+ add_bill: Nowy rachunek
+ add_income: Nowy przychód
all_automatic: wszystkie na autopłatności
attention_overdue_total: "%{amount} zaległe"
confidence: dopasowanie %{percent}%
@@ -147,7 +147,7 @@ pl:
other: Znaleźliśmy %{count} cyklicznych płatności w Twoich transakcjach. Sprawdź
je, aby sumy tutaj zgadzały się z tym, co faktycznie płacisz.
detected_review_action: Sprawdź je
- dormant: Uśpione
+ dormant: Wstrzymane
empty:
action: Znajdź transakcje cykliczne
description: Rachunki to Twoje cykliczne wydatki. Sure wykrywa je automatycznie
@@ -216,7 +216,7 @@ pl:
other: "%{count} rachunków nie jest uwzględnionych — brak dostępnego kursu
wymiany"
installment_progress: Płatność %{done_plus_one} z %{total}
- manage: Zarządzaj
+ manage: Zobacz
manage_payments: Zarządzaj płatnościami
match:
amount_off: różnica %{amount}
diff --git a/config/locales/views/bills/ru.yml b/config/locales/views/bills/ru.yml
index d6996f71c0..7d68bae5df 100644
--- a/config/locales/views/bills/ru.yml
+++ b/config/locales/views/bills/ru.yml
@@ -94,7 +94,7 @@ ru:
remaining: Осталось %{amount}
paid_headline: Оплачено %{amount}
add_bill: Добавить платёж
- manage: Управлять
+ manage: Открыть
find_payment: Найти оплату
add_payment: Добавить оплату
review_match: Проверить совпадение
@@ -280,8 +280,8 @@ ru:
paid_so_far: Уже оплачено
hero_past_due: Просрочено %{amount}
hero_next_seven: '%{amount} к оплате в ближайшие 7 дней'
- add_bill: Добавить платёж
- add_income: Добавить доход
+ add_bill: Новый платёж
+ add_income: Новый доход
review_with_ai: Проверить с ИИ
detected_review:
one: Мы нашли %{count} регулярный платёж в ваших операциях. Проверьте его, чтобы итоги здесь соответствовали тому, что вы действительно платите.
@@ -331,7 +331,7 @@ ru:
this_month: В этом месяце
later: После этого месяца
paid_this_month: Оплачено в этом месяце
- dormant: Неактивные
+ dormant: Приостановленные
kpi_remaining: Осталось в этом месяце
kpi_paid: Оплачено в этом месяце
kpi_next_seven: К оплате за 7 дней
diff --git a/config/locales/views/bills/tr.yml b/config/locales/views/bills/tr.yml
index 73be4aaabf..c4cb59638f 100644
--- a/config/locales/views/bills/tr.yml
+++ b/config/locales/views/bills/tr.yml
@@ -86,7 +86,7 @@ tr:
remaining: '%{amount} kaldı'
paid_headline: '%{amount} ödendi'
add_bill: Fatura ekle
- manage: Yönet
+ manage: Görüntüle
find_payment: Ödeme bul
add_payment: Ödeme ekle
review_match: Eşleşmeyi incele
@@ -252,8 +252,8 @@ tr:
paid_so_far: Şu ana kadar ödenen
hero_past_due: '%{amount} gecikmiş'
hero_next_seven: Önümüzdeki 7 günde ödenecek %{amount}
- add_bill: Fatura ekle
- add_income: Gelir ekle
+ add_bill: Yeni fatura
+ add_income: Yeni gelir
review_with_ai: AI ile incele
detected_review:
one: İşlemlerinizde %{count} yinelenen ödeme bulduk. Buradaki toplamların gerçekte ödediğinizle eşleşmesi için gözden geçirin.
@@ -293,7 +293,7 @@ tr:
this_month: Bu ay
later: Bu aydan sonra
paid_this_month: Bu ay ödenenler
- dormant: Pasif
+ dormant: Duraklatıldı
kpi_remaining: Bu ay kalan
kpi_paid: Bu ay ödenen
kpi_next_seven: Önümüzdeki 7 günde ödenecek
diff --git a/config/locales/views/bills/uk.yml b/config/locales/views/bills/uk.yml
index 2b7d1da858..1e1c57e193 100644
--- a/config/locales/views/bills/uk.yml
+++ b/config/locales/views/bills/uk.yml
@@ -94,7 +94,7 @@ uk:
remaining: Залишилося %{amount}
paid_headline: Сплачено %{amount}
add_bill: Додати платіж
- manage: Керувати
+ manage: Переглянути
find_payment: Знайти оплату
add_payment: Додати оплату
review_match: Перевірити зіставлення
@@ -280,8 +280,8 @@ uk:
paid_so_far: Уже сплачено
hero_past_due: '%{amount} прострочено'
hero_next_seven: '%{amount} до сплати в наступні 7 днів'
- add_bill: Додати платіж
- add_income: Додати дохід
+ add_bill: Новий платіж
+ add_income: Новий дохід
review_with_ai: Переглянути з ШІ
detected_review:
one: Ми знайшли у ваших транзакціях %{count} регулярний платіж. Перевірте його, щоб підсумки тут відповідали тому, що ви фактично платите.
@@ -331,7 +331,7 @@ uk:
this_month: Цього місяця
later: Після цього місяця
paid_this_month: Сплачено цього місяця
- dormant: Неактивні
+ dormant: Призупинені
kpi_remaining: Залишилося цього місяця
kpi_paid: Сплачено цього місяця
kpi_next_seven: До сплати за 7 днів
diff --git a/config/locales/views/recurring_occurrences/ca.yml b/config/locales/views/recurring_occurrences/ca.yml
index 1860156da7..a6aac0e7d5 100644
--- a/config/locales/views/recurring_occurrences/ca.yml
+++ b/config/locales/views/recurring_occurrences/ca.yml
@@ -39,7 +39,7 @@ ca:
skip: Omet
snooze_week: Ajorna una setmana
reopen: Reobre
- view_bill: Mostra la factura completa
+ view_bill: Mostra la factura
mark_paid:
success: Factura marcada com a pagada
skip:
diff --git a/config/locales/views/recurring_occurrences/de.yml b/config/locales/views/recurring_occurrences/de.yml
index 026ea6f7ac..3f2a68c788 100644
--- a/config/locales/views/recurring_occurrences/de.yml
+++ b/config/locales/views/recurring_occurrences/de.yml
@@ -37,7 +37,7 @@ de:
skip: Überspringen
snooze_week: Um eine Woche verschieben
reopen: Wieder öffnen
- view_bill: Vollständige Rechnung anzeigen
+ view_bill: Rechnung anzeigen
mark_paid:
success: Rechnung als bezahlt markiert
skip:
diff --git a/config/locales/views/recurring_occurrences/en.yml b/config/locales/views/recurring_occurrences/en.yml
index f9370189a5..5f805f0f85 100644
--- a/config/locales/views/recurring_occurrences/en.yml
+++ b/config/locales/views/recurring_occurrences/en.yml
@@ -39,7 +39,7 @@ en:
skip: Skip
snooze_week: Snooze a week
reopen: Reopen
- view_bill: View full bill
+ view_bill: View bill
mark_paid:
success: Bill marked paid
skip:
diff --git a/config/locales/views/recurring_occurrences/fr.yml b/config/locales/views/recurring_occurrences/fr.yml
index 1db101fdf4..7939bdddc7 100644
--- a/config/locales/views/recurring_occurrences/fr.yml
+++ b/config/locales/views/recurring_occurrences/fr.yml
@@ -45,7 +45,7 @@ fr:
skipped: Ignorée
snooze_week: Reporter d'une semaine
unlink: Délier
- view_bill: Voir la facture complète
+ view_bill: Voir la facture
skip:
success: Facture ignorée
snooze:
diff --git a/config/locales/views/recurring_occurrences/pl.yml b/config/locales/views/recurring_occurrences/pl.yml
index 75cf486fbd..26a2ea2566 100644
--- a/config/locales/views/recurring_occurrences/pl.yml
+++ b/config/locales/views/recurring_occurrences/pl.yml
@@ -46,7 +46,7 @@ pl:
skipped: Pominięto
snooze_week: Odłóż o tydzień
unlink: Odłącz
- view_bill: Zobacz cały rachunek
+ view_bill: Zobacz rachunek
skip:
success: Rachunek pominięty
snooze:
diff --git a/config/locales/views/recurring_occurrences/ru.yml b/config/locales/views/recurring_occurrences/ru.yml
index ade8435f92..a73bf5c171 100644
--- a/config/locales/views/recurring_occurrences/ru.yml
+++ b/config/locales/views/recurring_occurrences/ru.yml
@@ -39,7 +39,7 @@ ru:
skip: Пропустить
snooze_week: Отложить на неделю
reopen: Открыть снова
- view_bill: Открыть весь платёж
+ view_bill: Открыть платёж
mark_paid:
success: Платёж отмечен как оплаченный
skip:
diff --git a/config/locales/views/recurring_occurrences/tr.yml b/config/locales/views/recurring_occurrences/tr.yml
index 914570733f..fa0b5d25d6 100644
--- a/config/locales/views/recurring_occurrences/tr.yml
+++ b/config/locales/views/recurring_occurrences/tr.yml
@@ -39,7 +39,7 @@ tr:
skip: Atla
snooze_week: Bir hafta ertele
reopen: Yeniden aç
- view_bill: Faturanın tamamını görüntüle
+ view_bill: Faturayı görüntüle
mark_paid:
success: Fatura ödendi olarak işaretlendi
skip:
diff --git a/config/locales/views/recurring_occurrences/uk.yml b/config/locales/views/recurring_occurrences/uk.yml
index 604448497e..c71853bce7 100644
--- a/config/locales/views/recurring_occurrences/uk.yml
+++ b/config/locales/views/recurring_occurrences/uk.yml
@@ -39,7 +39,7 @@ uk:
skip: Пропустити
snooze_week: Відкласти на тиждень
reopen: Відкрити знову
- view_bill: Переглянути весь платіж
+ view_bill: Переглянути платіж
mark_paid:
success: Платіж позначено як оплачений
skip:
diff --git a/config/locales/views/recurring_transactions/ca.yml b/config/locales/views/recurring_transactions/ca.yml
index 3fb2194e91..ca09976db4 100644
--- a/config/locales/views/recurring_transactions/ca.yml
+++ b/config/locales/views/recurring_transactions/ca.yml
@@ -98,8 +98,8 @@ ca:
autopay: Domiciliat
autopay_aria: '%{name} es paga automàticament; obre el seu portal en una pestanya nova'
new:
- title: Afegeix una factura
- income_title: Afegeix un ingrés
+ title: Nova factura
+ income_title: Nou ingrés
start_from_title: Parteix d'un càrrec recurrent que hem detectat
start_from_income_title: Parteix d'un ingrés recurrent que hem detectat
start_from_hint: Opcional. Si en tries un, només s'omple el formulari; encara pots canviar-ho tot.
diff --git a/config/locales/views/recurring_transactions/en.yml b/config/locales/views/recurring_transactions/en.yml
index 4abee00be8..878f0f32ae 100644
--- a/config/locales/views/recurring_transactions/en.yml
+++ b/config/locales/views/recurring_transactions/en.yml
@@ -52,8 +52,8 @@ en:
autopay: Autopay
autopay_aria: "%{name} pays automatically, open its portal in a new tab"
new:
- title: Add a bill
- income_title: Add income
+ title: New bill
+ income_title: New income
start_from_title: Start from a recurring charge we spotted
start_from_income_title: Start from a recurring deposit we spotted
start_from_hint: Optional. Picking one just fills in the form; you can still change anything.
diff --git a/config/locales/views/recurring_transactions/fr.yml b/config/locales/views/recurring_transactions/fr.yml
index e621b1805f..45fbbc224f 100644
--- a/config/locales/views/recurring_transactions/fr.yml
+++ b/config/locales/views/recurring_transactions/fr.yml
@@ -140,7 +140,7 @@ fr:
marked_inactive: Transaction récurrente marquée comme inactive
new:
candidate_meta: "%{count}× · dernière fois le %{date}"
- income_title: Ajouter un revenu
+ income_title: Nouveau revenu
pick_different: Partir d'une autre transaction
search_all_cta: Rechercher dans toutes vos transactions
search_all_prompt: Vous ne trouvez pas ce que vous cherchez ?
@@ -149,7 +149,7 @@ fr:
start_from_hint: Facultatif. En choisir une ne fait que préremplir le formulaire ; vous pouvez tout modifier.
start_from_income_title: Partir d'un versement récurrent que nous avons repéré
start_from_title: Partir d'un prélèvement récurrent que nous avons repéré
- title: Ajouter une facture
+ title: Nouvelle facture
pay_action:
add_link: Ajouter un lien
add_link_aria: Ajouter un lien de paiement pour %{name}
diff --git a/config/locales/views/recurring_transactions/pl.yml b/config/locales/views/recurring_transactions/pl.yml
index b49a17e256..f70fce0bd7 100644
--- a/config/locales/views/recurring_transactions/pl.yml
+++ b/config/locales/views/recurring_transactions/pl.yml
@@ -146,7 +146,7 @@ pl:
marked_inactive: Transakcję cykliczną oznaczono jako nieaktywną
new:
candidate_meta: "%{count}× · ostatnio %{date}"
- income_title: Dodaj przychód
+ income_title: Nowy przychód
pick_different: Zacznij od innej transakcji
search_all_cta: Przeszukaj wszystkie swoje transakcje
search_all_prompt: Nie widzisz tego, czego szukasz?
@@ -157,7 +157,7 @@ pl:
możesz wszystko zmienić.
start_from_income_title: Zacznij od wykrytego cyklicznego wpływu
start_from_title: Zacznij od wykrytego cyklicznego obciążenia
- title: Dodaj rachunek
+ title: Nowy rachunek
pay_action:
add_link: Dodaj link
add_link_aria: Dodaj link do płatności dla %{name}
diff --git a/config/locales/views/recurring_transactions/ru.yml b/config/locales/views/recurring_transactions/ru.yml
index e9cfb2822d..a9ba80dea3 100644
--- a/config/locales/views/recurring_transactions/ru.yml
+++ b/config/locales/views/recurring_transactions/ru.yml
@@ -98,8 +98,8 @@ ru:
autopay: Автоплатёж
autopay_aria: '%{name} оплачивается автоматически; открыть его сайт в новой вкладке'
new:
- title: Добавить платёж
- income_title: Добавить доход
+ title: Новый платёж
+ income_title: Новый доход
start_from_title: Начать с найденного регулярного списания
start_from_income_title: Начать с найденного регулярного поступления
start_from_hint: Необязательно. Выбор лишь заполнит форму — вы сможете изменить что угодно.
diff --git a/config/locales/views/recurring_transactions/tr.yml b/config/locales/views/recurring_transactions/tr.yml
index 26370c136a..3527530de8 100644
--- a/config/locales/views/recurring_transactions/tr.yml
+++ b/config/locales/views/recurring_transactions/tr.yml
@@ -97,8 +97,8 @@ tr:
autopay: Otomatik ödeme
autopay_aria: '%{name} otomatik olarak ödeniyor, portalını yeni sekmede açın'
new:
- title: Fatura ekle
- income_title: Gelir ekle
+ title: Yeni fatura
+ income_title: Yeni gelir
start_from_title: Tespit ettiğimiz yinelenen bir harcamadan başlayın
start_from_income_title: Tespit ettiğimiz yinelenen bir para girişinden başlayın
start_from_hint: İsteğe bağlı. Birini seçmek yalnızca formu doldurur; yine de her şeyi değiştirebilirsiniz.
diff --git a/config/locales/views/recurring_transactions/uk.yml b/config/locales/views/recurring_transactions/uk.yml
index 7fcef0ae6f..3f9d2e629e 100644
--- a/config/locales/views/recurring_transactions/uk.yml
+++ b/config/locales/views/recurring_transactions/uk.yml
@@ -91,8 +91,8 @@ uk:
autopay: Автоплатіж
autopay_aria: '%{name} оплачується автоматично; відкрити його портал у новій вкладці'
new:
- title: Додати платіж
- income_title: Додати дохід
+ title: Новий платіж
+ income_title: Новий дохід
start_from_title: Почніть із виявленого нами регулярного списання
start_from_income_title: Почніть із виявленого нами регулярного надходження
start_from_hint: Необов'язково. Вибір лише заповнить форму; ви все одно зможете будь-що змінити.
diff --git a/test/controllers/bills_controller_test.rb b/test/controllers/bills_controller_test.rb
index 8b803d0f03..5bb10b3923 100644
--- a/test/controllers/bills_controller_test.rb
+++ b/test/controllers/bills_controller_test.rb
@@ -83,8 +83,8 @@ class BillsControllerTest < ActionDispatch::IntegrationTest
"bills.views.paycheck" => "Einkommensplan",
"bills.views.all" => "Alle Rechnungen",
"bills.index.title" => "Rechnungen",
- "bills.index.add_bill" => "Rechnung hinzufügen",
- "bills.index.add_income" => "Einkommen hinzufügen",
+ "bills.index.add_bill" => "Neue Rechnung",
+ "bills.index.add_income" => "Neues Einkommen",
"bills.index.review_with_ai" => "Mit KI prüfen"
}
@@ -272,6 +272,30 @@ class BillsControllerTest < ActionDispatch::IntegrationTest
end
end
+ # Paused bills sat under a heading that called them Dormant, while each row,
+ # the drawer's Pause/Resume and the All bills filter all said Paused. The
+ # heading names a group of bills, so it takes the All bills filter's label
+ # for that same group: in Russian and Ukrainian that is the plural, where a
+ # row's own status reads as a single bill's.
+ test "paused bills sit under the All bills filter's word for them, in every language" do
+ late = 6.days.ago.to_date
+ bill = create_bill(name: "Paused gym", amount: 40, expected_day_of_month: late.day,
+ last_occurrence_date: 2.months.ago.to_date, next_expected_date: late)
+ bill.mark_inactive!
+
+ get bills_url
+
+ assert_response :success
+ assert_select "main h2", text: I18n.t("bills.all.status_filters.paused")
+ I18n.available_locales.each do |locale|
+ filter = I18n.t("bills.all.status_filters.paused", locale: locale, fallback: false, default: nil)
+ next if filter.nil?
+
+ assert_equal filter, I18n.t("bills.index.dormant", locale: locale, fallback: false, default: nil),
+ "#{locale}: the Paused heading and the All bills filter say different things"
+ end
+ end
+
# The row calls the leftover Paused, and the drawer it opens, the bill's page
# and the payment drawer said "Overdue by 6 days" in red.
test "a paused bill's drawer, page and payment drawer say Paused, not overdue" do
@@ -2116,7 +2140,8 @@ class BillsControllerTest < ActionDispatch::IntegrationTest
get bills_url
assert_response :success
assert_match "Water Co", response.body
- assert_no_match I18n.t("bills.index.dormant"), response.body
+ # No Paused section. The word itself is fine: the paid row says Paused.
+ assert_select "main h2", text: I18n.t("bills.index.dormant"), count: 0
assert_match I18n.t("bills.month_pulse.left_to_pay"), response.body
end
diff --git a/test/controllers/recurring_occurrences_controller_test.rb b/test/controllers/recurring_occurrences_controller_test.rb
index 554dd0c178..8a97d1e029 100644
--- a/test/controllers/recurring_occurrences_controller_test.rb
+++ b/test/controllers/recurring_occurrences_controller_test.rb
@@ -122,7 +122,7 @@ class RecurringOccurrencesControllerTest < ActionDispatch::IntegrationTest
"show.skip" => "Überspringen",
"show.snooze_week" => "Um eine Woche verschieben",
"show.reopen" => "Wieder öffnen",
- "show.view_bill" => "Vollständige Rechnung anzeigen",
+ "show.view_bill" => "Rechnung anzeigen",
"mark_paid.success" => "Rechnung als bezahlt markiert",
"skip.success" => "Rechnung übersprungen",
"reopen.success" => "Rechnung wieder geöffnet",