wrap more strings

This commit is contained in:
j 2014-02-14 15:23:59 +00:00
commit e8e4639dce
15 changed files with 61 additions and 64 deletions

View file

@ -3,12 +3,12 @@
pandora.ui.deleteDocumentDialog = function(files, callback) {
var string = files.length == 1 ? 'Document' : 'Documents',
var string = Ox._(files.length == 1 ? 'Document' : 'Documents'),
that = pandora.ui.iconDialog({
buttons: [
Ox.Button({
id: 'keep',
title: Ox._('Keep ' + string)
title: Ox._('Keep {0}', [string])
}).bindEvent({
click: function() {
that.close();
@ -16,7 +16,7 @@ pandora.ui.deleteDocumentDialog = function(files, callback) {
}),
Ox.Button({
id: 'delete',
title: Ox._('Delete ' + string)
title: Ox._('Delete {0}', [string])
}).bindEvent({
click: function() {
that.close();
@ -33,7 +33,7 @@ pandora.ui.deleteDocumentDialog = function(files, callback) {
: Ox._('Are you sure you want to delete {0} documents?', [files.length]),
keys: {enter: 'delete', escape: 'keep'},
title: files.length == 1
? Ox._('Delete Document')
? Ox._('Delete {0}', [string])
: Ox._('Delete {0} Documents', [files.length])
});