From 1aaae5bdb2a7c0e5bb6d7b526a5423caf864ae17 Mon Sep 17 00:00:00 2001 From: Et0h Date: Sun, 25 May 2014 02:09:21 +0100 Subject: [PATCH] Add/honour SHOW_BUTTON_LABELS (def True) --- syncplay/constants.py | 3 ++- syncplay/messages.py | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/syncplay/constants.py b/syncplay/constants.py index 88e7f2e..e3d39d2 100644 --- a/syncplay/constants.py +++ b/syncplay/constants.py @@ -17,6 +17,7 @@ SHOW_SAME_ROOM_OSD = True # Show OSD notifications for events relating to room SHOW_DIFFERENT_ROOM_OSD = False # Show OSD notifications for events relating to room user is not in LIST_RELATIVE_CONFIGS = True # Print list of relative configs loaded SHOW_CONTACT_INFO = True # Displays dev contact details below list in GUI +SHOW_BUTTON_LABELS = True # If disabled, only shows icons for main GUI buttons #Changing these might be ok REWIND_THRESHOLD = 4 @@ -33,7 +34,7 @@ SHOW_REWIND_ON_DESYNC_CHECKBOX = False SHOW_TOOLTIPS = True MERGE_PLAYPAUSE_BUTTONS = False SYNC_ON_PAUSE = True # Client seek to global position - subtitles may disappear on some media players - +True #Usually there's no need to adjust these FILENAME_STRIP_REGEX = u"[-~_\.\[\](): ]" COMMANDS_UNDO = ["u", "undo", "revert"] diff --git a/syncplay/messages.py b/syncplay/messages.py index ad90037..910f048 100644 --- a/syncplay/messages.py +++ b/syncplay/messages.py @@ -1,4 +1,5 @@ # coding:utf8 +from syncplay import constants en = { @@ -270,7 +271,12 @@ messages = { "pl": pl } +buttonlabels = ["joinroom-label", "seektime-label", "undoseek-label", "togglepause-label", "play-label", "pause-label"] + def getMessage(locale, type_): + if(constants.SHOW_BUTTON_LABELS == False): + if(type_ in buttonlabels): + return "" if(messages.has_key(locale)): if(messages[locale].has_key(type_)): return unicode(messages[locale][type_])