From 8ffc9b7d1fa2d5862267df0116f00d2f1f35d447 Mon Sep 17 00:00:00 2001 From: Yura Zenevich Date: Wed, 24 Jun 2015 16:53:12 -0700 Subject: [PATCH] Bug 1176763 - add a missing label to the icon. --- apps/camera/js/controllers/battery.js | 15 ++++++++++++--- apps/camera/locales/camera.en-US.properties | 2 ++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/apps/camera/js/controllers/battery.js b/apps/camera/js/controllers/battery.js index 5a58413dde1a..eee2b11e03d5 100644 --- a/apps/camera/js/controllers/battery.js +++ b/apps/camera/js/controllers/battery.js @@ -52,15 +52,24 @@ BatteryController.prototype.bindEvents = function() { BatteryController.prototype.notifications = { low: { text: 'battery-low-text', - attrs: { 'data-icon': 'battery-3' } + attrs: { + 'data-icon': 'battery-3', + 'data-l10n-id': 'battery-low-indicator' + }, }, verylow: { text: 'battery-verylow-text', - attrs: { 'data-icon': 'battery-1' } + attrs: { + 'data-icon': 'battery-1', + 'data-l10n-id': 'battery-verylow-indicator' + } }, critical: { text: 'battery-critical-text', - attrs: { 'data-icon': 'battery-1' }, + attrs: { + 'data-icon': 'battery-1', + 'data-l10n-id': 'battery-critical-indicator' + }, persistent: true } }; diff --git a/apps/camera/locales/camera.en-US.properties b/apps/camera/locales/camera.en-US.properties index 924b64c3b84c..4380fa9a60f4 100644 --- a/apps/camera/locales/camera.en-US.properties +++ b/apps/camera/locales/camera.en-US.properties @@ -140,3 +140,5 @@ self-timer-indicator.ariaLabel = Self-Timer enabled hdr-indicator.ariaLabel = HDR enabled location-indicator.ariaLabel = Geolocation enabled battery-low-indicator.ariaLabel = 15% battery remaining +battery-verylow-indicator.ariaLabel = 10% battery remaining +battery-critical-indicator.ariaLabel = Critically low battery