Skip to content

Commit

Permalink
translations (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
fwolfst committed Oct 14, 2020
1 parent be5dced commit e0db177
Show file tree
Hide file tree
Showing 9 changed files with 47 additions and 41 deletions.
7 changes: 7 additions & 0 deletions app/views/admin/course/lessons/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,28 @@
%li= message

.field
-# i18n-tasks-use t('activerecord.attributes.lesson.name')
= f.label :name
= f.text_field :name
.field
-# i18n-tasks-use t('activerecord.attributes.lesson.description')
= f.label :description
= f.text_area :description
.field
-# i18n-tasks-use t('activerecord.attributes.lesson.date_start')
= f.label :date_start
= f.datetime_select :date_start
.field
-# i18n-tasks-use t('activerecord.attributes.lesson.date_end')
= f.label :date_end
= f.datetime_select :date_end
.field
-# i18n-tasks-use t('activerecord.attributes.lesson.video')
= f.label :video
= f.file_field :video, direct_upload: true
-#= f.hidden_field :video, value: video.signed_id
.field
-# i18n-tasks-use t('activerecord.attributes.lesson.preview_image')
= f.label :preview_image
.media
.media-left
Expand All @@ -38,6 +44,7 @@
.media-content
= f.file_field :preview_image
.field
-# i18n-tasks-use t('activerecord.attributes.lesson.active')
= f.label :active
= f.check_box :active
.actions
Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/course/lessons/edit.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
-# SPDX-License-Identifier: AGPL-3.0-or-later
= render layout: 'admin/shared/edit',
locals: { edit_title: t('.edit.title'),
locals: { edit_title: t('.title'),
back_target: admin_course_path(@lesson.style) } do
= render 'form'
12 changes: 6 additions & 6 deletions app/views/admin/users/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,19 @@
%thead
%tr
%th
= t('user.subscriptions.timespan')
= t('admin.user.subscriptions.timespan')
%th
= t('user.subscriptions.notes')
= t('admin.user.subscriptions.notes')
%th
%tbody
- if @user.role == "admin"
%tr
%td(colspan=2)
= t('user.subsciptions.admins_no_need')
= t('admin.user.subscriptions.admins_no_need')
- elsif @user.subscriptions.empty?
%tr
%td(colspan=2)
= t('user.subscriptions.none')
= t('admin.user.subscriptions.none')
- else
- @user.subscriptions.each do |subscription|
%tr
Expand All @@ -73,10 +73,10 @@
%td
= subscription.notes
%td
= link_to t('edit'),
= link_to t('actions.edit'),
edit_admin_user_subscription_path(subscription.user, subscription),
class: 'button'
= link_to t('delete'), [:admin, subscription.user, subscription],
= link_to t('actions.delete'), [:admin, subscription.user, subscription],
method: :delete,
data: { confirm: t('actions.are_you_sure?') },
class: 'button'
Expand Down
4 changes: 2 additions & 2 deletions app/views/styles/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@

- if @style.lessons.active.empty?
.box
=t('styles.no_lessons_yet')
=t('styles.no-videos-yet')
- first = @style.lessons.active.rank(:row_order).first
- last = @style.lessons.active.rank(:row_order).last
- access_level = AccessState.new(current_user).level
Expand Down Expand Up @@ -190,7 +190,7 @@
%span.icon.is-small
%i.fas.fa-user-shield
%span
=t('styles.edit')
=t('admin.styles.edit')

%hr

Expand Down
2 changes: 1 addition & 1 deletion app/views/terms_acceptances/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
-# SPDX-License-Identifier: AGPL-3.0-or-later
%h1.title
= t('privacy_statement')
= t('.privacy_statement')
.container.mb-5
.content.is-medium.has-text-justified
!= SiteSetting['privacy_statement']
Expand Down
1 change: 1 addition & 0 deletions config/locales/actions.de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ de:
Save: Speichern
Show: Anzeigen
are_you_sure?: Bist du dir sicher?
delete: löschen
destroy: löschen
edit: bearbeiten
hide: verbergen
Expand Down
22 changes: 17 additions & 5 deletions config/locales/admin.de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ de:
lesson-successfully-created: Video erstellt.
destroy:
lesson-destroyed: Video gelöscht.
edit:
title: Video bearbeiten
update:
lesson-updated: Video aktualisiert.
courses:
creation-succes: Kurs erstellt.
deletion-success: Kurs gelöscht.
Expand Down Expand Up @@ -86,8 +90,16 @@ de:
new: Neuer Style
new-video: Neues Video
update-success: Style aktualisiert
admin:
user:
never-signed-in: Noch nie eingeloggt
unconfirmed: unbestätigt
user-heading: User
subscriptions:
total: Gesamt
user:
never-signed-in: Noch nie eingeloggt
subscriptions:
admins_no_need: Admins brauchen kein Abo
none: Keines
notes: Notizen
timespan: Zeitraum
unconfirmed: unbestätigt
user-heading: User
users:
unconfirmed: Unbestätigt
35 changes: 9 additions & 26 deletions config/locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
de:
Course: Kurs
Courses: Kurse
Customers: Kund*n
admin:
course:
new: Neu
Expand All @@ -29,11 +28,6 @@ de:
sitesetting-successfully-created: Einstellung erstellt.
update:
site-setting-successfully-updated: Einstellung aktualisiert.
subscriptions:
creation-successfull: Abonnement erstellt.
destroy-success: Abonnement gelöscht.
total: Total
update-successful: Abonnement aktualisiert.
user:
are-you-sure-to-destroy: "%{email} wirklich löschen?"
back_to_admin: Zurück als Admin
Expand Down Expand Up @@ -123,8 +117,6 @@ de:
edit: Bearbeiten
listing-heading: Alle Kurse
title-all: Alle Kurse
customers: Kund*n
delete: Löschen
devise:
failure:
invited: Du hast noch eine ausstehende Einladung, akzeptiere sie um Dein Konto zu erstellen.
Expand Down Expand Up @@ -211,6 +203,7 @@ de:
ten_days_free: "10 kostenlose Tage"
navigation:
admin: Admin
asana-lexicon: Asana-Lexikon
background-jobs: Background Jobs
blog: Blog
contact: Kontakt
Expand Down Expand Up @@ -250,6 +243,11 @@ de:
sign_out: Abmelden
sitesetting:
edit: Edit
styles:
new-video: Neues Video
no-videos-yet: Noch keine Videos
videos: Videos
videos-inactive: Nicht aktive Videos
subscription:
currently_active: Jetzt aktiv
new: Neu
Expand Down Expand Up @@ -290,33 +288,18 @@ de:
your-subscription-ended: Dein Abonnement ist abgelaufen
your-trial-ended: Deine Schnupperwoche ist abgelaufen
terms_acceptances:
actions: Aktionen
create:
welcome: Super! Willkommen und viel Spaß!
privacy_statement: Datenschutzerklärung
show:
acceptance: Zustimmung
actions: Aktionen
anonymize: Mein Konto zerstören
get_my_data: Zeig mir meine Daten!
have_to_agree: Du musst den AGB zustimmen und die Datenschutzerklärung als gelesen markieren.
not-happy?: Wenn Du den AGBs nicht zustimmen möchtest oder die Angabe Deiner Daten zu heikel ist, musst Du Dein Konto bei uns leider aufgeben.
privacy_statement: Datenschutzerklärung
user:
confirmed_at: Bestätigt am
created_at: Erstellt am
email: E-Mail
in_trial_till: Schnupperphase bis
last_sign_in_at: Zuletzt eingeloggt am
never-signed-in: Noch nie eingeloggt
sign_in_count: Anzahl Anmeldungen
subsciptions:
admins_no_need: Admins brauchen das nicht
subscription_till: Subscription bis
subscriptions:
none: Keine
notes: Notizen
timespan: Zeitraum
unconfirmed: Unbestätigt
user-heading: User
your_data: Deine Daten
video:
length: Länge
minutes: Minuten
Expand Down
3 changes: 3 additions & 0 deletions config/locales/models.de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ de:
end_time: Endzeit
active: Aktiv
lesson:
active: Aktiv
course: Kurs
date_end: End-Zeit
date_start: Start-Zeit
description: Beschreibung
Expand All @@ -51,6 +53,7 @@ de:
site_setting:
value: Wert
user:
id: Datenbank-ID
email: E-Mail
read_privacy_terms: Stimme AGB zu
tos_agreement: Datenschutzhinweise gelesen
Expand Down

0 comments on commit e0db177

Please sign in to comment.