• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

View
 

How to translate nicEdit

This version was saved 11 years, 11 months ago View current version     Page history
Saved by peter
on October 18, 2009 at 3:07:04 pm
 
  1. Download developer version
  2. Open nicEdit.js file
  3. Go to this few lines an edit the help text, for example, the translation into Spanish would be:
 
Aroud line 252:
var nicEditorConfig = bkClass.extend({

    buttons : {

        'bold' : {name : __('Negrita'), command : 'Bold', tags : ['B','STRONG'], css : {'font-weight' : 'bold'}, key : 'b'},

        'italic' : {name : __('Cursiva'), command : 'Italic', tags : ['EM','I'], css : {'font-style' : 'italic'}, key : 'i'},

        'underline' : {name : __('Subrayado'), command : 'Underline', tags : ['U'], css : {'text-decoration' : 'underline'}, key : 'u'},

        'left' : {name : __('Alinear texto a la izquierda'), command : 'justifyleft', noActive : true},

        'center' : {name : __('Centrar texto'), command : 'justifycenter', noActive : true},

        'right' : {name : __('Alinear texto a la derecha'), command : 'justifyright', noActive : true},

        'justify' : {name : __('Justificar texto'), command : 'justifyfull', noActive : true},

        'ol' : {name : __('Insertar lista ordenada'), command : 'insertorderedlist', tags : ['OL']},

        'ul' :     {name : __('Insertar lista desordenada'), command : 'insertunorderedlist', tags : ['UL']},

        'subscript' : {name : __('SubIndice'), command : 'subscript', tags : ['SUB']},

        'superscript' : {name : __('SuperIndice'), command : 'superscript', tags : ['SUP']},

        'strikethrough' : {name : __('Tachar'), command : 'strikeThrough', css : {'text-decoration' : 'line-through'}},

        'removeformat' : {name : __('Borrar formato'), command : 'removeformat', noActive : true},

        'indent' : {name : __('Identar'), command : 'indent', noActive : true},

        'outdent' : {name : __('Eliminar identado'), command : 'outdent', noActive : true},

        'hr' : {name : __('Barra separadora'), command : 'insertHorizontalRule', noActive : true}

 
Aroud line 1046:
var nicLinkOptions = {

    buttons : {

        'link' : {name : 'Enlazar', type : 'nicLinkButton', tags : ['A']},

        'unlink' : {name : 'Eliminar enlace',  command : 'unlink', noActive : true}

    }

 
Aroud line 1120:
var nicCodeOptions = {

    buttons : {

        'xhtml' : {name : 'Visualizar HTML', type : 'nicCodeButton'}

    }

};

 
Aroud line 1131:
    addPane : function() {

        this.addForm({

            '' : {type : 'title', txt : 'Editar HTML'},

            'code' : {type : 'content', 'value' : this.ne.selectedInstance.getContent(), style : {width: '340px', height : '200px'}}

        });

    },

Please correct my English, thanks!

 

Comments (0)

You don't have permission to comment on this page.