From 1900c4cb7b439394dbcade6c191ee95f357c18f7 Mon Sep 17 00:00:00 2001 From: Felix Wolfsteller Date: Wed, 7 Oct 2020 17:07:51 +0200 Subject: [PATCH] include other locale files for i18n-tasks --- app/views/admin/blog/posts/index.html.haml | 2 +- app/views/admin/places/_table.html.haml | 2 +- app/views/styles/show.html.haml | 2 +- config/i18n-tasks.yml | 3 ++- config/locales/actions.de.yml | 3 +-- config/locales/de.yml | 10 ++-------- 6 files changed, 8 insertions(+), 14 deletions(-) diff --git a/app/views/admin/blog/posts/index.html.haml b/app/views/admin/blog/posts/index.html.haml index 45a6a10..1ab72e4 100644 --- a/app/views/admin/blog/posts/index.html.haml +++ b/app/views/admin/blog/posts/index.html.haml @@ -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 diff --git a/app/views/admin/places/_table.html.haml b/app/views/admin/places/_table.html.haml index ab35ce6..779eeb4 100644 --- a/app/views/admin/places/_table.html.haml +++ b/app/views/admin/places/_table.html.haml @@ -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 diff --git a/app/views/styles/show.html.haml b/app/views/styles/show.html.haml index f2ce414..615967f 100644 --- a/app/views/styles/show.html.haml +++ b/app/views/styles/show.html.haml @@ -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 diff --git a/config/i18n-tasks.yml b/config/i18n-tasks.yml index 011de3a..98c2c19 100644 --- a/config/i18n-tasks.yml +++ b/config/i18n-tasks.yml @@ -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 diff --git a/config/locales/actions.de.yml b/config/locales/actions.de.yml index 0353f0a..78a839f 100644 --- a/config/locales/actions.de.yml +++ b/config/locales/actions.de.yml @@ -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 diff --git a/config/locales/de.yml b/config/locales/de.yml index f02b1ec..52cb346 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -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: @@ -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 @@ -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 @@ -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