add itemTitleKeys to config and move getItemTitle to its own file, use everywhere title strings are used

This commit is contained in:
j 2014-11-21 14:26:50 +00:00
commit fb5a5c5cf7
16 changed files with 41 additions and 49 deletions

View file

@ -79,7 +79,7 @@ def load_config():
#add missing defaults
for section in (
'capabilities', 'cantPlay', 'itemName', 'media', 'posters',
'capabilities', 'cantPlay', 'itemName', 'itemTitleKeys', 'media', 'posters',
'site', 'tv', 'user.ui', 'user.ui.part', 'user.ui.showFolder',
'menuExtras', 'languages'
):

View file

@ -620,6 +620,7 @@
"plural": "Movies"
},
"itemRequiresVideo": true,
"itemTitleKeys": ["title", "director", "year"],
"itemViews": [
{"id": "info", "title": "Info"},
{"id": "player", "title": "Player"},

View file

@ -636,6 +636,7 @@
"plural": "Movies"
},
"itemRequiresVideo": false,
"itemTitleKeys": ["title", "director", "year"],
"itemViews": [
{"id": "info", "title": "Info"},
{"id": "documents", "title": "Documents"},

View file

@ -515,6 +515,7 @@
"plural": "Videos"
},
"itemRequiresVideo": true,
"itemTitleKeys": ["title", "director", "year"],
"itemViews": [
{"id": "info", "title": "Info"},
{"id": "player", "title": "Player"},

View file

@ -435,6 +435,7 @@
"plural": "Videos"
},
"itemRequiresVideo": true,
"itemTitleKeys": ["title", "director", "year"],
"itemViews": [
{"id": "info", "title": "Info"},
{"id": "player", "title": "Player"},