Skip to content

Commit

Permalink
Cleanup unused i18n strings (mastodon#23426)
Browse files Browse the repository at this point in the history
* Remove partial 422/500 error translations

* Add missing siblings for i18n unused warnings

* Enable i18n unused string checking for all locales
  • Loading branch information
nschonni authored and Jean Bertrand committed Feb 22, 2023
1 parent 0908f52 commit 6adfe52
Show file tree
Hide file tree
Showing 35 changed files with 13 additions and 61 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-i18n.yml
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Check locale file normalization
run: bundle exec i18n-tasks check-normalized
- name: Check for unused strings
run: bundle exec i18n-tasks unused -l en
run: bundle exec i18n-tasks unused
- name: Check for wrong string interpolations
run: bundle exec i18n-tasks check-consistent-interpolations
- name: Check that all required locale files exist
Expand Down
2 changes: 0 additions & 2 deletions config/locales/af.yml
Expand Up @@ -96,9 +96,7 @@ af:
'404': The page you are looking for isn't here.
'406': This page is not available in the requested format.
'410': The page you were looking for doesn't exist here anymore.
'422':
'429': Too many requests
'500':
'503': The page could not be served due to a temporary server failure.
exports:
bookmarks: Boekmerke
Expand Down
2 changes: 0 additions & 2 deletions config/locales/bn.yml
Expand Up @@ -232,9 +232,7 @@ bn:
'404': The page you are looking for isn't here.
'406': This page is not available in the requested format.
'410': The page you were looking for doesn't exist here anymore.
'422':
'429': Too many requests
'500':
'503': The page could not be served due to a temporary server failure.
verification:
verification: সত্যতা নির্ধারণ
2 changes: 0 additions & 2 deletions config/locales/br.yml
Expand Up @@ -342,9 +342,7 @@ br:
'404': The page you are looking for isn't here.
'406': This page is not available in the requested format.
'410': The page you were looking for doesn't exist here anymore.
'422':
'429': Too many requests
'500':
'503': The page could not be served due to a temporary server failure.
exports:
archive_takeout:
Expand Down
2 changes: 0 additions & 2 deletions config/locales/bs.yml
Expand Up @@ -6,7 +6,5 @@ bs:
'404': The page you are looking for isn't here.
'406': This page is not available in the requested format.
'410': The page you were looking for doesn't exist here anymore.
'422':
'429': Too many requests
'500':
'503': The page could not be served due to a temporary server failure.
2 changes: 0 additions & 2 deletions config/locales/csb.yml
Expand Up @@ -6,7 +6,5 @@ csb:
'404': The page you are looking for isn't here.
'406': This page is not available in the requested format.
'410': The page you were looking for doesn't exist here anymore.
'422':
'429': Too many requests
'500':
'503': The page could not be served due to a temporary server failure.
2 changes: 0 additions & 2 deletions config/locales/en-GB.yml
Expand Up @@ -190,9 +190,7 @@ en-GB:
'404': The page you are looking for isn't here.
'406': This page is not available in the requested format.
'410': The page you were looking for doesn't exist here anymore.
'422':
'429': Too many requests
'500':
'503': The page could not be served due to a temporary server failure.
sessions:
browsers:
Expand Down
4 changes: 2 additions & 2 deletions config/locales/ga.yml
Expand Up @@ -369,9 +369,7 @@ ga:
'404': The page you are looking for isn't here.
'406': This page is not available in the requested format.
'410': The page you were looking for doesn't exist here anymore.
'422':
'429': Too many requests
'500':
'503': The page could not be served due to a temporary server failure.
exports:
archive_takeout:
Expand Down Expand Up @@ -437,6 +435,8 @@ ga:
prev: Ceann roimhe seo
preferences:
other: Eile
posting_defaults: Posting defaults
public_timelines: Public timelines
relationships:
follow_selected_followers: Lean leantóirí roghnaithe
followers: Leantóirí
Expand Down
2 changes: 0 additions & 2 deletions config/locales/hi.yml
Expand Up @@ -6,7 +6,5 @@ hi:
'404': The page you are looking for isn't here.
'406': This page is not available in the requested format.
'410': The page you were looking for doesn't exist here anymore.
'422':
'429': Too many requests
'500':
'503': The page could not be served due to a temporary server failure.
2 changes: 0 additions & 2 deletions config/locales/hr.yml
Expand Up @@ -81,9 +81,7 @@ hr:
'404': The page you are looking for isn't here.
'406': This page is not available in the requested format.
'410': The page you were looking for doesn't exist here anymore.
'422':
'429': Too many requests
'500':
'503': The page could not be served due to a temporary server failure.
exports:
archive_takeout:
Expand Down
1 change: 0 additions & 1 deletion config/locales/hy.yml
Expand Up @@ -539,7 +539,6 @@ hy:
'404': Էջը, որը փնտրում ես գոյութիւն չունի։
'406': This page is not available in the requested format.
'410': The page you were looking for doesn't exist here anymore.
'422':
'429': Չափազանց շատ հարցումներ
'500':
title: Էջը ճիշտ չէ
Expand Down
2 changes: 0 additions & 2 deletions config/locales/ig.yml
Expand Up @@ -6,7 +6,5 @@ ig:
'404': The page you are looking for isn't here.
'406': This page is not available in the requested format.
'410': The page you were looking for doesn't exist here anymore.
'422':
'429': Too many requests
'500':
'503': The page could not be served due to a temporary server failure.
2 changes: 2 additions & 0 deletions config/locales/ka.yml
Expand Up @@ -394,6 +394,8 @@ ka:
prev: წინა
preferences:
other: სხვა
posting_defaults: Posting defaults
public_timelines: Public timelines
remote_follow:
missing_resource: საჭირო გადამისამართების ურლ თქვენი ანგარიშისთვის ვერ მოიძებნა
sessions:
Expand Down
3 changes: 2 additions & 1 deletion config/locales/kab.yml
Expand Up @@ -508,7 +508,6 @@ kab:
'404': The page you are looking for isn't here.
'406': This page is not available in the requested format.
'410': The page you were looking for doesn't exist here anymore.
'422':
'429': Too many requests
'500':
title: Asebter-ayi d arameγtu
Expand Down Expand Up @@ -630,6 +629,8 @@ kab:
prev: Win iɛeddan
preferences:
other: Wiyaḍ
posting_defaults: Posting defaults
public_timelines: Public timelines
privacy_policy:
title: Tasertit tabaḍnit
relationships:
Expand Down
2 changes: 0 additions & 2 deletions config/locales/kn.yml
Expand Up @@ -6,7 +6,5 @@ kn:
'404': The page you are looking for isn't here.
'406': This page is not available in the requested format.
'410': The page you were looking for doesn't exist here anymore.
'422':
'429': Too many requests
'500':
'503': The page could not be served due to a temporary server failure.
2 changes: 0 additions & 2 deletions config/locales/kw.yml
Expand Up @@ -11,9 +11,7 @@ kw:
'404': The page you are looking for isn't here.
'406': This page is not available in the requested format.
'410': The page you were looking for doesn't exist here anymore.
'422':
'429': Too many requests
'500':
'503': The page could not be served due to a temporary server failure.
settings:
account: Akont
2 changes: 0 additions & 2 deletions config/locales/la.yml
Expand Up @@ -6,7 +6,5 @@ la:
'404': The page you are looking for isn't here.
'406': This page is not available in the requested format.
'410': The page you were looking for doesn't exist here anymore.
'422':
'429': Too many requests
'500':
'503': The page could not be served due to a temporary server failure.
2 changes: 2 additions & 0 deletions config/locales/lt.yml
Expand Up @@ -426,6 +426,8 @@ lt:
prev: Ankstesnis
preferences:
other: Kita
posting_defaults: Posting defaults
public_timelines: Public timelines
remote_follow:
missing_resource: Jūsų paskyros nukreipimo URL nerasta
scheduled_statuses:
Expand Down
2 changes: 0 additions & 2 deletions config/locales/mk.yml
Expand Up @@ -6,7 +6,5 @@ mk:
'404': The page you are looking for isn't here.
'406': This page is not available in the requested format.
'410': The page you were looking for doesn't exist here anymore.
'422':
'429': Too many requests
'500':
'503': The page could not be served due to a temporary server failure.
2 changes: 0 additions & 2 deletions config/locales/ml.yml
Expand Up @@ -87,9 +87,7 @@ ml:
'404': The page you are looking for isn't here.
'406': This page is not available in the requested format.
'410': The page you were looking for doesn't exist here anymore.
'422':
'429': Too many requests
'500':
'503': The page could not be served due to a temporary server failure.
filters:
contexts:
Expand Down
2 changes: 0 additions & 2 deletions config/locales/mr.yml
Expand Up @@ -6,7 +6,5 @@ mr:
'404': The page you are looking for isn't here.
'406': This page is not available in the requested format.
'410': The page you were looking for doesn't exist here anymore.
'422':
'429': Too many requests
'500':
'503': The page could not be served due to a temporary server failure.
1 change: 0 additions & 1 deletion config/locales/ms.yml
Expand Up @@ -827,7 +827,6 @@ ms:
'422':
title: Pengesahan keselamatan gagal
'429': Terlalu banyak permintaan
'500':
'503': Halaman tidak dapat disampaikan kerana kegagalan pelayan sementara.
exports:
archive_takeout:
Expand Down
2 changes: 0 additions & 2 deletions config/locales/my.yml
Expand Up @@ -6,7 +6,5 @@ my:
'404': The page you are looking for isn't here.
'406': This page is not available in the requested format.
'410': The page you were looking for doesn't exist here anymore.
'422':
'429': Too many requests
'500':
'503': The page could not be served due to a temporary server failure.
2 changes: 0 additions & 2 deletions config/locales/pa.yml
Expand Up @@ -6,7 +6,5 @@ pa:
'404': The page you are looking for isn't here.
'406': This page is not available in the requested format.
'410': The page you were looking for doesn't exist here anymore.
'422':
'429': Too many requests
'500':
'503': The page could not be served due to a temporary server failure.
2 changes: 0 additions & 2 deletions config/locales/sa.yml
Expand Up @@ -6,7 +6,5 @@ sa:
'404': The page you are looking for isn't here.
'406': This page is not available in the requested format.
'410': The page you were looking for doesn't exist here anymore.
'422':
'429': Too many requests
'500':
'503': The page could not be served due to a temporary server failure.
3 changes: 2 additions & 1 deletion config/locales/sr-Latn.yml
Expand Up @@ -209,7 +209,6 @@ sr-Latn:
'404': Strana koju ste tražili ne postoji.
'406': This page is not available in the requested format.
'410': Strana koju ste tražili više ne postoji.
'422':
'429': Uspored
'500':
content: Izvinjavamo se, nešto je pošlo po zlu sa ove strane.
Expand Down Expand Up @@ -289,6 +288,8 @@ sr-Latn:
prev: Prethodni
preferences:
other: Ostali
posting_defaults: Posting defaults
public_timelines: Public timelines
remote_follow:
missing_resource: Ne mogu da nađem zahtevanu adresu preusmeravanja za Vaš nalog
sessions:
Expand Down
2 changes: 0 additions & 2 deletions config/locales/szl.yml
Expand Up @@ -6,7 +6,5 @@ szl:
'404': The page you are looking for isn't here.
'406': This page is not available in the requested format.
'410': The page you were looking for doesn't exist here anymore.
'422':
'429': Too many requests
'500':
'503': The page could not be served due to a temporary server failure.
2 changes: 0 additions & 2 deletions config/locales/ta.yml
Expand Up @@ -203,9 +203,7 @@ ta:
'404': The page you are looking for isn't here.
'406': This page is not available in the requested format.
'410': The page you were looking for doesn't exist here anymore.
'422':
'429': Too many requests
'500':
'503': The page could not be served due to a temporary server failure.
filters:
index:
Expand Down
2 changes: 0 additions & 2 deletions config/locales/tai.yml
Expand Up @@ -6,7 +6,5 @@ tai:
'404': The page you are looking for isn't here.
'406': This page is not available in the requested format.
'410': The page you were looking for doesn't exist here anymore.
'422':
'429': Too many requests
'500':
'503': The page could not be served due to a temporary server failure.
2 changes: 0 additions & 2 deletions config/locales/te.yml
Expand Up @@ -76,7 +76,5 @@ te:
'404': The page you are looking for isn't here.
'406': This page is not available in the requested format.
'410': The page you were looking for doesn't exist here anymore.
'422':
'429': Too many requests
'500':
'503': The page could not be served due to a temporary server failure.
4 changes: 2 additions & 2 deletions config/locales/tt.yml
Expand Up @@ -136,9 +136,7 @@ tt:
'404': The page you are looking for isn't here.
'406': This page is not available in the requested format.
'410': The page you were looking for doesn't exist here anymore.
'422':
'429': Too many requests
'500':
'503': The page could not be served due to a temporary server failure.
exports:
archive_takeout:
Expand Down Expand Up @@ -183,6 +181,8 @@ tt:
truncate: "…"
preferences:
other: Башка
posting_defaults: Posting defaults
public_timelines: Public timelines
relationships:
following: Язылгансыз
sessions:
Expand Down
2 changes: 0 additions & 2 deletions config/locales/ug.yml
Expand Up @@ -6,7 +6,5 @@ ug:
'404': The page you are looking for isn't here.
'406': This page is not available in the requested format.
'410': The page you were looking for doesn't exist here anymore.
'422':
'429': Too many requests
'500':
'503': The page could not be served due to a temporary server failure.
2 changes: 0 additions & 2 deletions config/locales/ur.yml
Expand Up @@ -6,7 +6,5 @@ ur:
'404': The page you are looking for isn't here.
'406': This page is not available in the requested format.
'410': The page you were looking for doesn't exist here anymore.
'422':
'429': Too many requests
'500':
'503': The page could not be served due to a temporary server failure.
2 changes: 0 additions & 2 deletions config/locales/uz.yml
Expand Up @@ -45,7 +45,5 @@ uz:
'404': The page you are looking for isn't here.
'406': This page is not available in the requested format.
'410': The page you were looking for doesn't exist here anymore.
'422':
'429': Too many requests
'500':
'503': The page could not be served due to a temporary server failure.
2 changes: 0 additions & 2 deletions config/locales/zgh.yml
Expand Up @@ -89,9 +89,7 @@ zgh:
'404': The page you are looking for isn't here.
'406': This page is not available in the requested format.
'410': The page you were looking for doesn't exist here anymore.
'422':
'429': Too many requests
'500':
'503': The page could not be served due to a temporary server failure.
exports:
archive_takeout:
Expand Down

0 comments on commit 6adfe52

Please sign in to comment.