From 1b57bd064a3acd7cd8c72347e2e6b60beb62a0cf Mon Sep 17 00:00:00 2001 From: Ivan Tcholakov Date: Thu, 21 May 2009 17:27:56 +0200 Subject: [PATCH] [svn r20929] FS#2867 - The FCKEditor, dialogs: Adding support about language translation for the new nice buttons "Ok" and "Cancel". Making these buttons a little bit wider. --- .../editor/plugins/customizations/fckplugin.js | 14 +++++++++++++- .../fckeditor/editor/skins/silver/fck_dialog.css | 10 ++++++++-- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/main/inc/lib/fckeditor/editor/plugins/customizations/fckplugin.js b/main/inc/lib/fckeditor/editor/plugins/customizations/fckplugin.js index cdcadfbaac..df1f25ce1d 100644 --- a/main/inc/lib/fckeditor/editor/plugins/customizations/fckplugin.js +++ b/main/inc/lib/fckeditor/editor/plugins/customizations/fckplugin.js @@ -607,7 +607,7 @@ FCKSaveCommand.prototype.Execute = function() ************************************************************************************** */ -// Making a new alternative command for prcessing Images. +// Making a new alternative command for processing Images. var FCKImageCommand = function( name ) { this.Name = name ; @@ -804,6 +804,18 @@ FCKCommands.GetCommand = function( commandName ) return oCommand ; } +// Upgrading the language subsystem, so it could be able to translate new nice buttons. +FCKLanguageManager.TranslatePage = function( targetDocument ) +{ + this.TranslateElements( targetDocument, 'INPUT', 'value' ) ; + this.TranslateElements( targetDocument, 'SPAN', 'innerHTML' ) ; + this.TranslateElements( targetDocument, 'LABEL', 'innerHTML' ) ; + this.TranslateElements( targetDocument, 'OPTION', 'innerHTML', true ) ; + this.TranslateElements( targetDocument, 'LEGEND', 'innerHTML' ) ; + // The following tag has been added for searching: + this.TranslateElements( targetDocument, 'BUTTON', 'innerHTML' ) ; +} + /* ************************************************************************************** diff --git a/main/inc/lib/fckeditor/editor/skins/silver/fck_dialog.css b/main/inc/lib/fckeditor/editor/skins/silver/fck_dialog.css index 6e5f0c4572..b0f6fbd4cf 100644 --- a/main/inc/lib/fckeditor/editor/skins/silver/fck_dialog.css +++ b/main/inc/lib/fckeditor/editor/skins/silver/fck_dialog.css @@ -98,9 +98,15 @@ body, .BackColor #btnOk { - width: 100px; + width: 110px; } +#btnCancel +{ + width: 110px; +} + + .DarkBackground { background-color: #f2f2f2; @@ -505,4 +511,4 @@ button.next { /*including "back" image*/ button.back { background-image:url(images/button_back.gif); -} \ No newline at end of file +}