JMelnikは正しいです。ただし、回避策があります。
これを行うには、primefaces サブバージョン リポジトリ ( 3_3_1/src/main/resources/META-INF/resources/primefaces/editor/editor.js)から editor.js ファイルをダウンロードし、プロジェクトのMETA-INF/resources/primefaces/editor
フォルダー内に配置します。
これで、ファイルを編集して、ロケールに応じて変更できます。私はpt_BRのいくつかのボタンのためにそれをしました:
buttons: {
// name,title,command,popupName (""=use name)
init:
"bold,Negrito,|" +
"italic,Itálico,|" +
"underline,Sublinhado,|" +
"strikethrough,Tachado,|" +
"subscript,Subscrito,|" +
"superscript,Sobrescrito,|" +
"font,Fonte,fontname,|" +
"size,Tamanho da Fonte,fontsize,|" +
"style,Estilo,formatblock,|" +
"color,Cor da fonte,forecolor,|" +
"highlight,Cor de Destaque do Texto,hilitecolor,color|" +
"removeformat,Remove Formatting,|" +
"bullets,Marcadores,insertunorderedlist|" +
"numbering,Numeração,insertorderedlist|" +
"outdent,Diminuir Recuo,|" +
"indent,Aumentar Recuo,|" +
"alignleft,Alinhar à Esquerda,justifyleft|" +
"center,Centralizar,justifycenter|" +
"alignright,Alinhar à Direita,justifyright|" +
"justify,Justificar,justifyfull|" +
"undo,,|" +
"redo,,|" +
"rule,Insert Horizontal Rule,inserthorizontalrule|" +
"image,Insert Image,insertimage,url|" +
"link,Insert Hyperlink,createlink,url|" +
"unlink,Remove Hyperlink,|" +
"cut,,|" +
"copy,,|" +
"paste,,|" +
"pastetext,Paste as Text,inserthtml,|" +
"print,,|" +
"source,Mostrar Código Fonte"
},
このアプローチは複数のロケールをサポートせず、コードを特定のエンコーディングに依存させるため (特殊文字を使用する可能性があるため)、そのための i18n ソリューションは素晴らしいでしょう。