Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
8ffbd5e3 by wurstsalat at 2024-07-06T13:59:38+02:00
cfix: Improve group chat leaving dialog text

- - - - -


1 changed file:

- gajim/gtk/chat_list_stack.py


Changes:

=====================================
gajim/gtk/chat_list_stack.py
=====================================
@@ -293,24 +293,25 @@ def _remove(unregister: bool = False) -> None:
         us = contact.get_self()
         assert us is not None
         affiliation = us.affiliation
-        text = _('If you close this chat, you will leave "%s".') % contact.name
+        text = _('By closing this chat, you will leave "%s".') % contact.name
         if Namespace.REGISTER in muc_disco.features and not 
affiliation.is_none:
             buttons.append(
                 DialogButton.make(
                     'Delete',
-                    text=_('_Leave permanently'),
+                    text=_('Leave _Permanently'),
                     callback=partial(_leave, unregister=True),
                 )
             )
 
-            text += _('\nIf you choose to leave it permanently, you may need '
-                      'to be invited to be able to join this group chat again')
-            if affiliation.is_member:
-                text += '.'
-            elif affiliation.is_admin:
-                text += _(', and you will lose your administrator 
affiliation.')
+            text += '\n'
+            text += _('You may need an invite to join this group chat again, '
+                      'if you choose to leave it permanently.')
+            if affiliation.is_admin:
+                text += '\n'
+                text += _('Additionally, you will lose your administrator 
affiliation.')
             elif affiliation.is_owner:
-                text += _(', and you will lose your owner affiliation.')
+                text += '\n'
+                text += _('Additionally, you will lose your owner 
affiliation.')
 
         ConfirmationCheckDialog(
             _('Leave Group Chat'),



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/8ffbd5e309373104cf5deac100efb2dcd41ada69

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/8ffbd5e309373104cf5deac100efb2dcd41ada69
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- commits@gajim.org
To unsubscribe send an email to commits-le...@gajim.org

Reply via email to