More CSH updates
authorKasper Skårhøj <kasper@typo3.org>
Fri, 28 May 2004 22:23:52 +0000 (22:23 +0000)
committerKasper Skårhøj <kasper@typo3.org>
Fri, 28 May 2004 22:23:52 +0000 (22:23 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@330 709f56b5-9817-0410-a4d7-c38de5d9e867

t3lib/class.t3lib_tceforms.php
typo3/alt_doc.php
typo3/sysext/lang/locallang_csh_corebe.php
typo3/wizard_forms.php
typo3/wizard_table.php

index f3bb626..5987005 100755 (executable)
@@ -3187,7 +3187,11 @@ class t3lib_TCEforms     {
                        return '<a href="#" onclick="'.htmlspecialchars($aOnClick).'">'.
                                        '<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/helpbubble.gif','width="14" height="14"').' hspace="2" border="0" class="absmiddle"'.($GLOBALS['CLIENT']['FORMSTYLE']?' style="cursor:help;"':'').' alt="" />'.
                                        '</a>';
-               } else return '&nbsp;';
+               } else {
+                               // Detects fields with no CSH and outputs dummy line to insert into CSH locallang file:
+                       #debug(array("'".$field.".description' => '[FILL IN] ".$table."->".$field."',"),$table);
+                       return '&nbsp;';
+               }
        }
 
        /**
index a0cf826..513925c 100755 (executable)
@@ -800,6 +800,9 @@ class SC_alt_doc {
                                        // Compile the selector box finally:
                                $onChange = 'if(this.options[this.selectedIndex].value && !TBE_EDITOR_isFormChanged()){document.location=(this.options[this.selectedIndex].value);}';
                                $docSel='<select name="_docSelector" onchange="'.htmlspecialchars($onChange).'">'.implode('',$opt).'</select>';
+
+                                       // Add CSH:
+                               $docSel.=t3lib_BEfunc::cshItem('xMOD_csh_corebe', 'TCEforms_docSelector', $GLOBALS['BACK_PATH'],'');
                        }
                } else $docSel='';
                return $docSel;
@@ -817,6 +820,9 @@ class SC_alt_doc {
                        // Generate the menu if NOT disabled:
                if (!$this->modTSconfig['properties']['disableCacheSelector'])  {
                        $cMenu = $this->doc->clearCacheMenu(intval($this->viewId),!$this->modTSconfig['properties']['disableDocSelector']);
+
+                               // Add CSH:
+                       $cMenu.=t3lib_BEfunc::cshItem('xMOD_csh_corebe', 'TCEforms_cacheSelector', $GLOBALS['BACK_PATH'],'');
                } else $cMenu ='';
                return $cMenu;
        }
index d3315e8..917a14e 100644 (file)
@@ -30,6 +30,8 @@ $LOCAL_LANG = Array (
                'history_log.description' => "[FILL IN] history_log",
                'history_entry.description' => "[FILL IN] history_entry",
                'TCEforms.description' => "[FILL IN] TCEforms",
+               'TCEforms_docSelector.description' => "[FILL IN] TCEforms Document Sel",
+               'TCEforms_cacheSelector.description' => "[FILL IN] TCEforms Cache Sel",
                'new_pages.description' => "[FILL IN] new_pages",
                'new_regular.description' => "[FILL IN] new_regular",
                'filelist_module.description' => "[FILL IN] filelist_module",
@@ -40,6 +42,21 @@ $LOCAL_LANG = Array (
                'file_newfile.description' => "[FILL IN] file_newfile",
                'file_rename.description' => "[FILL IN] file_rename",
                'file_upload.description' => "[FILL IN] file_upload",
+               'wizard_forms_wiz.description' => "[FILL IN] wizard_forms_wiz",
+               'wizard_forms_wiz_buttons.description' => "[FILL IN] wizard_forms_wiz_buttons",
+               'wizard_forms_wiz_formmail_info.description' => "[FILL IN] wizard_forms_wiz_formmail_info",
+               'wizard_table_wiz.description' => "[FILL IN] wizard_table_wiz",
+               'wizard_table_wiz_buttons.description' => "[FILL IN] wizard_table_wiz_buttons",
+               '.description' => "[FILL IN] ",
+               '.description' => "[FILL IN] ",
+               '.description' => "[FILL IN] ",
+               '.description' => "[FILL IN] ",
+               '.description' => "[FILL IN] ",
+               '.description' => "[FILL IN] ",
+               '.description' => "[FILL IN] ",
+               '.description' => "[FILL IN] ",
+               '.description' => "[FILL IN] ",
+               '.description' => "[FILL IN] ",
        )
 );
 ?>
\ No newline at end of file
index 555c989..e1782fc 100755 (executable)
@@ -555,7 +555,9 @@ class SC_wizard_forms {
                        $tRows[]='
                                <tr>
                                        <td colspan="2" class="bgColor2">&nbsp;</td>
-                                       <td colspan="2" class="bgColor2"><strong>'.$LANG->getLL('forms_special_eform',1).':</strong></td>
+                                       <td colspan="2" class="bgColor2"><strong>'.$LANG->getLL('forms_special_eform',1).':</strong>'.
+                                               t3lib_BEfunc::cshItem('xMOD_csh_corebe', 'wizard_forms_wiz_formmail_info', $GLOBALS['BACK_PATH'],'').
+                                               '</td>
                                </tr>';
 
                                // "FORM type":
@@ -609,8 +611,13 @@ class SC_wizard_forms {
                                </tr>';
                }
 
+               $content = '';
+
+                       // Add CSH:
+               $content.= t3lib_BEfunc::cshItem('xMOD_csh_corebe', 'wizard_forms_wiz', $GLOBALS['BACK_PATH'],'');
+
                        // Implode all table rows into a string, wrapped in table tags.
-               $content = '
+               $content.= '
 
                        <!--
                                Form wizard
@@ -631,7 +638,10 @@ class SC_wizard_forms {
                $content.= '<a href="#" onclick="'.htmlspecialchars('jumpToUrl(unescape(\''.rawurlencode($this->P['returnUrl']).'\')); return false;').'">'.
                                        '<img'.t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/closedok.gif','width="21" height="16"').' class="c-inputButton" title="'.$LANG->sL('LLL:EXT:lang/locallang_core.php:rm.closeDoc',1).'" alt="" />'.
                                        '</a>';
-               $content.= '<input type="image" class="c-inputButton" name="_refresh"'.t3lib_iconWorks::skinImg('','gfx/refresh_n.gif','').' title="'.$LANG->getLL('forms_refresh',1).'" />
+               $content.= '<input type="image" class="c-inputButton" name="_refresh"'.t3lib_iconWorks::skinImg('','gfx/refresh_n.gif','').' title="'.$LANG->getLL('forms_refresh',1).'" />';
+                       // Add CSH:
+               $content.= t3lib_BEfunc::cshItem('xMOD_csh_corebe', 'wizard_forms_wiz_buttons', $GLOBALS['BACK_PATH'],'');
+               $content.= '
                        </div>
                ';
 
index 44112c6..03a6c8b 100755 (executable)
@@ -376,8 +376,13 @@ class SC_wizard_table {
                                </tr>';
                }
 
+               $content = '';
+
+                       // Add CSH:
+               $content.= t3lib_BEfunc::cshItem('xMOD_csh_corebe', 'wizard_table_wiz', $GLOBALS['BACK_PATH'],'');
+
                        // Implode all table rows into a string, wrapped in table tags.
-               $content = '
+               $content.= '
 
 
                        <!--
@@ -399,7 +404,9 @@ class SC_wizard_table {
                $content.= '<a href="#" onclick="'.htmlspecialchars('jumpToUrl(unescape(\''.rawurlencode($this->P['returnUrl']).'\')); return false;').'">'.
                                        '<img'.t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/closedok.gif','width="21" height="16"').' class="c-inputButton" title="'.$LANG->sL('LLL:EXT:lang/locallang_core.php:rm.closeDoc',1).'" alt="" />'.
                                        '</a>';
-               $content.= '<input type="image" class="c-inputButton" name="_refresh"'.t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/refresh_n.gif','').' title="'.$LANG->getLL('forms_refresh',1).'" />
+               $content.= '<input type="image" class="c-inputButton" name="_refresh"'.t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/refresh_n.gif','').' title="'.$LANG->getLL('forms_refresh',1).'" />';
+               $content.= t3lib_BEfunc::cshItem('xMOD_csh_corebe', 'wizard_table_wiz_buttons', $GLOBALS['BACK_PATH'],'');
+               $content.= '
                        </div>
                        ';