Fully migrate to ICU

This commit is contained in:
Jamie Kyle 2023-03-29 17:03:25 -07:00 committed by GitHub
parent d4e7177ba6
commit 5e647c55d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
274 changed files with 7948 additions and 1944 deletions

View file

@ -200,12 +200,12 @@ function translateSourceName(
}
if (name === 'Entire Screen') {
return i18n('calling__SelectPresentingSourcesModal--entireScreen');
return i18n('icu:calling__SelectPresentingSourcesModal--entireScreen');
}
const match = name.match(/^Screen (\d+)$/);
if (match) {
return i18n('calling__SelectPresentingSourcesModal--screen', {
return i18n('icu:calling__SelectPresentingSourcesModal--screen', {
id: match[1],
});
}
@ -1276,14 +1276,14 @@ export class CallingClass {
ipcRenderer.send('show-screen-share', source.name);
notificationService.notify({
icon: 'images/icons/v2/video-solid-24.svg',
message: window.i18n('calling__presenting--notification-body'),
message: window.i18n('icu:calling__presenting--notification-body'),
onNotificationClick: () => {
if (this.reduxInterface) {
this.reduxInterface.setPresenting();
}
},
silent: true,
title: window.i18n('calling__presenting--notification-title'),
title: window.i18n('icu:calling__presenting--notification-title'),
});
} else {
ipcRenderer.send('close-screen-share-controller');
@ -2270,7 +2270,7 @@ export class CallingClass {
case NotificationSetting.NoNameOrMessage:
notificationTitle = FALLBACK_NOTIFICATION_TITLE;
notificationMessage = window.i18n(
'calling__call-notification__started-by-someone'
'icu:calling__call-notification__started-by-someone'
);
break;
default:
@ -2278,10 +2278,10 @@ export class CallingClass {
notificationTitle =
conversation?.getTitle() || FALLBACK_NOTIFICATION_TITLE;
notificationMessage = creatorConversation
? window.i18n('calling__call-notification__started', {
? window.i18n('icu:calling__call-notification__started', {
name: creatorConversation.getTitle(),
})
: window.i18n('calling__call-notification__started-by-someone');
: window.i18n('icu:calling__call-notification__started-by-someone');
break;
}