Skip to content

Commit

Permalink
added: if chapter is nameless, use a generic 'Chapter %u' string
Browse files Browse the repository at this point in the history
  • Loading branch information
notspiff authored and ace20022 committed Mar 1, 2015
1 parent 39fe834 commit 498747b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion language/English/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -12830,7 +12830,12 @@ msgctxt "#25009"
msgid "The menu of this Blu-ray is not supported"
msgstr ""

#empty strings from id 25010 to 29799
#: xbmc/video/dialogs/GUIDialogVideoBookmarks.cpp
msgctxt "#25010"
msgid "Chapter %u"
msgstr ""

#empty strings from id 25011 to 29799
#strings 29800 thru 29998 reserved strings used only in the default Project Mayhem III skin and not c++ code

#: skin.confluence
Expand Down
2 changes: 2 additions & 0 deletions xbmc/video/dialogs/GUIDialogVideoBookmarks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ void CGUIDialogVideoBookmarks::OnRefreshList()
{
std::string chapterName;
g_application.m_pPlayer->GetChapterName(chapterName, i);
if (chapterName.empty())
chapterName = StringUtils::Format(g_localizeStrings.Get(25010).c_str(), i);
int64_t pos = g_application.m_pPlayer->GetChapterPos(i);
std::string time =
StringUtils::SecondsToTimeString((long) pos, TIME_FORMAT_HH_MM_SS);
Expand Down

0 comments on commit 498747b

Please sign in to comment.