diff options
author | Kai Sommerfeld <kai.sommerfeld@gmx.com> | 2016-08-18 22:44:51 +0200 |
---|---|---|
committer | Kai Sommerfeld <kai.sommerfeld@gmx.com> | 2016-08-18 23:21:09 +0200 |
commit | 527685e2e637194e41d88aab0b61a7a136ce2479 (patch) | |
tree | e8ee233d60864c8faaacf7ec8ca8d3a155fa3b2d | |
parent | 49acf7d0f5972c3f8b7763365b8fa9b707bf05fc (diff) |
[PVR] Recordings context menus: Fix string for 'Play'/'Play from beginning' menu item; align with wording for non-PVR videos.
-rw-r--r-- | addons/resource.language.en_gb/resources/strings.po | 3 | ||||
-rw-r--r-- | xbmc/pvr/windows/GUIWindowPVRRecordings.cpp | 13 |
2 files changed, 13 insertions, 3 deletions
diff --git a/addons/resource.language.en_gb/resources/strings.po b/addons/resource.language.en_gb/resources/strings.po index 3d05b71557..7ff91aa4ef 100644 --- a/addons/resource.language.en_gb/resources/strings.po +++ b/addons/resource.language.en_gb/resources/strings.po @@ -923,6 +923,7 @@ msgctxt "#207" msgid "Plot" msgstr "" +#: xbmc/pvr/windows/PVRGUIWindowRecordings.cpp #: xbmc/dialogs/GUIDialogPlayEject.cpp #: system/settings/settings.xml msgctxt "#208" @@ -5176,6 +5177,8 @@ msgctxt "#12022" msgid "Resume from %s" msgstr "" +#. Label of video/recordings context menu items +#: xbmc/pvr/windows/PVRGUIWindowRecordings.cpp #: xbmc/video/ContextMenus.cpp msgctxt "#12023" msgid "Play from beginning" diff --git a/xbmc/pvr/windows/GUIWindowPVRRecordings.cpp b/xbmc/pvr/windows/GUIWindowPVRRecordings.cpp index 56eb3f89a1..afbc652465 100644 --- a/xbmc/pvr/windows/GUIWindowPVRRecordings.cpp +++ b/xbmc/pvr/windows/GUIWindowPVRRecordings.cpp @@ -123,10 +123,17 @@ void CGUIWindowPVRRecordings::GetContextButtons(int itemNumber, CContextButtons if (!isDeletedRecording) { buttons.Add(CONTEXT_BUTTON_FIND, 19003); /* Find similar */ - buttons.Add(CONTEXT_BUTTON_PLAY_ITEM, 12021); /* Start from beginning */ + std::string resumeString = GetResumeString(*pItem); - if (!resumeString.empty()) - buttons.Add(CONTEXT_BUTTON_RESUME_ITEM, resumeString); + if (resumeString.empty()) + { + buttons.Add(CONTEXT_BUTTON_PLAY_ITEM, 208); /* Play */ + } + else + { + buttons.Add(CONTEXT_BUTTON_RESUME_ITEM, resumeString); /* Resume from HH:MM:SS */ + buttons.Add(CONTEXT_BUTTON_PLAY_ITEM, 12023); /* Play from beginning */ + } } else { |