From 86d9dea0322387e5f1ee78b9c2a5c2181f2f8dd8 Mon Sep 17 00:00:00 2001 From: crockwave Date: Sun, 28 Jun 2020 12:34:14 -0500 Subject: [PATCH] Added mouseover hint to poll compose radiobutton, to let user know that a click toggles between single and multi-choice polls --- app/soapbox/features/compose/components/poll_form.js | 2 ++ app/soapbox/locales/ar.json | 1 + app/soapbox/locales/ast.json | 1 + app/soapbox/locales/bg.json | 1 + app/soapbox/locales/bn.json | 1 + app/soapbox/locales/br.json | 1 + app/soapbox/locales/ca.json | 1 + app/soapbox/locales/co.json | 1 + app/soapbox/locales/cs.json | 1 + app/soapbox/locales/cy.json | 1 + app/soapbox/locales/da.json | 1 + app/soapbox/locales/de.json | 1 + app/soapbox/locales/defaultMessages.json | 4 ++++ app/soapbox/locales/el.json | 1 + app/soapbox/locales/en.json | 1 + app/soapbox/locales/eo.json | 1 + app/soapbox/locales/es-AR.json | 1 + app/soapbox/locales/es.json | 1 + app/soapbox/locales/et.json | 1 + app/soapbox/locales/eu.json | 1 + app/soapbox/locales/fa.json | 1 + app/soapbox/locales/fi.json | 1 + app/soapbox/locales/fr.json | 1 + app/soapbox/locales/ga.json | 1 + app/soapbox/locales/gl.json | 1 + app/soapbox/locales/he.json | 1 + app/soapbox/locales/hi.json | 1 + app/soapbox/locales/hr.json | 1 + app/soapbox/locales/hu.json | 1 + app/soapbox/locales/hy.json | 1 + app/soapbox/locales/id.json | 1 + app/soapbox/locales/io.json | 1 + app/soapbox/locales/it.json | 1 + app/soapbox/locales/ja.json | 1 + app/soapbox/locales/ka.json | 1 + app/soapbox/locales/kk.json | 1 + app/soapbox/locales/ko.json | 1 + app/soapbox/locales/lt.json | 1 + app/soapbox/locales/lv.json | 1 + app/soapbox/locales/mk.json | 1 + app/soapbox/locales/ms.json | 1 + app/soapbox/locales/nl.json | 1 + app/soapbox/locales/nn.json | 1 + app/soapbox/locales/no.json | 1 + app/soapbox/locales/oc.json | 1 + app/soapbox/locales/pl.json | 1 + app/soapbox/locales/pt-BR.json | 1 + app/soapbox/locales/pt.json | 1 + app/soapbox/locales/ro.json | 1 + app/soapbox/locales/ru.json | 1 + app/soapbox/locales/sk.json | 1 + app/soapbox/locales/sl.json | 1 + app/soapbox/locales/sq.json | 1 + app/soapbox/locales/sr-Latn.json | 1 + app/soapbox/locales/sr.json | 1 + app/soapbox/locales/sv.json | 1 + app/soapbox/locales/ta.json | 1 + app/soapbox/locales/te.json | 1 + app/soapbox/locales/th.json | 1 + app/soapbox/locales/tr.json | 1 + app/soapbox/locales/uk.json | 1 + app/soapbox/locales/zh-CN.json | 1 + app/soapbox/locales/zh-HK.json | 1 + app/soapbox/locales/zh-TW.json | 1 + 64 files changed, 68 insertions(+) diff --git a/app/soapbox/features/compose/components/poll_form.js b/app/soapbox/features/compose/components/poll_form.js index 022f87330..efbaa3e19 100644 --- a/app/soapbox/features/compose/components/poll_form.js +++ b/app/soapbox/features/compose/components/poll_form.js @@ -19,6 +19,7 @@ const messages = defineMessages({ minutes: { id: 'intervals.full.minutes', defaultMessage: '{number, plural, one {# minute} other {# minutes}}' }, hours: { id: 'intervals.full.hours', defaultMessage: '{number, plural, one {# hour} other {# hours}}' }, days: { id: 'intervals.full.days', defaultMessage: '{number, plural, one {# day} other {# days}}' }, + hint: { id: 'compose_form.poll.type.hint', defaultMessage: 'Click to toggle poll type. Radio button (default) is single. Checkbox is multiple.' }, }); @injectIntl @@ -77,6 +78,7 @@ class Option extends React.PureComponent { onClick={this.handleToggleMultiple} role='button' tabIndex='0' + title={intl.formatMessage(messages.hint)} />