Change apply-to-all checkbox text for some conflicts
Say "Use the [local|remote] version for all remaining conflicts" for
everything instead of saying "Use [local|remote] fields for all
remaining conflicts" for some conflicts.
This also fixes a test failure after 54343c49fb
.
This commit is contained in:
parent
72234e0cb2
commit
4b7cdddb4a
3 changed files with 7 additions and 19 deletions
|
@ -293,21 +293,11 @@ var Zotero_Merge_Window = new function () {
|
|||
|
||||
|
||||
function _updateResolveAllCheckbox() {
|
||||
if (_mergeGroup.type == 'file') {
|
||||
if (_mergeGroup.rightpane.getAttribute("selected") == 'true') {
|
||||
var label = 'resolveAllRemote';
|
||||
}
|
||||
else {
|
||||
var label = 'resolveAllLocal';
|
||||
}
|
||||
if (_mergeGroup.rightpane.getAttribute("selected") == 'true') {
|
||||
var label = 'resolveAllRemote';
|
||||
}
|
||||
else {
|
||||
if (_mergeGroup.rightpane.getAttribute("selected") == 'true') {
|
||||
var label = 'resolveAllRemoteFields';
|
||||
}
|
||||
else {
|
||||
var label = 'resolveAllLocalFields';
|
||||
}
|
||||
var label = 'resolveAllLocal';
|
||||
}
|
||||
_resolveAllCheckbox.label = Zotero.getString('sync.conflict.' + label);
|
||||
}
|
||||
|
|
|
@ -1002,8 +1002,6 @@ sync.conflict.localFile = Local File
|
|||
sync.conflict.remoteFile = Remote File
|
||||
sync.conflict.resolveAllLocal = Use the local version for all remaining conflicts
|
||||
sync.conflict.resolveAllRemote = Use the remote version for all remaining conflicts
|
||||
sync.conflict.resolveAllLocalFields = Use local fields for all remaining conflicts
|
||||
sync.conflict.resolveAllRemoteFields = Use remote fields for all remaining conflicts
|
||||
sync.conflict.itemChanged = The following item has been changed in multiple locations. Click the version to use for resolving conflicting fields, and then click %S.
|
||||
sync.conflict.fileChanged = The following file has been changed in multiple locations. Choose the version you would like to keep, and then click %S.
|
||||
sync.conflict.chooseThisVersion = Choose this version
|
||||
|
|
|
@ -3476,7 +3476,7 @@ describe("Zotero.Sync.Data.Engine", function () {
|
|||
assert.equal(mergeGroup.rightpane.getAttribute('selected'), 'true');
|
||||
assert.equal(
|
||||
resolveAll.label,
|
||||
Zotero.getString('sync.conflict.resolveAllRemoteFields')
|
||||
Zotero.getString('sync.conflict.resolveAllRemote')
|
||||
);
|
||||
wizard.getButton('next').click();
|
||||
|
||||
|
@ -3485,7 +3485,7 @@ describe("Zotero.Sync.Data.Engine", function () {
|
|||
mergeGroup.leftpane.click();
|
||||
assert.equal(
|
||||
resolveAll.label,
|
||||
Zotero.getString('sync.conflict.resolveAllLocalFields')
|
||||
Zotero.getString('sync.conflict.resolveAllLocal')
|
||||
);
|
||||
resolveAll.click();
|
||||
|
||||
|
@ -3598,7 +3598,7 @@ describe("Zotero.Sync.Data.Engine", function () {
|
|||
assert.equal(mergeGroup.rightpane.getAttribute('selected'), 'true');
|
||||
assert.equal(
|
||||
resolveAll.label,
|
||||
Zotero.getString('sync.conflict.resolveAllRemoteFields')
|
||||
Zotero.getString('sync.conflict.resolveAllRemote')
|
||||
);
|
||||
wizard.getButton('next').click();
|
||||
|
||||
|
@ -3606,7 +3606,7 @@ describe("Zotero.Sync.Data.Engine", function () {
|
|||
assert.equal(mergeGroup.rightpane.getAttribute('selected'), 'true');
|
||||
assert.equal(
|
||||
resolveAll.label,
|
||||
Zotero.getString('sync.conflict.resolveAllRemoteFields')
|
||||
Zotero.getString('sync.conflict.resolveAllRemote')
|
||||
);
|
||||
resolveAll.click();
|
||||
|
||||
|
|
Loading…
Reference in a new issue