chore: add strings for recreating group, but will be overriden

pull/3281/head
Audric Ackermann 3 months ago
parent 0f3ab81541
commit 821a304fa3
No known key found for this signature in database

@ -481,6 +481,11 @@
"learnMore": "Learn More", "learnMore": "Learn More",
"leave": "Leave", "leave": "Leave",
"leaving": "Leaving...", "leaving": "Leaving...",
"legacyGroupAfterDeprecationAdmin": "This group is now read-only. Recreate this group to keep chatting.",
"legacyGroupAfterDeprecationMember": "This group is now read-only. Ask the group admin to recreate this group to keep chatting.",
"legacyGroupBeforeDeprecationAdmin": "Groups have been upgraded! Recreate this group for improved reliability. This group will become read-only on {date}.",
"legacyGroupBeforeDeprecationMember": "Groups have been upgraded! Ask the group admin to recreate this group for improved reliability. This group will become read-only on {date}.",
"legacyGroupChatHistory": "Chat history will not be transferred to the new group. You can still view all chat history in your old group.",
"legacyGroupMemberNew": "<b>{name}</b> joined the group.", "legacyGroupMemberNew": "<b>{name}</b> joined the group.",
"legacyGroupMemberNewMultiple": "<b>{name}</b> and <b>{count} others</b> joined the group.", "legacyGroupMemberNewMultiple": "<b>{name}</b> and <b>{count} others</b> joined the group.",
"legacyGroupMemberNewYouMultiple": "<b>You</b> and <b>{count} others</b> joined the group.", "legacyGroupMemberNewYouMultiple": "<b>You</b> and <b>{count} others</b> joined the group.",
@ -724,6 +729,7 @@
"recoveryPasswordRestoreDescription": "Enter your recovery password to load your account. If you haven't saved it, you can find it in your app settings.", "recoveryPasswordRestoreDescription": "Enter your recovery password to load your account. If you haven't saved it, you can find it in your app settings.",
"recoveryPasswordView": "View Password", "recoveryPasswordView": "View Password",
"recoveryPasswordWarningSendDescription": "This is your recovery password. If you send it to someone they'll have full access to your account.", "recoveryPasswordWarningSendDescription": "This is your recovery password. If you send it to someone they'll have full access to your account.",
"recreateGroup": "Recreate Group",
"redo": "Redo", "redo": "Redo",
"remove": "Remove", "remove": "Remove",
"removePasswordFail": "Failed to remove password", "removePasswordFail": "Failed to remove password",
@ -773,6 +779,7 @@
"shareAccountIdDescription": "Invite your friend to chat with you on {app_name} by sharing your Account ID with them.", "shareAccountIdDescription": "Invite your friend to chat with you on {app_name} by sharing your Account ID with them.",
"shareAccountIdDescriptionCopied": "Share with your friends wherever you usually speak with them — then move the conversation here.", "shareAccountIdDescriptionCopied": "Share with your friends wherever you usually speak with them — then move the conversation here.",
"shareExtensionDatabaseError": "There is an issue opening the database. Please restart the app and try again.", "shareExtensionDatabaseError": "There is an issue opening the database. Please restart the app and try again.",
"shareExtensionNoAccountError": "Oops! Looks like you don't have a {app_name} account yet.<br/><br/>You'll need to create one in the {app_name} app before you can share.",
"shareToSession": "Share to {app_name}", "shareToSession": "Share to {app_name}",
"show": "Show", "show": "Show",
"showAll": "Show All", "showAll": "Show All",
@ -814,4 +821,3 @@
"yes": "Yes", "yes": "Yes",
"you": "You" "you": "You"
} }

@ -678,9 +678,11 @@ function OutdatedLegacyGroupBanner() {
// FIXME change the date here. Remove after QA // FIXME change the date here. Remove after QA
const text = deprecatedLegacyGroups const text = deprecatedLegacyGroups
? localize( ? localize(
weAreAdmin ? 'groupLegacyBannerAdminDeprecated' : 'groupLegacyBannerMemberDeprecated' weAreAdmin ? 'legacyGroupAfterDeprecationAdmin' : 'legacyGroupAfterDeprecationMember'
).toString() ).toString()
: localize(weAreAdmin ? 'groupLegacyBannerAdmin' : 'groupLegacyBannerMember') : localize(
weAreAdmin ? 'legacyGroupBeforeDeprecationAdmin' : 'legacyGroupBeforeDeprecationMember'
)
.withArgs({ date: '[Date]' }) .withArgs({ date: '[Date]' })
.toString(); .toString();

@ -91,8 +91,8 @@ function useShowRecreateModal() {
(name: string, members: Array<PubkeyType>) => { (name: string, members: Array<PubkeyType>) => {
dispatch( dispatch(
updateConfirmModal({ updateConfirmModal({
title: localize('groupRecreate').toString(), title: localize('recreateGroup').toString(),
i18nMessage: { token: 'groupRecreateDescription' }, i18nMessage: { token: 'legacyGroupChatHistory' },
okText: localize('theContinue').toString(), okText: localize('theContinue').toString(),
cancelText: localize('cancel').toString(), cancelText: localize('cancel').toString(),
okTheme: SessionButtonColor.Danger, okTheme: SessionButtonColor.Danger,
@ -135,7 +135,7 @@ function RecreateGroupButton() {
showRecreateGroupModal(name || 'Unknown group name', members); showRecreateGroupModal(name || 'Unknown group name', members);
}} }}
> >
{localize('groupRecreate').toString()} {localize('recreateGroup').toString()}
</SessionButton> </SessionButton>
</RecreateGroupContainer> </RecreateGroupContainer>
); );

Loading…
Cancel
Save