Philipp Hörist pushed to branch master at gajim / gajim

Commits:
a94276f6 by Philipp Hörist at 2018-02-22T22:45:15+01:00
Make file transfer labels sound less technical

- - - - -


3 changed files:

- gajim/chat_control.py
- gajim/groupchat_control.py
- gajim/gui_menu_builder.py


Changes:

=====================================
gajim/chat_control.py
=====================================
--- a/gajim/chat_control.py
+++ b/gajim/chat_control.py
@@ -314,20 +314,9 @@ class ChatControl(ChatControlBase):
             jingle.get_enabled() or httpupload.get_enabled())
 
         # Set File Transfer Button tooltip
-        ft_pref = app.config.get_per('accounts', self.account,
-                                     'filetransfer_preference')
-
-        tooltip_text = None
-        if httpupload.get_enabled() and jingle.get_enabled():
-            if ft_pref == 'httpupload':
-                tooltip_text = _('HTTP File Upload')
-            else:
-                tooltip_text = _('Jingle File Transfer')
-        elif httpupload.get_enabled():
-            tooltip_text = _('HTTP File Upload')
-        elif jingle.get_enabled():
-            tooltip_text = _('Jingle File Transfer')
-        elif online:
+        if online and (httpupload.get_enabled() or jingle.get_enabled()):
+            tooltip_text = _('Send File…')
+        else:
             tooltip_text = _('No File Transfer available')
         self.sendfile_button.set_tooltip_text(tooltip_text)
 


=====================================
gajim/groupchat_control.py
=====================================
--- a/gajim/groupchat_control.py
+++ b/gajim/groupchat_control.py
@@ -631,13 +631,10 @@ class GroupchatControl(ChatControlBase):
         win.lookup_action('send-file-' + self.control_id).set_enabled(
             httpupload.get_enabled())
 
-        tooltip_text = None
-        if online:
-            if httpupload.get_enabled():
-                tooltip_text = _('HTTP File Upload')
-            else:
-                tooltip_text = _('HTTP File Upload not supported '
-                                 'by your server')
+        if online and httpupload.get_enabled():
+            tooltip_text = _('Send File…')
+        else:
+            tooltip_text = _('No File Transfer available')
         self.sendfile_button.set_tooltip_text(tooltip_text)
 
     # Actions


=====================================
gajim/gui_menu_builder.py
=====================================
--- a/gajim/gui_menu_builder.py
+++ b/gajim/gui_menu_builder.py
@@ -608,9 +608,9 @@ Build dynamic Application Menus
 
 def get_singlechat_menu(control_id):
     singlechat_menu = [
-        (_('Send File...'), [
-            ('win.send-file-httpupload-', 'HTTP Upload'),
-            ('win.send-file-jingle-', 'Jingle'),
+        (_('Send File…'), [
+            ('win.send-file-httpupload-', _('Upload File…')),
+            ('win.send-file-jingle-', _('Send File Directly…')),
             ]),
         ('win.invite-contacts-', _('Invite Contacts')),
         ('win.add-to-roster-', _('Add to Roster')),



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/a94276f6e9e3a79da2c86b7e9218d7e5c43c3aaf

---
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/a94276f6e9e3a79da2c86b7e9218d7e5c43c3aaf
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
Commits@gajim.org
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to