Changeset 22029 for trunk/wp-includes/js/media-views.js
- Timestamp:
- 09/27/2012 01:11:04 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/media-views.js
r22027 r22029 3 3 Attachment = media.model.Attachment, 4 4 Attachments = media.model.Attachments, 5 Query = media.model.Query; 6 5 Query = media.model.Query, 6 l10n; 7 8 // Link any localized strings. 9 l10n = media.view.l10n = _.isUndefined( _wpMediaViewsL10n ) ? {} : _wpMediaViewsL10n; 7 10 8 11 /** … … 387 390 this.attachmentsView = new media.view.Attachments({ 388 391 controller: this.controller, 389 directions: 'Select stuff.',392 directions: this.controller.get('multiple') ? l10n.selectMediaMultiple : l10n.selectMediaSingular, 390 393 collection: this.collection 391 394 }); … … 466 469 467 470 'create-new-gallery': { 468 style: 'primary',469 text: 'Create a new gallery',471 style: 'primary', 472 text: l10n.createNewGallery, 470 473 priority: 40, 471 click: function() { 474 475 click: function() { 472 476 controller.render('gallery'); 473 477 } … … 475 479 476 480 'insert-into-post': { 477 // style: 'primary', 478 text: 'Insert into post', 481 text: l10n.insertIntoPost, 479 482 priority: 30 480 483 }, 481 484 482 485 'add-to-gallery': { 483 text: 'Add to gallery',486 text: l10n.addToGallery, 484 487 priority: 20 485 488 }
Note: See TracChangeset
for help on using the changeset viewer.