forked from 0x2620/pandora
fix text in makeListPrivateDialog
This commit is contained in:
parent
0cc7e70090
commit
1a97f85577
1 changed files with 13 additions and 6 deletions
|
@ -1,12 +1,16 @@
|
||||||
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
pandora.ui.makeListPrivateDialog = function(name, subscribers, callback) {
|
pandora.ui.makeListPrivateDialog = function(name, subscribers, callback) {
|
||||||
|
|
||||||
var that = pandora.ui.iconDialog({
|
var ui = pandora.user.ui,
|
||||||
|
folderItem = ui.section == 'item' ? 'List' : 'Edit',
|
||||||
|
that = pandora.ui.iconDialog({
|
||||||
buttons: [
|
buttons: [
|
||||||
Ox.Button({
|
Ox.Button({
|
||||||
id: 'keep',
|
id: 'keep',
|
||||||
title: Ox._('Keep List Public')
|
title: Ox._('Keep {0} Public', [folderItem])
|
||||||
}).bindEvent({
|
}).bindEvent({
|
||||||
click: function() {
|
click: function() {
|
||||||
that.close();
|
that.close();
|
||||||
|
@ -15,7 +19,7 @@ pandora.ui.makeListPrivateDialog = function(name, subscribers, callback) {
|
||||||
}),
|
}),
|
||||||
Ox.Button({
|
Ox.Button({
|
||||||
id: 'make',
|
id: 'make',
|
||||||
title: Ox._('Make List Private')
|
title: Ox._('Make {0} Private', [folderItem])
|
||||||
}).bindEvent({
|
}).bindEvent({
|
||||||
click: function() {
|
click: function() {
|
||||||
that.close();
|
that.close();
|
||||||
|
@ -23,10 +27,13 @@ pandora.ui.makeListPrivateDialog = function(name, subscribers, callback) {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
content: Ox._('Are you sure you want to make the list "{0}" private and lose its {1}?',
|
content: Ox._('Are you sure you want to make the {0} "{1}" private and lose its {2}?', [
|
||||||
[name, subscribers == 1 ? Ox._('subscriber') : Ox._('{0} subscribers', [subscribers])]),
|
folderItem.toLowerCase(),
|
||||||
|
name,
|
||||||
|
subscribers == 1 ? Ox._('subscriber') : Ox._('{0} subscribers', [subscribers])
|
||||||
|
]),
|
||||||
keys: {enter: 'make', escape: 'keep'},
|
keys: {enter: 'make', escape: 'keep'},
|
||||||
title: Ox._('Make List Private')
|
title: Ox._('Make {0} Private', [folderItem])
|
||||||
});
|
});
|
||||||
|
|
||||||
return that;
|
return that;
|
||||||
|
|
Loading…
Reference in a new issue