Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Bug 1225431 - revice l10 String to fxsync-sign-out and fxsync-confirm…
Browse files Browse the repository at this point in the history
…-sign-out. r=seanlee, a=jocheng
  • Loading branch information
danhuang1202 authored and BavarianTomcat committed Nov 30, 2015
1 parent dff0160 commit e333b79
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tv_apps/browser/index.html
Expand Up @@ -733,7 +733,7 @@ <h1 id="private-browsing-subtitle-text" data-l10n-id="WB_LT_PRIVATE_BROWSING_1">
<div id="fxsync-enabled" hidden>
<span id="fxsync-signed-in-as" data-l10n-id="fxsync-signed-in-as"></span>
<smart-button id="fxsync-sync-now-button" type="rounded-corner-text" data-l10n-id="fxsync-sync-now"></smart-button>
<smart-button id="fxsync-sign-out-button" type="rounded-corner-text" data-l10n-id="fxsync-disconnect"></smart-button>
<smart-button id="fxsync-sign-out-button" type="rounded-corner-text" data-l10n-id="fxsync-sign-out"></smart-button>
<ul class="settings-horizontal-list">
<li class="settings-horizontal-list-item">
<input type="checkbox" id="fxsync-collection-bookmarks" class="settings-list-checkbox"></input>
Expand Down
4 changes: 2 additions & 2 deletions tv_apps/browser/js/browser_dialog.js
Expand Up @@ -170,9 +170,9 @@ var BrowserDialog = {
case 'signout_confirm':
opt = {
title: null,
msg: _('fxsync-confirm-disconnect'),
msg: _('fxsync-confirm-sign-out'),
bt1: _('LT_CANCEL'),
bt2: _('fxsync-disconnect')
bt2: _('fxsync-sign-out')
};
var deferred = {};
deferred.promise = new Promise(function(resolve, reject) {
Expand Down
4 changes: 2 additions & 2 deletions tv_apps/browser/locales/browser.en-US.properties
Expand Up @@ -95,8 +95,8 @@ pocket=Pocket

# Firefox Sync
fxsync-sign-in=Sign In
fxsync-disconnect=Disconnect
fxsync-confirm-disconnect=Are you sure? Your synced Firefox bookmarks and history will no longer be available on this TV until you sign in again.
fxsync-sign-out=Sign Out
fxsync-confirm-sign-out=Are you sure? Your synced Firefox bookmarks and history will no longer be available on this TV until you sign in again.
fxsync-signed-in-as={{email}}
fxsync-sign-in-to-sync=Sign in to Sync
fxsync-sign-in-to-sync-description=Get your bookmarks and history from your Firefox devices
Expand Down
4 changes: 2 additions & 2 deletions tv_apps/browser/test/unit/browser_dialog_test.js
Expand Up @@ -76,15 +76,15 @@ suite('Browser Dialog >', function() {
function(done) {
promise = subject.createDialog('signout_confirm');
expect(subject.browserDialogMsg.innerHTML)
.to.equals('fxsync-confirm-disconnect');
.to.equals('fxsync-confirm-sign-out');
expect(subject.browserDialogButton1.textContent)
.to.equals('LT_CANCEL');
expect(subject.browserDialogButton1.dataset.type)
.to.equals('signout_confirm');
expect(subject.browserDialogButton1.classList.contains('visible'))
.to.equals(true);
expect(subject.browserDialogButton2.textContent)
.to.equals('fxsync-disconnect');
.to.equals('fxsync-sign-out');
expect(subject.browserDialogButton2.dataset.type)
.to.equals('signout_confirm');
expect(subject.browserDialogButton2.classList.contains('visible'))
Expand Down
2 changes: 1 addition & 1 deletion tv_apps/browser/test/unit/sync/fixtures/settings.html
Expand Up @@ -9,7 +9,7 @@
<div id="fxsync-enabled">
<span id="fxsync-signed-in-as" data-l10n-id="fxsync-signed-in-as"></span>
<smart-button id="fxsync-sync-now-button" type="simple-text" data-l10n-id="fxsync-sync-now"></smart-button>
<smart-button id="fxsync-sign-out-button" type="simple-text" data-l10n-id="fxsync-disconnect">Disconnect</smart-button>
<smart-button id="fxsync-sign-out-button" type="simple-text" data-l10n-id="fxsync-sign-out"></smart-button>
<ul class="settings-horizontal-list">
<li class="settings-horizontal-list-item">
<input type="checkbox" id="fxsync-collection-bookmarks" ></input>
Expand Down
2 changes: 1 addition & 1 deletion tv_apps/browser/test/unit/sync/settings_test.js
Expand Up @@ -208,7 +208,7 @@ suite('Sync settings >', function() {
test('should show signout button', function() {
expect(subject.elements.signOutButton).to.be.an('object');
expect(subject.elements.signOutButton.getAttribute('data-l10n-id'))
.to.equals('fxsync-disconnect');
.to.equals('fxsync-sign-out');
});

test('should show collection switches', function() {
Expand Down

0 comments on commit e333b79

Please sign in to comment.