Skip to content

Commit

Permalink
include other locale files for i18n-tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
fwolfst committed Oct 7, 2020
1 parent 6e46a15 commit 1900c4c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion app/views/admin/blog/posts/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
.buttons
= link_to t('actions.Show'), post, class: 'button is-small'
= link_to t('actions.Edit'), edit_admin_blog_post_path(post), class: 'button is-small'
= link_to t('actions.Destroy'), [:admin, post], method: :delete, data: { confirm: t('Are you sure?') }, class: 'button is-small is-danger'
= link_to t('actions.Destroy'), [:admin, post], method: :delete, data: { confirm: t('actions.are_you_sure?') }, class: 'button is-small is-danger'

%br

Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/places/_table.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
%td= place.address
%td= link_to t('actions.show'), [:admin, place]
%td= link_to t('actions.edit'), edit_admin_place_path(place)
%td= link_to t('actions.Destroy'), [:admin, place], method: :delete, data: { confirm: 'Are you sure?' }
%td= link_to t('actions.Destroy'), [:admin, place], method: :delete, data: { confirm: t('actions.are_you_sure?') }

%br

2 changes: 1 addition & 1 deletion app/views/styles/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
%i.fas.fa-user-shield
%span
= t('style.admin.edit-lesson')
= link_to [:admin, lesson.style, lesson], method: :delete, data: { confirm: 'Are you sure?' }, class: 'button is-link is-outlined is-small' do
= link_to [:admin, lesson.style, lesson], method: :delete, data: { confirm: t('actions.are_you_sure?') }, class: 'button is-link is-outlined is-small' do
%span.icon.is-small
%i.fas.fa-user-shield
%span
Expand Down
3 changes: 2 additions & 1 deletion config/i18n-tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ data:
## Default:
# - config/locales/%{locale}.yml
## More files:
# - config/locales/**/*.%{locale}.yml
- config/locales/%{locale}.yml
- config/locales/**/*.%{locale}.yml

# Locale files to write new keys to, based on a list of key pattern => file rules. Matched from top to bottom:
# `i18n-tasks normalize -p` will force move the keys according to these rules
Expand Down
3 changes: 1 addition & 2 deletions config/locales/actions.de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
---
de:
actions:
are_you_sure?: Bist du dir sicher?
Back: Zurück
delete: löschen
Delete: Löschen
destroy: löschen
Destroy: Löschen
edit: bearbeiten
Expand Down
10 changes: 2 additions & 8 deletions config/locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,10 @@ de:
Date_to: Von
'Date_to:': 'Bis:'
Home: Start
Key: Name
Lesson: Lektion
Link: Link
Listing_appointments: Termin-Liste
Name: Name
Notice: Notiz
Save: Speichern
Settings: Einstellungen
Value: Wert
about_us: Über uns
admin:
appointment:
Expand Down Expand Up @@ -282,7 +277,6 @@ de:
in_future: Zukünftig
in_past: Vergangen
intro: Erklärung
intro_text_homepage: Intro text homepage
invite: Invite
learn_more: Mehr erfahren ...
length: Länge
Expand Down Expand Up @@ -315,7 +309,7 @@ de:
seminars: Seminare
site_settings: Seiten-Einstellungen
user:
settings: Einstellungen
account: Mein Konto
users: User
videos: Videos
new_lesson: Neue Lektion
Expand Down Expand Up @@ -370,13 +364,13 @@ de:
see_you: Bis bald!
subject: Schnupperwoche endet bald!
subscribe_to_continue: Um weiter mit uns Yoga zu praktizieren und Zugriff auf alle Videos zu bekommen, solltest du dich für ein Abonnement anmelden.
your_subscription_ends_soon: Your subscription ends soon
your_trial_ends_soon: Deine Schnupperwoche bei %{site} nähert sich dem Ende.
subscription_state:
feedback_contact: Feedback / Kontakt
more-info: Infos über ein Abo
subscription_ends_in: Es endet in %{how_long_until_end}.
trial_ends_in: Sie endet in %{how_long_until_end}.
want_to_leave_feedback?: Want to leave feedback?
whats_next?: Wie geht es weiter?
you-are-in-trial-period: Du bist in der Schnupperwoche
your-are-subscriped: Du hast ein Abonnement
Expand Down

0 comments on commit 1900c4c

Please sign in to comment.