Skip to content

Commit 3345ace

Browse files
committed
Missed gettext() on some JS strings
1 parent b00fd1e commit 3345ace

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

sapling/pages/static/js/ckeditor/_source/plugins/includepage/dialogs/includepage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ CKEDITOR.dialog.add( 'includepage', function( editor )
128128
items :
129129
[
130130
[ editor.lang.common.alignLeft , 'left'],
131-
[ 'None' , ''],
131+
[ gettext('None') , ''],
132132
[ editor.lang.common.alignRight , 'right']
133133
],
134134
setup : function( data )

sapling/pages/static/js/ckeditor/_source/plugins/includetag/dialogs/includetag.js

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@ CKEDITOR.dialog.add( 'includetag', function( editor )
88
var pagelink_plugin = CKEDITOR.plugins.pagelink;
99

1010
return {
11-
title : 'List of tagged pages',
11+
title : gettext('List of tagged pages'),
1212
minWidth : 250,
1313
minHeight : 120,
1414
contents : [
1515
{
1616
id : 'info',
17-
label : 'List of tagged pages',
18-
title : 'List of tagged pages',
17+
label : gettext('List of tagged pages'),
18+
title : gettext('List of tagged pages'),
1919
elements :
2020
[
2121
{
2222
type : 'text',
2323
id : 'tag',
24-
label : 'Tag',
24+
label : gettext('Tag'),
2525
required: true,
2626
onLoad : function ()
2727
{
@@ -42,7 +42,7 @@ CKEDITOR.dialog.add( 'includetag', function( editor )
4242
validate : function()
4343
{
4444
var dialog = this.getDialog();
45-
var func = CKEDITOR.dialog.validate.notEmpty( 'Please enter a tag' );
45+
var func = CKEDITOR.dialog.validate.notEmpty( gettext('Please enter a tag') );
4646
return func.apply( this );
4747
},
4848
setup : function( data )
@@ -61,7 +61,7 @@ CKEDITOR.dialog.add( 'includetag', function( editor )
6161
{
6262
type : 'checkbox',
6363
id : 'showtitle',
64-
label : 'Show title',
64+
label : gettext('Show title'),
6565
setup : function( data )
6666
{
6767
if ( data.showtitle )
@@ -81,7 +81,7 @@ CKEDITOR.dialog.add( 'includetag', function( editor )
8181
{
8282
type : 'text',
8383
id : 'width',
84-
label : 'Width',
84+
label : gettext('Width'),
8585
setup : function( data )
8686
{
8787
if ( data.width )
@@ -107,8 +107,8 @@ CKEDITOR.dialog.add( 'includetag', function( editor )
107107
'default' : 'px',
108108
items :
109109
[
110-
[ 'pixels', 'px' ],
111-
[ 'percent', '%' ]
110+
[ gettext('pixels'), 'px' ],
111+
[ gettext('percent'), '%' ]
112112
],
113113
setup : function( data )
114114
{
@@ -123,12 +123,12 @@ CKEDITOR.dialog.add( 'includetag', function( editor )
123123
{
124124
type : 'radio',
125125
id : 'align',
126-
label : 'Align',
126+
label : gettext('Align'),
127127
'default' : '',
128128
items :
129129
[
130130
[ editor.lang.common.alignLeft , 'left'],
131-
[ 'None' , ''],
131+
[ gettext('None') , ''],
132132
[ editor.lang.common.alignRight , 'right']
133133
],
134134
setup : function( data )
@@ -209,7 +209,8 @@ CKEDITOR.dialog.add( 'includetag', function( editor )
209209
var selection = editor.getSelection(),
210210
ranges = selection.getRanges( true );
211211

212-
var textLabel = 'List of pages tagged "' + data.tag + '"';
212+
var fmts = gettext('List of pages tagged "%s"');
213+
var textLabel = interpolate(fmts, [data.tag]);
213214

214215
var text = new CKEDITOR.dom.text( textLabel, editor.document );
215216
ranges[0].insertNode( text );

sapling/pages/static/js/ckeditor/_source/plugins/simpleimage/dialogs/simpleimage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
819819
items :
820820
[
821821
[ editor.lang.common.alignLeft , 'left'],
822-
[ 'None' , ''],
822+
[ gettext('None') , ''],
823823
[ editor.lang.common.alignRight , 'right']
824824
// Backward compatible with v2 on setup when specified as attribute value,
825825
// while these values are no more available as select options.

0 commit comments

Comments
 (0)