Skip to content

Commit

Permalink
Merge pull request xbmc#8399 from metaron-uk/timerState
Browse files Browse the repository at this point in the history
[PVR] Fix Timer Status UI inconsistencies
  • Loading branch information
ksooo committed Nov 20, 2015
2 parents 275fc3f + c28e012 commit 637f769
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 22 deletions.
32 changes: 14 additions & 18 deletions addons/resource.language.en_gb/resources/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -1344,6 +1344,8 @@ msgstr ""
#: system/peripherals.xml
#: xbmc/filesystem/AddonsDirectory.cpp
#: system/settings/settings.xml
#. Label of active/inactive radiobutton in PVR timer settings dialog
#: xbmc/pvr/dialogs/GUIDialogPVRTimerSettings.cpp
msgctxt "#305"
msgid "Enabled"
msgstr ""
Expand Down Expand Up @@ -3527,23 +3529,11 @@ msgstr ""

#empty string with id 824

#. Representation of PVR timer state "disabled"
#: xbmc/pvr/timers/PVRTimerInfoTag.cpp
msgctxt "#825"
msgid "Inactive"
msgstr ""
#empty string with id 825

#. Notification text to announce that a timer was activated
#: xbmc/pvr/timers/PVRTimerInfoTag.cpp
msgctxt "#826"
msgid "Timer activated"
msgstr ""
#empty string with id 826

#. Notification text to announce that a timer was deactivated
#: xbmc/pvr/timers/PVRTimerInfoTag.cpp
msgctxt "#827"
msgid "Timer deactivated"
msgstr ""
#empty string with id 827

#. Text for notification that a repeating timer has been deleted
#: xbmc/pvr/timers/PVRTimers.cpp
Expand Down Expand Up @@ -5630,6 +5620,7 @@ msgstr ""

#: xbmc/peripherals/bus/PeripheralBus.cpp
#: system/settings/settings.xml
#: xbmc/pvr/timers/PVRTimerInfoTag.cpp
msgctxt "#13106"
msgid "Disabled"
msgstr ""
Expand Down Expand Up @@ -8671,8 +8662,14 @@ msgctxt "#19056"
msgid "New timer"
msgstr ""

# empty string with id 19057
#. Notification text to announce that a timer was disabled
#: xbmc/pvr/timers/PVRTimerInfoTag.cpp
msgctxt "#19057"
msgid "Timer disabled"
msgstr ""

#. Notification text to announce that a timer was enabled
#: xbmc/pvr/timers/PVRTimerInfoTag.cpp
msgctxt "#19058"
msgid "Timer enabled"
msgstr ""
Expand Down Expand Up @@ -8753,8 +8750,7 @@ msgctxt "#19073"
msgid "Delay channel switch"
msgstr ""

#. Label of active/inactive radiobutton in PVR timer settings dialog
#: xbmc/pvr/dialogs/GUIDialogPVRTimerSettings.cpp
#: addons/skin.confluence/720p/DialogPVRChannelManager.xml
msgctxt "#19074"
msgid "Active"
msgstr ""
Expand Down
2 changes: 1 addition & 1 deletion xbmc/pvr/dialogs/GUIDialogPVRTimerSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ void CGUIDialogPVRTimerSettings::InitializeSettings()
AddTypeDependentEnableCondition(setting, SETTING_TMR_TYPE);

// Timer enabled/disabled
setting = AddToggle(group, SETTING_TMR_ACTIVE, 19074, 0, m_bTimerActive);
setting = AddToggle(group, SETTING_TMR_ACTIVE, 305, 0, m_bTimerActive);
AddTypeDependentVisibilityCondition(setting, SETTING_TMR_ACTIVE);
AddTypeDependentEnableCondition(setting, SETTING_TMR_ACTIVE);

Expand Down
6 changes: 3 additions & 3 deletions xbmc/pvr/timers/PVRTimerInfoTag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ std::string CPVRTimerInfoTag::GetStatus() const
else if (m_state == PVR_TIMER_STATE_ERROR)
strReturn = g_localizeStrings.Get(257);
else if (m_state == PVR_TIMER_STATE_DISABLED)
strReturn = g_localizeStrings.Get(825);
strReturn = g_localizeStrings.Get(13106);

return strReturn;
}
Expand Down Expand Up @@ -808,7 +808,7 @@ void CPVRTimerInfoTag::GetNotificationText(std::string &strText) const
break;
case PVR_TIMER_STATE_SCHEDULED:
if (IsRepeating())
stringID = 826; // Timer activated
stringID = 19058; // Timer enabled
else
stringID = 19225; // Recording scheduled
break;
Expand All @@ -826,7 +826,7 @@ void CPVRTimerInfoTag::GetNotificationText(std::string &strText) const
stringID = 19278; // Recording error
break;
case PVR_TIMER_STATE_DISABLED:
stringID = 827; // Timer deactivated
stringID = 19057; // Timer disabled
break;
default:
break;
Expand Down

0 comments on commit 637f769

Please sign in to comment.