Fix strings that could not be translated (#14980)

th-downstream
mayaeh 4 years ago committed by GitHub
parent 10ff8b1205
commit f1b2eea474

@ -12,6 +12,7 @@ const messages = defineMessages({
minutes: { id: 'intervals.full.minutes', defaultMessage: '{number, plural, one {# minute} other {# minutes}}' }, minutes: { id: 'intervals.full.minutes', defaultMessage: '{number, plural, one {# minute} other {# minutes}}' },
hours: { id: 'intervals.full.hours', defaultMessage: '{number, plural, one {# hour} other {# hours}}' }, hours: { id: 'intervals.full.hours', defaultMessage: '{number, plural, one {# hour} other {# hours}}' },
days: { id: 'intervals.full.days', defaultMessage: '{number, plural, one {# day} other {# days}}' }, days: { id: 'intervals.full.days', defaultMessage: '{number, plural, one {# day} other {# days}}' },
indefinite: { id: 'mute_modal.indefinite', defaultMessage: 'Indefinite' },
}); });
const mapStateToProps = state => { const mapStateToProps = state => {
@ -112,7 +113,7 @@ class MuteModal extends React.PureComponent {
{/* eslint-disable-next-line jsx-a11y/no-onchange */} {/* eslint-disable-next-line jsx-a11y/no-onchange */}
<select value={muteDuration} onChange={this.changeMuteDuration}> <select value={muteDuration} onChange={this.changeMuteDuration}>
<option value={0}>{intl.formatMessage({ id: 'mute_modal.indefinite' })}</option> <option value={0}>{intl.formatMessage(messages.indefinite)}</option>
<option value={300}>{intl.formatMessage(messages.minutes, { number: 5 })}</option> <option value={300}>{intl.formatMessage(messages.minutes, { number: 5 })}</option>
<option value={1800}>{intl.formatMessage(messages.minutes, { number: 30 })}</option> <option value={1800}>{intl.formatMessage(messages.minutes, { number: 30 })}</option>
<option value={3600}>{intl.formatMessage(messages.hours, { number: 1 })}</option> <option value={3600}>{intl.formatMessage(messages.hours, { number: 1 })}</option>

@ -2268,6 +2268,10 @@
"defaultMessage": "Push notifications", "defaultMessage": "Push notifications",
"id": "notifications.column_settings.push" "id": "notifications.column_settings.push"
}, },
{
"defaultMessage": "Desktop notifications are unavailable due to previously denied browser permissions request",
"id": "notifications.permission_denied"
},
{ {
"defaultMessage": "Quick filter bar", "defaultMessage": "Quick filter bar",
"id": "notifications.column_settings.filter_bar.category" "id": "notifications.column_settings.filter_bar.category"
@ -2295,6 +2299,10 @@
{ {
"defaultMessage": "Poll results:", "defaultMessage": "Poll results:",
"id": "notifications.column_settings.poll" "id": "notifications.column_settings.poll"
},
{
"defaultMessage": "New toots:",
"id": "notifications.column_settings.status"
} }
], ],
"path": "app/javascript/mastodon/features/notifications/components/column_settings.json" "path": "app/javascript/mastodon/features/notifications/components/column_settings.json"
@ -2378,6 +2386,23 @@
], ],
"path": "app/javascript/mastodon/features/notifications/components/notification.json" "path": "app/javascript/mastodon/features/notifications/components/notification.json"
}, },
{
"descriptors": [
{
"defaultMessage": "Never miss a thing",
"id": "notifications_permission_banner.title"
},
{
"defaultMessage": "To receive notifications when Mastodon isn't open, enable desktop notifications. You can control precisely which types of interactions generate desktop notifications through the {icon} button above once they're enabled.",
"id": "notifications_permission_banner.how_to_control"
},
{
"defaultMessage": "Enable desktop notifications",
"id": "notifications_permission_banner.enable"
}
],
"path": "app/javascript/mastodon/features/notifications/components/notifications_permission_banner.json"
},
{ {
"descriptors": [ "descriptors": [
{ {
@ -2387,6 +2412,10 @@
{ {
"defaultMessage": "Clear notifications", "defaultMessage": "Clear notifications",
"id": "notifications.clear" "id": "notifications.clear"
},
{
"defaultMessage": "Desktop notifications can't be enabled, as browser permission has been denied before",
"id": "notifications.permission_denied_alert"
} }
], ],
"path": "app/javascript/mastodon/features/notifications/containers/column_settings_container.json" "path": "app/javascript/mastodon/features/notifications/containers/column_settings_container.json"
@ -3004,6 +3033,22 @@
}, },
{ {
"descriptors": [ "descriptors": [
{
"defaultMessage": "{number, plural, one {# minute} other {# minutes}}",
"id": "intervals.full.minutes"
},
{
"defaultMessage": "{number, plural, one {# hour} other {# hours}}",
"id": "intervals.full.hours"
},
{
"defaultMessage": "{number, plural, one {# day} other {# days}}",
"id": "intervals.full.days"
},
{
"defaultMessage": "Indefinite",
"id": "mute_modal.indefinite"
},
{ {
"defaultMessage": "Are you sure you want to mute {name}?", "defaultMessage": "Are you sure you want to mute {name}?",
"id": "confirmations.mute.message" "id": "confirmations.mute.message"
@ -3016,6 +3061,10 @@
"defaultMessage": "Hide notifications from this user?", "defaultMessage": "Hide notifications from this user?",
"id": "mute_modal.hide_notifications" "id": "mute_modal.hide_notifications"
}, },
{
"defaultMessage": "Duration",
"id": "mute_modal.duration"
},
{ {
"defaultMessage": "Cancel", "defaultMessage": "Cancel",
"id": "confirmation_modal.cancel" "id": "confirmation_modal.cancel"

@ -275,8 +275,8 @@
"media_gallery.toggle_visible": "Hide {number, plural, one {image} other {images}}", "media_gallery.toggle_visible": "Hide {number, plural, one {image} other {images}}",
"missing_indicator.label": "Not found", "missing_indicator.label": "Not found",
"missing_indicator.sublabel": "This resource could not be found", "missing_indicator.sublabel": "This resource could not be found",
"mute_modal.hide_notifications": "Hide notifications from this user?",
"mute_modal.duration": "Duration", "mute_modal.duration": "Duration",
"mute_modal.hide_notifications": "Hide notifications from this user?",
"mute_modal.indefinite": "Indefinite", "mute_modal.indefinite": "Indefinite",
"navigation_bar.apps": "Mobile apps", "navigation_bar.apps": "Mobile apps",
"navigation_bar.blocks": "Blocked users", "navigation_bar.blocks": "Blocked users",
@ -324,6 +324,7 @@
"notifications.column_settings.reblog": "Boosts:", "notifications.column_settings.reblog": "Boosts:",
"notifications.column_settings.show": "Show in column", "notifications.column_settings.show": "Show in column",
"notifications.column_settings.sound": "Play sound", "notifications.column_settings.sound": "Play sound",
"notifications.column_settings.status": "New toots:",
"notifications.filter.all": "All", "notifications.filter.all": "All",
"notifications.filter.boosts": "Boosts", "notifications.filter.boosts": "Boosts",
"notifications.filter.favourites": "Favourites", "notifications.filter.favourites": "Favourites",
@ -333,6 +334,11 @@
"notifications.filter.statuses": "Updates from people you follow", "notifications.filter.statuses": "Updates from people you follow",
"notifications.group": "{count} notifications", "notifications.group": "{count} notifications",
"notifications.mark_as_read": "Mark every notification as read", "notifications.mark_as_read": "Mark every notification as read",
"notifications.permission_denied": "Cannot enable desktop notifications as permission has been denied.",
"notifications.permission_denied_alert": "Desktop notifications can't be enabled, as browser permission has been denied before",
"notifications_permission_banner.enable": "Enable desktop notifications",
"notifications_permission_banner.how_to_control": "To receive notifications when Mastodon isn't open, enable desktop notifications. You can control precisely which types of interactions generate desktop notifications through the {icon} button above once they're enabled.",
"notifications_permission_banner.title": "Never miss a thing",
"picture_in_picture.restore": "Put it back", "picture_in_picture.restore": "Put it back",
"poll.closed": "Closed", "poll.closed": "Closed",
"poll.refresh": "Refresh", "poll.refresh": "Refresh",

Loading…
Cancel
Save