From bf363621d386f7b6cbdb8c525acf8828cd36d7cf Mon Sep 17 00:00:00 2001 From: Helmut Januschka Date: Thu, 16 Aug 2018 14:02:07 +0200 Subject: [PATCH 1/5] support translation in button --- .../client/components/PermalinkButton.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/talk-plugin-permalink/client/components/PermalinkButton.js b/plugins/talk-plugin-permalink/client/components/PermalinkButton.js index 5e0fb21d8..911ad8f82 100644 --- a/plugins/talk-plugin-permalink/client/components/PermalinkButton.js +++ b/plugins/talk-plugin-permalink/client/components/PermalinkButton.js @@ -105,9 +105,9 @@ export default class PermalinkButton extends React.Component { }, ])} > - {!copyFailure && !copySuccessful && 'Copy'} - {copySuccessful && 'Copied'} - {copyFailure && 'Not supported'} + {!copyFailure && !copySuccessful && t('common.copy') } + {copySuccessful && t('common.copied') } + {copyFailure && t('common.notsupported') } From cb57e5c1e11fec82e1fe3d83158f6a08db1535c4 Mon Sep 17 00:00:00 2001 From: Helmut Januschka Date: Thu, 16 Aug 2018 14:03:23 +0200 Subject: [PATCH 2/5] add DE translation --- locales/de.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/locales/de.yml b/locales/de.yml index 4c6bd84e3..3d996bbbd 100644 --- a/locales/de.yml +++ b/locales/de.yml @@ -48,6 +48,8 @@ de: comment_post_notif_premod: 'Vielen Dank für Ihren Kommentar. Unsere Moderatoren werden ihn in Kürze bearbeiten.' comment_singular: Kommentar common: + copied: 'Kopiert' + notsupported: 'Nicht unterstützt' copy: Kopieren error: 'Ein Problem ist aufgetreten.' reaction: 'Reaktion' From e48d89a60711d7ee5ada845c3c37c9cb058db3e1 Mon Sep 17 00:00:00 2001 From: Helmut Januschka Date: Thu, 16 Aug 2018 14:03:57 +0200 Subject: [PATCH 3/5] Update en.yml --- locales/en.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/locales/en.yml b/locales/en.yml index 07b08bc4c..5bbb7b896 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -49,6 +49,8 @@ en: comment_singular: Comment common: copy: Copy + copied: 'Copied' + notsupported: 'Not supported' error: 'An error has occurred.' reaction: reaction reactions: reactions From b070a7cc52dda1fa5e3f584d171ae0ba7d9934a0 Mon Sep 17 00:00:00 2001 From: Helmut Januschka Date: Thu, 16 Aug 2018 14:25:48 +0200 Subject: [PATCH 4/5] cs fixes --- .../client/components/PermalinkButton.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/talk-plugin-permalink/client/components/PermalinkButton.js b/plugins/talk-plugin-permalink/client/components/PermalinkButton.js index 911ad8f82..cbc285f59 100644 --- a/plugins/talk-plugin-permalink/client/components/PermalinkButton.js +++ b/plugins/talk-plugin-permalink/client/components/PermalinkButton.js @@ -105,9 +105,9 @@ export default class PermalinkButton extends React.Component { }, ])} > - {!copyFailure && !copySuccessful && t('common.copy') } - {copySuccessful && t('common.copied') } - {copyFailure && t('common.notsupported') } + {!copyFailure && !copySuccessful && t('common.copy')} + {copySuccessful && t('common.copied')} + {copyFailure && t('common.notsupported')} From 5427f295f6d43d605281e64fb9829dc412046ab0 Mon Sep 17 00:00:00 2001 From: Helmut Januschka Date: Tue, 28 Aug 2018 15:48:50 +0200 Subject: [PATCH 5/5] add german translation for sort-upvoted --- plugins/talk-plugin-sort-most-upvoted/client/translations.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/talk-plugin-sort-most-upvoted/client/translations.yml b/plugins/talk-plugin-sort-most-upvoted/client/translations.yml index 6a673a767..95f7d3689 100644 --- a/plugins/talk-plugin-sort-most-upvoted/client/translations.yml +++ b/plugins/talk-plugin-sort-most-upvoted/client/translations.yml @@ -1,6 +1,9 @@ en: talk-plugin-sort-most-upvoted: label: Most upvoted first +de: + talk-plugin-sort-most-upvoted: + label: Am besten bewertet es: talk-plugin-sort-oldest: label: Más votadas primero