Provisional solution for translations which doesn't work

This commit is contained in:
Manuel Cillero 2017-07-26 22:25:24 +02:00
parent 84eeb009be
commit b89b2a81f7

View file

@ -48,14 +48,14 @@ CKEDITOR.plugins.add( 'drupalbreaks',
if ( Drupal.ckeditorTeaserInfo(editor.name) || Drupal.settings.ckeditor.teaser == editor.name ) { if ( Drupal.ckeditorTeaserInfo(editor.name) || Drupal.settings.ckeditor.teaser == editor.name ) {
editor.ui.addButton( 'DrupalBreak', editor.ui.addButton( 'DrupalBreak',
{ {
label : Drupal.t('Insert Teaser Break'), label : Drupal.t('Separador resumen/cuerpo'),
icon : this.path + 'images/drupalbreak.png', icon : this.path + 'images/drupalbreak.png',
command : 'drupalbreak' command : 'drupalbreak'
}); });
editor.ui.addButton( 'DrupalPageBreak', editor.ui.addButton( 'DrupalPageBreak',
{ {
label : Drupal.t( 'Insert Page Break' ), label : Drupal.t( 'Añadir separador de página' ),
icon : this.path + 'images/drupalpagebreak.png', icon : this.path + 'images/drupalpagebreak.png',
command : 'drupalpagebreak' command : 'drupalpagebreak'
}); });
@ -75,7 +75,7 @@ CKEDITOR.plugins.add( 'drupalbreaks',
var img = images.getItem( i ); var img = images.getItem( i );
if ( img.hasClass( 'cke_drupal_break' ) ) if ( img.hasClass( 'cke_drupal_break' ) )
{ {
if ( confirm( Drupal.t( 'The document already contains a teaser break. Do you want to proceed by removing it first?' ) ) ) if ( confirm( Drupal.t( 'El documento ya contiene un separador. ¿Desea borrarlo primero?' ) ) )
{ {
img.remove(); img.remove();
break; break;
@ -166,4 +166,4 @@ CKEDITOR.plugins.add( 'drupalbreaks',
} }
}); });
} }
}); });