From c00f281e6ca2000b19f9b842275d0623e4ef3ef3 Mon Sep 17 00:00:00 2001 From: ogerly Date: Thu, 22 Aug 2019 06:56:30 +0200 Subject: [PATCH] Translations and style adapted --- webapp/locales/de.json | 11 +++-- webapp/locales/en.json | 11 +++-- webapp/middleware/termsAndConditions.js | 2 +- webapp/pages/terms-and-conditions-confirm.vue | 45 ++++++------------- webapp/store/auth.js | 2 +- 5 files changed, 30 insertions(+), 41 deletions(-) diff --git a/webapp/locales/de.json b/webapp/locales/de.json index ce7b6647c..fd83322f5 100644 --- a/webapp/locales/de.json +++ b/webapp/locales/de.json @@ -21,11 +21,11 @@ } }, "site": { + "thx": "Danke!", "made": "Mit ❤ gemacht", "imprint": "Impressum", "data-privacy": "Datenschutz", "termsAndConditions": "Nutzungsbedingungen", - "newTermsAndConditions": "Neue Nutzungsbedingungen", "changelog": "Änderungen & Verlauf", "contact": "Kontakt", "tribunal": "Registergericht", @@ -35,9 +35,7 @@ "responsible": "Verantwortlicher gemäß § 55 Abs. 2 RStV ", "bank": "Bankverbindung", "germany": "Deutschland", - "code-of-conduct": "Verhaltenscodex", - "termsAndConditionsConfirmed": "Ich habe die Nutzungsbedingungen durchgelesen und stimme ihnen zu.", - "termsAndConditionsNewConfirm": "Bestätige bitte die neuen Nutzungsbedingungen" + "code-of-conduct": "Verhaltenscodex" }, "sorting": { "newest": "Neuste", @@ -571,6 +569,11 @@ "get-help": "Wenn du einem inakzeptablen Verhalten ausgesetzt bist, es miterlebst oder andere Bedenken hast, benachrichtige bitte so schnell wie möglich einen Organisator der Gemeinschaft und verlinke oder verweise auf den entsprechenden Inhalt:" }, "termsAndConditions": { + "newTermsAndConditions": "Neue Nutzungsbedingungen", + "termsAndConditionsConfirmed": "Ich habe die Nutzungsbedingungen durchgelesen und stimme ihnen zu.", + "termsAndConditionsNewConfirmText": "Unsere Nutzungsbedingungen haben sich geändert!", + "termsAndConditionsNewConfirm": "Ich bestätige die neuen Nutzungsbedingungen", + "agree": "Ich Stimme zu!", "risk": { "title": "Unfallgefahr", "description": "Das ist eine Testversion! Alle Daten, Dein Profil und die Server können jederzeit komplett vernichtet, verloren, verbrannt und vielleicht auch in der Nähe von Alpha Centauri synchronisiert werden. Die Benutzung läuft auf eigene Gefahr. Mit kommerziellen Nebenwirkungen ist jedoch nicht zu rechnen." diff --git a/webapp/locales/en.json b/webapp/locales/en.json index 594101d7a..500cbdb76 100644 --- a/webapp/locales/en.json +++ b/webapp/locales/en.json @@ -21,10 +21,10 @@ } }, "site": { + "thx": "Thanks!", "made": "Made with ❤", "imprint": "Imprint", "termsAndConditions": "Terms and conditions", - "newTermsAndConditions": "New Terms and conditions", "data-privacy": "Data privacy", "changelog": "Changes & History", "contact": "Contact", @@ -35,9 +35,7 @@ "responsible": "responsible for contents of this page (§ 55 Abs. 2 RStV)", "bank": "bank account", "germany": "Germany", - "code-of-conduct": "Code of Conduct", - "termsAndConditionsConfirmed": "I have read and confirmed the terms and conditions.", - "termsAndConditionsNewConfirm": "Please confirm the new Terms and Conditions" + "code-of-conduct": "Code of Conduct" }, "sorting": { "newest": "Newest", @@ -571,6 +569,11 @@ "get-help": "If you are subject to or witness unacceptable behavior, or have any other concerns, please notify a community organizer as soon as possible and link or refer to the corresponding content:" }, "termsAndConditions": { + "newTermsAndConditions": "New Terms and Conditions", + "termsAndConditionsConfirmed": "I have read and confirmed the Terms and Conditions.", + "termsAndConditionsNewConfirmText": "Our Terms and Conditions have changed!", + "termsAndConditionsNewConfirm": "I confirm the new Terms and Conditions", + "agree": "I agree!", "risk": { "title": "Risk of accident", "description": "This is a test version! All data, your profile and the server can be completely destroyed, wiped out, lost, burnt and eventually synchronised near Alpha Centauri at any time. Use on your own risk. Commercial effects are not likely though." diff --git a/webapp/middleware/termsAndConditions.js b/webapp/middleware/termsAndConditions.js index c5a27fa21..64141eed0 100644 --- a/webapp/middleware/termsAndConditions.js +++ b/webapp/middleware/termsAndConditions.js @@ -8,7 +8,7 @@ export default async ({ store, env, route, redirect }) => { } if (route.name === 'terms-and-conditions-confirm') return true // avoid endless loop - if(store.getters['auth/termsAndConditionsAgreed']) return true + if (store.getters['auth/termsAndConditionsAgreed']) return true let params = {} if (!isEmpty(route.path) && route.path !== '/') { diff --git a/webapp/pages/terms-and-conditions-confirm.vue b/webapp/pages/terms-and-conditions-confirm.vue index c28346587..706046fda 100644 --- a/webapp/pages/terms-and-conditions-confirm.vue +++ b/webapp/pages/terms-and-conditions-confirm.vue @@ -1,34 +1,17 @@