Add/honour SHOW_BUTTON_LABELS (def True)

This commit is contained in:
Et0h 2014-05-25 02:09:21 +01:00
parent 211025e530
commit 1aaae5bdb2
2 changed files with 8 additions and 1 deletions

View File

@ -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"]

View File

@ -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_])