Index: typo3/sysext/rtehtmlarea/ext_tables.php =================================================================== --- typo3/sysext/rtehtmlarea/ext_tables.php (révision 9881) +++ typo3/sysext/rtehtmlarea/ext_tables.php (copie de travail) @@ -22,10 +22,12 @@ ), ); t3lib_extMgm::allowTableOnStandardPages('tx_rtehtmlarea_acronym'); + t3lib_extMgm::addLLrefForTCAdescr('tx_rtehtmlarea_acronym','EXT:' . $_EXTKEY . '/locallang_csh_abbreviation.xml'); // Add contextual help files $htmlAreaRteContextHelpFiles = array( 'General' => 'EXT:' . $_EXTKEY . '/locallang_csh.xml', + 'Acronym' => 'EXT:' . $_EXTKEY . '/extensions/Acronym/locallang_csh.xml', 'EditElement' => 'EXT:' . $_EXTKEY . '/extensions/EditElement/locallang_csh.xml', 'Language' => 'EXT:' . $_EXTKEY . '/extensions/Language/locallang_csh.xml', 'PlainText' => 'EXT:' . $_EXTKEY . '/extensions/PlainText/locallang_csh.xml', Index: typo3/sysext/rtehtmlarea/extensions/Acronym/locallang_csh.xml =================================================================== --- typo3/sysext/rtehtmlarea/extensions/Acronym/locallang_csh.xml (révision 0) +++ typo3/sysext/rtehtmlarea/extensions/Acronym/locallang_csh.xml (révision 0) @@ -0,0 +1,47 @@ + + + + CSH for Aconym Extension of htmlArea RTE + CSH + xEXT_rtehtmlarea_Acronym + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Index: typo3/sysext/rtehtmlarea/htmlarea/plugins/Acronym/acronym.js =================================================================== --- typo3/sysext/rtehtmlarea/htmlarea/plugins/Acronym/acronym.js (révision 9881) +++ typo3/sysext/rtehtmlarea/htmlarea/plugins/Acronym/acronym.js (copie de travail) @@ -42,7 +42,7 @@ * Registering plugin "About" information */ var pluginInformation = { - version : '2.2', + version : '2.3', developer : 'Stanislas Rolland', developerUrl : 'http://www.sjbr.ca/', copyrightOwner : 'Stanislas Rolland', @@ -77,8 +77,7 @@ typeAhead: true, triggerAction: 'all', forceSelection: true, - mode: 'local', - helpIcon: true + mode: 'local' } }, /* @@ -110,7 +109,7 @@ }; // Open the dialogue window this.openDialogue( - 'Insert/Modify Acronym', + this.getButton(buttonId).tooltip.title, buttonId, this.getWindowDimensions({ width: 580}, buttonId), this.buildTabItemsConfig(abbr), @@ -133,7 +132,7 @@ */ openDialogue: function (title, buttonId, dimensions, tabItems, buttonsConfig, activeTab) { this.dialog = new Ext.Window({ - title: this.localize(title), + title: this.getHelpTip('', title), cls: 'htmlarea-window', // As of ExtJS 3.1, JS error with IE when the window is resizable resizable: !Ext.isIE, @@ -241,9 +240,8 @@ xtype: 'combo', displayField: 'term', valueField: 'term', - fieldLabel: this.localize('Unabridged_term'), + fieldLabel: this.getHelpTip('unabridgedTerm', 'Unabridged_term'), itemId: 'termSelector', - helpTitle: this.localize('Select_a_term'), tpl: '
{term}
', store: new Ext.data.JsonStore({ autoDestroy: true, @@ -275,9 +273,8 @@ displayField: 'abbr', valueField: 'abbr', tpl: '
{abbr}
', - fieldLabel: this.localize('Abridged_term'), + fieldLabel: this.getHelpTip('abridgedTerm', 'Abridged_term'), itemId: 'abbrSelector', - helpTitle: this.localize('Select_an_' + type), store: new Ext.data.JsonStore({ autoDestroy: true, autoLoad: true, @@ -331,10 +328,8 @@ }); itemsConfig.push(Ext.apply({ xtype: 'combo', - fieldLabel: this.localize('Language'), + fieldLabel: this.getHelpTip('language', 'Language'), itemId: 'language', - helpTitle: this.localize('Select_a_language'), - helpText: this.localize('Language_' + type + '_helpText'), valueField: 'value', displayField: 'text', tpl: '
{text}
', @@ -355,7 +350,7 @@ } return { xtype: 'fieldset', - title: this.localize('Defined_' + type), + title: this.getHelpTip('preDefined' + ((type == 'abbr') ? 'Abbreviation' : 'Acronym'), 'Defined_' + type), items: itemsConfig, listeners: { render: { @@ -437,7 +432,8 @@ * Handler when a term is selected */ onTermSelect: function (combo, record, index) { - var tab = combo.findParentByType('container'); + var fieldset = combo.findParentByType('fieldset'); + var tab = fieldset.findParentByType('container'); var term = record.get('term'); var abbr = record.get('abbr'); var language = record.get('language'); @@ -460,7 +456,8 @@ * Handler when an abbreviation or acronym is selected */ onAbbrSelect: function (combo, record, index) { - var tab = combo.findParentByType('container'); + var fieldset = combo.findParentByType('fieldset'); + var tab = fieldset.findParentByType('container'); var term = record.get('term'); var language = record.get('language'); // Update the term selector @@ -488,20 +485,16 @@ buildUseTermFieldsetConfig: function (element, type) { var itemsConfig = []; itemsConfig.push({ - fieldLabel: this.localize('Use_this_term'), + fieldLabel: this.getHelpTip('useThisTerm', 'Use_this_term'), labelSeparator: '', itemId: 'useTerm', value: element ? element.title : '', - width: 300, - helpTitle: this.localize('Use_this_term_explain') + width: 300 }); return { xtype: 'fieldset', - title: this.localize('Term_to_abridge'), + title: this.getHelpTip('termToAbridge', 'Term_to_abridge'), defaultType: 'textfield', - defaults: { - helpIcon: true - }, items: itemsConfig }; }, @@ -562,6 +555,10 @@ button.setDisabled(((el.nodeName.toLowerCase() == 'acronym' && this.pageTSConfiguration.noAcronym) || (el.nodeName.toLowerCase() == 'abbr' && this.pageTSConfiguration.noAbbr))); button.setInactive(!(el.nodeName.toLowerCase() == 'acronym' && !this.pageTSConfiguration.noAcronym) && !(el.nodeName.toLowerCase() == 'abbr' && !this.pageTSConfiguration.noAbbr)); } + button.setTooltip({ + title: this.localize((button.disabled || button.inactive) ? 'Insert abbreviation' : 'Edit abbreviation') + }); + button.contextMenuTitle = ''; if (this.dialog) { this.dialog.focus(); } Index: typo3/sysext/rtehtmlarea/htmlarea/plugins/Acronym/locallang.xml =================================================================== --- typo3/sysext/rtehtmlarea/htmlarea/plugins/Acronym/locallang.xml (révision 9881) +++ typo3/sysext/rtehtmlarea/htmlarea/plugins/Acronym/locallang.xml (copie de travail) @@ -7,15 +7,16 @@ - - - + + + + - + - + Index: typo3/sysext/rtehtmlarea/locallang_csh_abbreviation.xml =================================================================== --- typo3/sysext/rtehtmlarea/locallang_csh_abbreviation.xml (révision 0) +++ typo3/sysext/rtehtmlarea/locallang_csh_abbreviation.xml (révision 0) @@ -0,0 +1,28 @@ + + + + Context Sensitive Help for table + CSH + tx_rtehtmlarea_acronym + + + + + + + + + + + + + + + + + + + \ No newline at end of file Index: typo3/sysext/rtehtmlarea/locallang_db.xml =================================================================== --- typo3/sysext/rtehtmlarea/locallang_db.xml (révision 9881) +++ typo3/sysext/rtehtmlarea/locallang_db.xml (copie de travail) @@ -6,13 +6,13 @@ - + - - + + Index: typo3/sysext/rtehtmlarea/tca.php =================================================================== --- typo3/sysext/rtehtmlarea/tca.php (révision 9881) +++ typo3/sysext/rtehtmlarea/tca.php (copie de travail) @@ -63,8 +63,8 @@ 'config' => Array ( 'type' => 'radio', 'items' => Array ( + Array('LLL:EXT:rtehtmlarea/locallang_db.xml:tx_rtehtmlarea_acronym.type.I.1', '2'), Array('LLL:EXT:rtehtmlarea/locallang_db.xml:tx_rtehtmlarea_acronym.type.I.0', '1'), - Array('LLL:EXT:rtehtmlarea/locallang_db.xml:tx_rtehtmlarea_acronym.type.I.1', '2'), ), 'default' => '2', )