Skip to content

Commit e0b35f6

Browse files
ariasuniMage
authored andcommitted
Change wording from “Hide media” to “Hide image/images” in Web UI (mastodon#13834)
1 parent 9439277 commit e0b35f6

15 files changed

Lines changed: 18 additions & 17 deletions

File tree

app/javascript/mastodon/components/media_gallery.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ import { autoPlayGif, cropImages, displayMedia, useBlurhash } from '../initial_s
1010
import { decode } from 'blurhash';
1111

1212
const messages = defineMessages({
13-
toggle_visible: { id: 'media_gallery.toggle_visible', defaultMessage: 'Hide media' },
13+
toggle_visible: { id: 'media_gallery.toggle_visible',
14+
defaultMessage: 'Hide {number, plural, one {image} other {images}}' },
1415
});
1516

1617
class Item extends React.PureComponent {
@@ -350,7 +351,7 @@ class MediaGallery extends React.PureComponent {
350351
</button>
351352
);
352353
} else if (visible) {
353-
spoilerButton = <IconButton title={intl.formatMessage(messages.toggle_visible)} icon='eye-slash' overlay onClick={this.handleOpen} />;
354+
spoilerButton = <IconButton title={intl.formatMessage(messages.toggle_visible, { number: size })} icon='eye-slash' overlay onClick={this.handleOpen} />;
354355
} else {
355356
spoilerButton = (
356357
<button type='button' onClick={this.handleOpen} className='spoiler-button__overlay'>

app/javascript/mastodon/locales/bg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
"lists.subheading": "Your lists",
258258
"load_pending": "{count, plural, one {# new item} other {# new items}}",
259259
"loading_indicator.label": "Зареждане...",
260-
"media_gallery.toggle_visible": "Hide media",
260+
"media_gallery.toggle_visible": "Hide {number, plural, one {image} other {images}}",
261261
"missing_indicator.label": "Not found",
262262
"missing_indicator.sublabel": "This resource could not be found",
263263
"mute_modal.hide_notifications": "Hide notifications from this user?",

app/javascript/mastodon/locales/br.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
"lists.subheading": "Ho listennoù",
258258
"load_pending": "{count, plural, one {# new item} other {# new items}}",
259259
"loading_indicator.label": "O kargañ...",
260-
"media_gallery.toggle_visible": "Toggle visibility",
260+
"media_gallery.toggle_visible": "Hide {number, plural, one {image} other {images}}",
261261
"missing_indicator.label": "Digavet",
262262
"missing_indicator.sublabel": "This resource could not be found",
263263
"mute_modal.hide_notifications": "Hide notifications from this user?",

app/javascript/mastodon/locales/defaultMessages.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@
217217
{
218218
"descriptors": [
219219
{
220-
"defaultMessage": "Hide media",
220+
"defaultMessage": "Hide {number, plural, one {image} other {images}}",
221221
"id": "media_gallery.toggle_visible"
222222
},
223223
{
@@ -3195,4 +3195,4 @@
31953195
],
31963196
"path": "app/javascript/pawoo/containers/suggestion_tags_container.json"
31973197
}
3198-
]
3198+
]

app/javascript/mastodon/locales/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
"lists.subheading": "Your lists",
258258
"load_pending": "{count, plural, one {# new item} other {# new items}}",
259259
"loading_indicator.label": "Loading...",
260-
"media_gallery.toggle_visible": "Hide media",
260+
"media_gallery.toggle_visible": "Hide {number, plural, one {image} other {images}}",
261261
"missing_indicator.label": "Not found",
262262
"missing_indicator.sublabel": "This resource could not be found",
263263
"mute_modal.hide_notifications": "Hide notifications from this user?",

app/javascript/mastodon/locales/ga.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
"lists.subheading": "Your lists",
258258
"load_pending": "{count, plural, one {# new item} other {# new items}}",
259259
"loading_indicator.label": "Loading...",
260-
"media_gallery.toggle_visible": "Hide media",
260+
"media_gallery.toggle_visible": "Hide {number, plural, one {image} other {images}}",
261261
"missing_indicator.label": "Not found",
262262
"missing_indicator.sublabel": "This resource could not be found",
263263
"mute_modal.hide_notifications": "Hide notifications from this user?",

app/javascript/mastodon/locales/hi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
"lists.subheading": "Your lists",
258258
"load_pending": "{count, plural, one {# new item} other {# new items}}",
259259
"loading_indicator.label": "लोड हो रहा है...",
260-
"media_gallery.toggle_visible": "Hide media",
260+
"media_gallery.toggle_visible": "Hide {number, plural, one {image} other {images}}",
261261
"missing_indicator.label": "नहीं मिला",
262262
"missing_indicator.sublabel": "यह संसाधन नहीं मिल सका।",
263263
"mute_modal.hide_notifications": "Hide notifications from this user?",

app/javascript/mastodon/locales/kn.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
"lists.subheading": "Your lists",
258258
"load_pending": "{count, plural, one {# new item} other {# new items}}",
259259
"loading_indicator.label": "Loading...",
260-
"media_gallery.toggle_visible": "Hide media",
260+
"media_gallery.toggle_visible": "Hide {number, plural, one {image} other {images}}",
261261
"missing_indicator.label": "Not found",
262262
"missing_indicator.sublabel": "This resource could not be found",
263263
"mute_modal.hide_notifications": "Hide notifications from this user?",

app/javascript/mastodon/locales/lt.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
"lists.subheading": "Your lists",
258258
"load_pending": "{count, plural, one {# new item} other {# new items}}",
259259
"loading_indicator.label": "Loading...",
260-
"media_gallery.toggle_visible": "Hide media",
260+
"media_gallery.toggle_visible": "Hide {number, plural, one {image} other {images}}",
261261
"missing_indicator.label": "Not found",
262262
"missing_indicator.sublabel": "This resource could not be found",
263263
"mute_modal.hide_notifications": "Hide notifications from this user?",

app/javascript/mastodon/locales/lv.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
"lists.subheading": "Your lists",
258258
"load_pending": "{count, plural, one {# new item} other {# new items}}",
259259
"loading_indicator.label": "Loading...",
260-
"media_gallery.toggle_visible": "Hide media",
260+
"media_gallery.toggle_visible": "Hide {number, plural, one {image} other {images}}",
261261
"missing_indicator.label": "Not found",
262262
"missing_indicator.sublabel": "This resource could not be found",
263263
"mute_modal.hide_notifications": "Hide notifications from this user?",

0 commit comments

Comments
 (0)