Merge pull request #4150 from jitsi/invitation-update

Update copy invite text.
This commit is contained in:
Дамян Минков 2019-04-29 14:36:46 +00:00 committed by GitHub
commit bf8c716477
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 5 deletions

View File

@ -354,9 +354,10 @@
"dialInTollFree": "Toll Free",
"genericError": "Whoops, something went wrong.",
"inviteLiveStream": "To view the live stream of this meeting, click this link: __url__",
"invitePhone": "To join by phone, dial __number__ and enter this PIN: __conferenceID__#",
"invitePhoneAlternatives": "To view more phone numbers, click this link: __url__",
"inviteURL": "To join the video meeting, click this link: __url__",
"invitePhone": "One tap audio Dial In: __number__,,__conferenceID__#",
"invitePhoneAlternatives": "Looking for a different dial in number? Please see: __url__",
"inviteURL": "You are invited to join a meeting.\n__moreInfo__\nJoin meeting: __url__\n",
"inviteURLMoreInfo": "Meeting ID: __conferenceID__#\n",
"liveStreamURL": "Live stream:",
"moreNumbers": "More numbers",
"noNumbers": "No dial-in numbers.",

View File

@ -294,9 +294,15 @@ class InfoDialog extends Component<Props, State> {
*/
_getTextToCopy() {
const { liveStreamViewURL, t } = this.props;
const shouldDisplayDialIn = this._shouldDisplayDialIn();
const moreInfo
= shouldDisplayDialIn
? t('info.inviteURLMoreInfo', { conferenceID: this.props.dialIn.conferenceID })
: '';
let invite = t('info.inviteURL', {
url: this.props._inviteURL
url: this.props._inviteURL,
moreInfo
});
if (liveStreamViewURL) {
@ -307,7 +313,7 @@ class InfoDialog extends Component<Props, State> {
invite = `${invite}\n${liveStream}`;
}
if (this._shouldDisplayDialIn()) {
if (shouldDisplayDialIn) {
const dial = t('info.invitePhone', {
number: this.state.phoneNumber,
conferenceID: this.props.dialIn.conferenceID