From e3aa500ba0d29ebab5cb6c0a76c4353323b62b61 Mon Sep 17 00:00:00 2001 From: Brice-W Date: Tue, 6 Jul 2021 14:01:29 +1000 Subject: [PATCH] i18n labels for pin conversations limit --- _locales/en/messages.json | 4 +++- _locales/fr/messages.json | 6 +++++- ts/components/session/menu/Menu.tsx | 6 +++--- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 813778600..5db95684d 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -411,5 +411,7 @@ "trustThisContactDialogTitle": "Trust $name$?", "trustThisContactDialogDescription": "Are you sure you want to download media sent by $name$?", "pinConversation": "Pin Conversation", - "unpinConversation": "Unpin Conversation" + "unpinConversation": "Unpin Conversation", + "pinConversationLimitTitle": "Pinned conversations limit", + "pinConversationLimitToastDescription": "You can only pin $number$ conversations" } diff --git a/_locales/fr/messages.json b/_locales/fr/messages.json index ab77e6b18..07b9dc6c1 100644 --- a/_locales/fr/messages.json +++ b/_locales/fr/messages.json @@ -390,5 +390,9 @@ "errorHappenedWhileRemovingModeratorDesc": "Une erreur est survenue lors de la suppression de cet utilisateur de la liste des modérateurs.", "orJoinOneOfThese": "Ou rejoignez un de ceux-ci...", "helpUsTranslateSession": "Help us Translate Session", - "translation": "Translation" + "translation": "Translation", + "pinConversation": "Épingler la conversation", + "unpinConversation": "Défaire la conversation", + "pinConversationLimitTitle": "Limite de conversations épinglées", + "pinConversationLimitToastDescription": "Vous ne pouvez pas épingler plus de $number$ conversations" } diff --git a/ts/components/session/menu/Menu.tsx b/ts/components/session/menu/Menu.tsx index 6931e8607..9d0a54bf1 100644 --- a/ts/components/session/menu/Menu.tsx +++ b/ts/components/session/menu/Menu.tsx @@ -149,9 +149,9 @@ export const MenuItemPinConversation = ( dispatch(conversationUnpinned()); } else { ToastUtils.pushToastWarning( - 'setPasswordSuccessToast', - window.i18n('removePasswordTitle'), - window.i18n('removePasswordToastDescription') + 'pinConversationLimitToast', + window.i18n('pinConversationLimitTitle'), + window.i18n('pinConversationLimitToastDescription', maxNumberOfPinnedConversations) ); } };