about summary refs log tree commit diff
path: root/app/javascript/flavours
diff options
context:
space:
mode:
authorMélanie Chauvel <perso@hack-libre.org>2020-05-25 12:30:34 +0200
committerThibaut Girka <thib@sitedethib.com>2020-05-28 14:08:05 +0200
commit0b01492276f47bc8df8c1679b705ce33b3639fcf (patch)
treec3687b1e83926abf052d58333a0047585f2df2cf /app/javascript/flavours
parent44ea965557f6a7577218e475df4a9d671dcff506 (diff)
[Glitch] Change wording from “Hide media” to “Hide image/images” in Web UI
Port 40d81620b00f6c4ed30b78f95b443a08e62ae8fa to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours')
-rw-r--r--app/javascript/flavours/glitch/components/media_gallery.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/flavours/glitch/components/media_gallery.js b/app/javascript/flavours/glitch/components/media_gallery.js
index 9472e34bf..973406ad2 100644
--- a/app/javascript/flavours/glitch/components/media_gallery.js
+++ b/app/javascript/flavours/glitch/components/media_gallery.js
@@ -23,7 +23,7 @@ const messages = defineMessages({
     id: 'status.sensitive_toggle',
   },
   toggle_visible: {
-    defaultMessage: 'Hide media',
+    defaultMessage: 'Hide {number, plural, one {image} other {images}}',
     id: 'media_gallery.toggle_visible',
   },
   warning: {
@@ -368,7 +368,7 @@ class MediaGallery extends React.PureComponent {
         </button>
       );
     } else if (visible) {
-      spoilerButton = <IconButton title={intl.formatMessage(messages.toggle_visible)} icon='eye-slash' overlay onClick={this.handleOpen} />;
+      spoilerButton = <IconButton title={intl.formatMessage(messages.toggle_visible, { number: size })} icon='eye-slash' overlay onClick={this.handleOpen} />;
     } else {
       spoilerButton = (
         <button type='button' onClick={this.handleOpen} className='spoiler-button__overlay'>