Add/honour SHOW_BUTTON_LABELS (def True)
This commit is contained in:
parent
211025e530
commit
1aaae5bdb2
@ -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
|
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
|
LIST_RELATIVE_CONFIGS = True # Print list of relative configs loaded
|
||||||
SHOW_CONTACT_INFO = True # Displays dev contact details below list in GUI
|
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
|
#Changing these might be ok
|
||||||
REWIND_THRESHOLD = 4
|
REWIND_THRESHOLD = 4
|
||||||
@ -33,7 +34,7 @@ SHOW_REWIND_ON_DESYNC_CHECKBOX = False
|
|||||||
SHOW_TOOLTIPS = True
|
SHOW_TOOLTIPS = True
|
||||||
MERGE_PLAYPAUSE_BUTTONS = False
|
MERGE_PLAYPAUSE_BUTTONS = False
|
||||||
SYNC_ON_PAUSE = True # Client seek to global position - subtitles may disappear on some media players
|
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
|
#Usually there's no need to adjust these
|
||||||
FILENAME_STRIP_REGEX = u"[-~_\.\[\](): ]"
|
FILENAME_STRIP_REGEX = u"[-~_\.\[\](): ]"
|
||||||
COMMANDS_UNDO = ["u", "undo", "revert"]
|
COMMANDS_UNDO = ["u", "undo", "revert"]
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
# coding:utf8
|
# coding:utf8
|
||||||
|
from syncplay import constants
|
||||||
|
|
||||||
en = {
|
en = {
|
||||||
|
|
||||||
@ -270,7 +271,12 @@ messages = {
|
|||||||
"pl": pl
|
"pl": pl
|
||||||
}
|
}
|
||||||
|
|
||||||
|
buttonlabels = ["joinroom-label", "seektime-label", "undoseek-label", "togglepause-label", "play-label", "pause-label"]
|
||||||
|
|
||||||
def getMessage(locale, type_):
|
def getMessage(locale, type_):
|
||||||
|
if(constants.SHOW_BUTTON_LABELS == False):
|
||||||
|
if(type_ in buttonlabels):
|
||||||
|
return ""
|
||||||
if(messages.has_key(locale)):
|
if(messages.has_key(locale)):
|
||||||
if(messages[locale].has_key(type_)):
|
if(messages[locale].has_key(type_)):
|
||||||
return unicode(messages[locale][type_])
|
return unicode(messages[locale][type_])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user