Skip to content

Commit

Permalink
Make the type, e.g. "(Forced)", of a stream translatable in its name.
Browse files Browse the repository at this point in the history
  • Loading branch information
ace20022 committed Mar 18, 2013
1 parent d8b2ca8 commit d3722b9
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 6 deletions.
30 changes: 30 additions & 0 deletions language/English/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -11746,3 +11746,33 @@ msgstr ""
msgctxt "#36042"
msgid "Use limited color range (16-235)"
msgstr ""

#: xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStreamNavigator.cpp
msgctxt "#37000"
msgid "(Visually Impaired)"
msgstr ""

#: xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStreamNavigator.cpp
msgctxt "#37001"
msgid "(Directors Comments)"
msgstr ""

#: xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStreamNavigator.cpp
msgctxt "#37002"
msgid "(Directors Comments 2)"
msgstr ""

#: xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStreamNavigator.cpp
msgctxt "#37011"
msgid "(CC)"
msgstr ""

#: xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStreamNavigator.cpp
msgctxt "#37012"
msgid "(Forced)"
msgstr ""

#: xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStreamNavigator.cpp
msgctxt "#37013"
msgid "(Directors Comments)"
msgstr ""
13 changes: 7 additions & 6 deletions xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStreamNavigator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include "guilib/Geometry.h"
#include "utils/URIUtils.h"
#include "utils/StringUtils.h"
#include "guilib/LocalizeStrings.h"
#if defined(TARGET_DARWIN)
#include "osx/CocoaInterface.h"
#endif
Expand Down Expand Up @@ -864,15 +865,15 @@ void CDVDInputStreamNavigator::SetSubtitleStreamName(DVDNavStreamInfo &info, con
case DVD_SUBPICTURE_LANG_EXT_NormalCC:
case DVD_SUBPICTURE_LANG_EXT_BigCC:
case DVD_SUBPICTURE_LANG_EXT_ChildrensCC:
info.name += "(CC)";
info.name += g_localizeStrings.Get(37011);
break;
case DVD_SUBPICTURE_LANG_EXT_Forced:
info.name += "(Forced)";
info.name += g_localizeStrings.Get(37012);
break;
case DVD_SUBPICTURE_LANG_EXT_NormalDirectorsComments:
case DVD_SUBPICTURE_LANG_EXT_BigDirectorsComments:
case DVD_SUBPICTURE_LANG_EXT_ChildrensDirectorsComments:
info.name += "(Directors Comments)";
info.name += g_localizeStrings.Get(37013);
break;
default:
break;
Expand Down Expand Up @@ -940,13 +941,13 @@ void CDVDInputStreamNavigator::SetAudioStreamName(DVDNavStreamInfo &info, const
switch( audio_attributes.code_extension )
{
case DVD_AUDIO_LANG_EXT_VisuallyImpaired:
info.name = "(Visually Impaired)";
info.name = g_localizeStrings.Get(37000);
break;
case DVD_AUDIO_LANG_EXT_DirectorsComments1:
info.name = "(Directors Comments)";
info.name = g_localizeStrings.Get(37001);
break;
case DVD_AUDIO_LANG_EXT_DirectorsComments2:
info.name = "(Directors Comments 2)";
info.name = g_localizeStrings.Get(37002);
break;
case DVD_AUDIO_LANG_EXT_NotSpecified:
case DVD_AUDIO_LANG_EXT_NormalCaptions:
Expand Down

0 comments on commit d3722b9

Please sign in to comment.