From 3d86e754f4c80a7cf40cb2cf1bc9b6e1c3a4264a Mon Sep 17 00:00:00 2001 From: Akihiko Odaki Date: Tue, 13 Mar 2018 16:10:12 +0900 Subject: [PATCH] Change the title of sensitive button by state (#6771) Icon showing the state may be confusing. (does the slahed eye icon mean the state that it is sensitive, or to mark it as sensitive?) Moreover, it may not help for blind people. The title will give the precise representation of the current state. --- .../compose/containers/sensitive_button_container.js | 5 +++-- app/javascript/mastodon/locales/ar.json | 3 ++- app/javascript/mastodon/locales/bg.json | 3 ++- app/javascript/mastodon/locales/ca.json | 3 ++- app/javascript/mastodon/locales/de.json | 3 ++- app/javascript/mastodon/locales/defaultMessages.json | 8 ++++++-- app/javascript/mastodon/locales/en.json | 3 ++- app/javascript/mastodon/locales/eo.json | 3 ++- app/javascript/mastodon/locales/es.json | 3 ++- app/javascript/mastodon/locales/fa.json | 3 ++- app/javascript/mastodon/locales/fi.json | 3 ++- app/javascript/mastodon/locales/fr.json | 3 ++- app/javascript/mastodon/locales/gl.json | 3 ++- app/javascript/mastodon/locales/he.json | 3 ++- app/javascript/mastodon/locales/hr.json | 3 ++- app/javascript/mastodon/locales/hu.json | 3 ++- app/javascript/mastodon/locales/hy.json | 3 ++- app/javascript/mastodon/locales/id.json | 3 ++- app/javascript/mastodon/locales/io.json | 3 ++- app/javascript/mastodon/locales/it.json | 3 ++- app/javascript/mastodon/locales/ja.json | 3 ++- app/javascript/mastodon/locales/ko.json | 3 ++- app/javascript/mastodon/locales/nl.json | 3 ++- app/javascript/mastodon/locales/no.json | 3 ++- app/javascript/mastodon/locales/oc.json | 3 ++- app/javascript/mastodon/locales/pl.json | 3 ++- app/javascript/mastodon/locales/pt-BR.json | 3 ++- app/javascript/mastodon/locales/pt.json | 3 ++- app/javascript/mastodon/locales/ru.json | 3 ++- app/javascript/mastodon/locales/sk.json | 3 ++- app/javascript/mastodon/locales/sr-Latn.json | 3 ++- app/javascript/mastodon/locales/sr.json | 3 ++- app/javascript/mastodon/locales/sv.json | 3 ++- app/javascript/mastodon/locales/th.json | 3 ++- app/javascript/mastodon/locales/tr.json | 3 ++- app/javascript/mastodon/locales/uk.json | 3 ++- app/javascript/mastodon/locales/zh-CN.json | 3 ++- app/javascript/mastodon/locales/zh-HK.json | 3 ++- app/javascript/mastodon/locales/zh-TW.json | 3 ++- 39 files changed, 83 insertions(+), 41 deletions(-) diff --git a/app/javascript/mastodon/features/compose/containers/sensitive_button_container.js b/app/javascript/mastodon/features/compose/containers/sensitive_button_container.js index c8e74f5a1a..43de8f213e 100644 --- a/app/javascript/mastodon/features/compose/containers/sensitive_button_container.js +++ b/app/javascript/mastodon/features/compose/containers/sensitive_button_container.js @@ -9,7 +9,8 @@ import spring from 'react-motion/lib/spring'; import { injectIntl, defineMessages } from 'react-intl'; const messages = defineMessages({ - title: { id: 'compose_form.sensitive', defaultMessage: 'Mark media as sensitive' }, + marked: { id: 'compose_form.sensitive.marked', defaultMessage: 'Media is marked as sensitive' }, + unmarked: { id: 'compose_form.sensitive.unmarked', defaultMessage: 'Media is not marked as sensitive' }, }); const mapStateToProps = state => ({ @@ -50,7 +51,7 @@ class SensitiveButton extends React.PureComponent {