|
| 1 | +/* @flow strict-local */ |
| 2 | + |
| 3 | +/** |
| 4 | + * The feature level at which we want to say "channel" instead of "stream". |
| 5 | + * |
| 6 | + * Outside a per-account context, check the feature level of the active |
| 7 | + * account, if there is one. If there isn't an active account, just choose |
| 8 | + * "channel" terminology unconditionally. |
| 9 | + */ |
| 10 | +export const streamChannelRenameFeatureLevel = 1; // TODO |
| 11 | + |
| 12 | +/** |
| 13 | + * A messageId: messageId map, from "stream" terminology to "channel". |
| 14 | + * |
| 15 | + * When appropriate (see streamChannelRenameFeatureLevel), use this to patch |
| 16 | + * UI-string data for all languages, so that the UI says "channel" instead |
| 17 | + * of "stream". See https://github.com/zulip/zulip-mobile/issues/5827 . |
| 18 | + * |
| 19 | + * For example, use this to make a copy of messages_en that has |
| 20 | + * |
| 21 | + * "Notify stream": "Notify channel", |
| 22 | + * |
| 23 | + * instead of |
| 24 | + * |
| 25 | + * "Notify stream": "Notify stream", |
| 26 | + * "Notify channel": "Notify channel", |
| 27 | + * |
| 28 | + * and likewise for all the other languages. |
| 29 | + */ |
| 30 | +export const streamChannelRenamesMap: {| [string]: string |} = { |
| 31 | + stream: 'channel', |
| 32 | + 'Notify stream': 'Notify channel', |
| 33 | + 'Who can access the stream?': 'Who can access the channel?', |
| 34 | + 'Only organization administrators and owners can edit streams.': |
| 35 | + 'Only organization administrators and owners can edit channels.', |
| 36 | + '{realmName} only allows organization administrators or owners to make public streams.': |
| 37 | + '{realmName} only allows organization administrators or owners to make public channels.', |
| 38 | + '{realmName} only allows organization moderators, administrators, or owners to make public streams.': |
| 39 | + '{realmName} only allows organization moderators, administrators, or owners to make public channels.', |
| 40 | + '{realmName} only allows full organization members, moderators, administrators, or owners to make public streams.': |
| 41 | + '{realmName} only allows full organization members, moderators, administrators, or owners to make public channels.', |
| 42 | + '{realmName} only allows organization members, moderators, administrators, or owners to make public streams.': |
| 43 | + '{realmName} only allows organization members, moderators, administrators, or owners to make public channels.', |
| 44 | + '{realmName} only allows organization administrators or owners to make private streams.': |
| 45 | + '{realmName} only allows organization administrators or owners to make private channels.', |
| 46 | + '{realmName} only allows organization moderators, administrators, or owners to make private streams.': |
| 47 | + '{realmName} only allows organization moderators, administrators, or owners to make private channels.', |
| 48 | + '{realmName} only allows full organization members, moderators, administrators, or owners to make private streams.': |
| 49 | + '{realmName} only allows full organization members, moderators, administrators, or owners to make private channels.', |
| 50 | + '{realmName} only allows organization members, moderators, administrators, or owners to make private streams.': |
| 51 | + '{realmName} only allows organization members, moderators, administrators, or owners to make private channels.', |
| 52 | + '{realmName} does not allow anybody to make web-public streams.': |
| 53 | + '{realmName} does not allow anybody to make web-public channels.', |
| 54 | + '{realmName} only allows organization owners to make web-public streams.': |
| 55 | + '{realmName} only allows organization owners to make web-public channels.', |
| 56 | + '{realmName} only allows organization administrators or owners to make web-public streams.': |
| 57 | + '{realmName} only allows organization administrators or owners to make web-public channels.', |
| 58 | + '{realmName} only allows organization moderators, administrators, or owners to make web-public streams.': |
| 59 | + '{realmName} only allows organization moderators, administrators, or owners to make web-public channels.', |
| 60 | + 'Cannot subscribe to stream': 'Cannot subscribe to channel', |
| 61 | + 'Stream #{name} is private.': 'Channel #{name} is private.', |
| 62 | + 'Please specify a stream.': 'Please specify a channel.', |
| 63 | + 'Please specify a valid stream.': 'Please specify a valid channel.', |
| 64 | + 'No messages in stream': 'No messages in channel', |
| 65 | + 'All streams': 'All channels', |
| 66 | + // 'No messages in topic: {streamAndTopic}': 'No messages in topic: {channelAndTopic}', |
| 67 | + 'Mute stream': 'Mute channel', |
| 68 | + 'Unmute stream': 'Unmute channel', |
| 69 | + '{username} will not be notified unless you subscribe them to this stream.': |
| 70 | + '{username} will not be notified unless you subscribe them to this channel.', |
| 71 | + 'Stream notifications': 'Channel notifications', |
| 72 | + 'No streams found': 'No channels found', |
| 73 | + 'Mark stream as read': 'Mark channel as read', |
| 74 | + 'Failed to mute stream': 'Failed to mute channel', |
| 75 | + 'Failed to unmute stream': 'Failed to unmute channel', |
| 76 | + 'Stream settings': 'Channel settings', |
| 77 | + 'Failed to show stream settings': 'Failed to show channel settings', |
| 78 | + 'You are not subscribed to this stream': 'You are not subscribed to this channel', |
| 79 | + 'Create new stream': 'Create new channel', |
| 80 | + Stream: 'Channel', |
| 81 | + 'Edit stream': 'Edit channel', |
| 82 | + 'Only organization admins are allowed to post to this stream.': |
| 83 | + 'Only organization admins are allowed to post to this channel.', |
| 84 | + 'Copy link to stream': 'Copy link to channel', |
| 85 | + 'Failed to copy stream link': 'Failed to copy channel link', |
| 86 | + 'A stream with this name already exists.': 'A channel with this name already exists.', |
| 87 | + Streams: 'Channels', |
| 88 | +}; |
0 commit comments