Skip to content

Commit

Permalink
add translation test pressure (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
fwolfst committed Oct 9, 2020
1 parent 4b0f8c1 commit 6f894d1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 19 deletions.
10 changes: 0 additions & 10 deletions config/locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,13 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
---
de:
Back: Zurück
Course: Kurs
Courses: Kurse
Customers: Kund*n
Date_from: Von
Date_to: Von
'Date_to:': 'Bis:'
Home: Start
Lesson: Lektion
Link: Link
Name: Name
about_us: Über uns
admin:
course:
lessons:
Expand Down Expand Up @@ -248,8 +243,6 @@ de:
subtitle: Praktiziere wo Du willst, wann Du willst
welcome: Willkommen
in: in
in_future: Zukünftig
in_past: Vergangen
intro: Erklärung
invite: Invite
learn_more: Mehr erfahren ...
Expand Down Expand Up @@ -285,11 +278,9 @@ de:
account: Mein Konto
users: User
videos: Videos
new_lesson: Neue Lektion
no-video-support: Dein Browser unterstützt keine Videos!
none: Keine
not authorized: Nicht authorisiert
number_lessons: Anzahl Lektionen
pagy:
showing_from_to_total: Zeige %{item_name} %{from}-%{to} von %{total} gesamt.
register:
Expand Down Expand Up @@ -367,7 +358,6 @@ de:
timespan: Zeitraum
unconfirmed: Unbestätigt
user-heading: User
users: Users
video:
length: Länge
minutes: Minuten
Expand Down
5 changes: 0 additions & 5 deletions config/locales/models.de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ de:
read_privacy_terms: Stimme AGB zu
tos_agreement: Datenschutzhinweise gelesen
models:
appointment:
labels:
date_from: Von
one: Termin
other: Termine
course:
one: Kurs
other: Kurse
Expand Down
8 changes: 4 additions & 4 deletions test/i18n_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ def setup
end

# Drive this down
def test_no_more_than_100_missing_keys
assert @missing_keys.leaves.count < 100,
def test_no_more_than_42_missing_keys
assert @missing_keys.leaves.count < 43,
"Missing #{@missing_keys.leaves.count} i18n keys, run `i18n-tasks missing' to show them"
end

# Drive this down
def test_no_more_than_100_unused_keys
assert @unused_keys.leaves.count < 100,
def test_no_more_than_80_unused_keys
assert @unused_keys.leaves.count < 80,
"#{@unused_keys.leaves.count} unused i18n keys, run `i18n-tasks unused' to show them"
end

Expand Down

0 comments on commit 6f894d1

Please sign in to comment.