Browse Source

Change wording from “Hide media” to “Hide image/images” in Web UI (#13834)

master
Mélanie Chauvel 3 years ago
committed by GitHub
parent
commit
40d81620b0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 18 additions and 17 deletions
  1. +3
    -2
      app/javascript/mastodon/components/media_gallery.js
  2. +1
    -1
      app/javascript/mastodon/locales/bg.json
  3. +1
    -1
      app/javascript/mastodon/locales/br.json
  4. +2
    -2
      app/javascript/mastodon/locales/defaultMessages.json
  5. +1
    -1
      app/javascript/mastodon/locales/en.json
  6. +1
    -1
      app/javascript/mastodon/locales/ga.json
  7. +1
    -1
      app/javascript/mastodon/locales/hi.json
  8. +1
    -1
      app/javascript/mastodon/locales/kn.json
  9. +1
    -1
      app/javascript/mastodon/locales/lt.json
  10. +1
    -1
      app/javascript/mastodon/locales/lv.json
  11. +1
    -1
      app/javascript/mastodon/locales/mk.json
  12. +1
    -1
      app/javascript/mastodon/locales/ml.json
  13. +1
    -1
      app/javascript/mastodon/locales/mr.json
  14. +1
    -1
      app/javascript/mastodon/locales/ms.json
  15. +1
    -1
      app/javascript/mastodon/locales/ur.json

+ 3
- 2
app/javascript/mastodon/components/media_gallery.js View File

@ -10,7 +10,8 @@ import { autoPlayGif, cropImages, displayMedia, useBlurhash } from '../initial_s
import { decode } from 'blurhash';
const messages = defineMessages({
toggle_visible: { id: 'media_gallery.toggle_visible', defaultMessage: 'Hide media' },
toggle_visible: { id: 'media_gallery.toggle_visible',
defaultMessage: 'Hide {number, plural, one {image} other {images}}' },
});
class Item extends React.PureComponent {
@ -338,7 +339,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'>

+ 1
- 1
app/javascript/mastodon/locales/bg.json View File

@ -257,7 +257,7 @@
"lists.subheading": "Your lists",
"load_pending": "{count, plural, one {# new item} other {# new items}}",
"loading_indicator.label": "Зареждане...",
"media_gallery.toggle_visible": "Hide media",
"media_gallery.toggle_visible": "Hide {number, plural, one {image} other {images}}",
"missing_indicator.label": "Not found",
"missing_indicator.sublabel": "This resource could not be found",
"mute_modal.hide_notifications": "Hide notifications from this user?",

+ 1
- 1
app/javascript/mastodon/locales/br.json View File

@ -257,7 +257,7 @@
"lists.subheading": "Ho listennoù",
"load_pending": "{count, plural, one {# new item} other {# new items}}",
"loading_indicator.label": "O kargañ...",
"media_gallery.toggle_visible": "Toggle visibility",
"media_gallery.toggle_visible": "Hide {number, plural, one {image} other {images}}",
"missing_indicator.label": "Digavet",
"missing_indicator.sublabel": "This resource could not be found",
"mute_modal.hide_notifications": "Hide notifications from this user?",

+ 2
- 2
app/javascript/mastodon/locales/defaultMessages.json View File

@ -217,7 +217,7 @@
{
"descriptors": [
{
"defaultMessage": "Hide media",
"defaultMessage": "Hide {number, plural, one {image} other {images}}",
"id": "media_gallery.toggle_visible"
},
{
@ -2969,4 +2969,4 @@
],
"path": "app/javascript/mastodon/features/video/index.json"
}
]
]

+ 1
- 1
app/javascript/mastodon/locales/en.json View File

@ -257,7 +257,7 @@
"lists.subheading": "Your lists",
"load_pending": "{count, plural, one {# new item} other {# new items}}",
"loading_indicator.label": "Loading...",
"media_gallery.toggle_visible": "Hide media",
"media_gallery.toggle_visible": "Hide {number, plural, one {image} other {images}}",
"missing_indicator.label": "Not found",
"missing_indicator.sublabel": "This resource could not be found",
"mute_modal.hide_notifications": "Hide notifications from this user?",

+ 1
- 1
app/javascript/mastodon/locales/ga.json View File

@ -257,7 +257,7 @@
"lists.subheading": "Your lists",
"load_pending": "{count, plural, one {# new item} other {# new items}}",
"loading_indicator.label": "Loading...",
"media_gallery.toggle_visible": "Hide media",
"media_gallery.toggle_visible": "Hide {number, plural, one {image} other {images}}",
"missing_indicator.label": "Not found",
"missing_indicator.sublabel": "This resource could not be found",
"mute_modal.hide_notifications": "Hide notifications from this user?",

+ 1
- 1
app/javascript/mastodon/locales/hi.json View File

@ -257,7 +257,7 @@
"lists.subheading": "Your lists",
"load_pending": "{count, plural, one {# new item} other {# new items}}",
"loading_indicator.label": "लोड हो रहा है...",
"media_gallery.toggle_visible": "Hide media",
"media_gallery.toggle_visible": "Hide {number, plural, one {image} other {images}}",
"missing_indicator.label": "नहीं मिला",
"missing_indicator.sublabel": "यह संसाधन नहीं मिल सका।",
"mute_modal.hide_notifications": "Hide notifications from this user?",

+ 1
- 1
app/javascript/mastodon/locales/kn.json View File

@ -257,7 +257,7 @@
"lists.subheading": "Your lists",
"load_pending": "{count, plural, one {# new item} other {# new items}}",
"loading_indicator.label": "Loading...",
"media_gallery.toggle_visible": "Hide media",
"media_gallery.toggle_visible": "Hide {number, plural, one {image} other {images}}",
"missing_indicator.label": "Not found",
"missing_indicator.sublabel": "This resource could not be found",
"mute_modal.hide_notifications": "Hide notifications from this user?",

+ 1
- 1
app/javascript/mastodon/locales/lt.json View File

@ -257,7 +257,7 @@
"lists.subheading": "Your lists",
"load_pending": "{count, plural, one {# new item} other {# new items}}",
"loading_indicator.label": "Loading...",
"media_gallery.toggle_visible": "Hide media",
"media_gallery.toggle_visible": "Hide {number, plural, one {image} other {images}}",
"missing_indicator.label": "Not found",
"missing_indicator.sublabel": "This resource could not be found",
"mute_modal.hide_notifications": "Hide notifications from this user?",

+ 1
- 1
app/javascript/mastodon/locales/lv.json View File

@ -257,7 +257,7 @@
"lists.subheading": "Your lists",
"load_pending": "{count, plural, one {# new item} other {# new items}}",
"loading_indicator.label": "Loading...",
"media_gallery.toggle_visible": "Hide media",
"media_gallery.toggle_visible": "Hide {number, plural, one {image} other {images}}",
"missing_indicator.label": "Not found",
"missing_indicator.sublabel": "This resource could not be found",
"mute_modal.hide_notifications": "Hide notifications from this user?",

+ 1
- 1
app/javascript/mastodon/locales/mk.json View File

@ -257,7 +257,7 @@
"lists.subheading": "Your lists",
"load_pending": "{count, plural, one {# new item} other {# new items}}",
"loading_indicator.label": "Loading...",
"media_gallery.toggle_visible": "Hide media",
"media_gallery.toggle_visible": "Hide {number, plural, one {image} other {images}}",
"missing_indicator.label": "Not found",
"missing_indicator.sublabel": "This resource could not be found",
"mute_modal.hide_notifications": "Hide notifications from this user?",

+ 1
- 1
app/javascript/mastodon/locales/ml.json View File

@ -257,7 +257,7 @@
"lists.subheading": "Your lists",
"load_pending": "{count, plural, one {# new item} other {# new items}}",
"loading_indicator.label": "Loading...",
"media_gallery.toggle_visible": "Hide media",
"media_gallery.toggle_visible": "Hide {number, plural, one {image} other {images}}",
"missing_indicator.label": "Not found",
"missing_indicator.sublabel": "This resource could not be found",
"mute_modal.hide_notifications": "Hide notifications from this user?",

+ 1
- 1
app/javascript/mastodon/locales/mr.json View File

@ -257,7 +257,7 @@
"lists.subheading": "Your lists",
"load_pending": "{count, plural, one {# new item} other {# new items}}",
"loading_indicator.label": "Loading...",
"media_gallery.toggle_visible": "Hide media",
"media_gallery.toggle_visible": "Hide {number, plural, one {image} other {images}}",
"missing_indicator.label": "Not found",
"missing_indicator.sublabel": "This resource could not be found",
"mute_modal.hide_notifications": "Hide notifications from this user?",

+ 1
- 1
app/javascript/mastodon/locales/ms.json View File

@ -257,7 +257,7 @@
"lists.subheading": "Your lists",
"load_pending": "{count, plural, one {# new item} other {# new items}}",
"loading_indicator.label": "Loading...",
"media_gallery.toggle_visible": "Hide media",
"media_gallery.toggle_visible": "Hide {number, plural, one {image} other {images}}",
"missing_indicator.label": "Not found",
"missing_indicator.sublabel": "This resource could not be found",
"mute_modal.hide_notifications": "Hide notifications from this user?",

+ 1
- 1
app/javascript/mastodon/locales/ur.json View File

@ -257,7 +257,7 @@
"lists.subheading": "Your lists",
"load_pending": "{count, plural, one {# new item} other {# new items}}",
"loading_indicator.label": "Loading...",
"media_gallery.toggle_visible": "Hide media",
"media_gallery.toggle_visible": "Hide {number, plural, one {image} other {images}}",
"missing_indicator.label": "Not found",
"missing_indicator.sublabel": "This resource could not be found",
"mute_modal.hide_notifications": "Hide notifications from this user?",

Loading…
Cancel
Save