Index: mod2/index.php =================================================================== --- mod2/index.php (revision 28964) +++ mod2/index.php (working copy) @@ -311,9 +311,9 @@ $tRows = array(); $tRows[] = '
DS/TO Title: | -Localization: | -Container status: | -Mapping status: | -Usage Count: | +' . $GLOBALS['LANG']->getLL('dstotitle', 1) . ' | +' . $GLOBALS['LANG']->getLL('localization', 1) . ' | +' . $GLOBALS['LANG']->getLL('containerstatus', 1) . ' | +' . $GLOBALS['LANG']->getLL('mappingstatus', 1) . ' | +' . $GLOBALS['LANG']->getLL('usagecount', 1) . ' |
The element has no basic definitions!
'; + $HTML .= '' . $GLOBALS['LANG']->getLL('dsdetails_nobasicdefinitions', 1) . '
'; } if (($tf = $def['TCEforms'])) { @@ -1592,7 +1596,7 @@ */ } else if (!$tco) { - $HTML .= 'The element has no TCE-form definitions!
'; + $HTML .= '' . $GLOBALS['LANG']->getLL('dsdetails_notceformdefinitions', 1) . '
'; } } @@ -1703,18 +1707,8 @@ if ($BE_USER->isAdmin()) { // Introduction: - $outputString.= nl2br(htmlspecialchars(trim(' - If you want to start a new website based on the TemplaVoila template engine you can start this wizard which will set up all the boring initial stuff for you. - You will be taken through these steps: - - Creation of a new website root, storage folder, sample pages. - - Creation of the main TemplaVoila template, including mapping of one content area and a main menu. - - Creation of a backend user and group to manage only that website. + $outputString.= nl2br($LANG->getLL('newsitewizard_intro', 1)); - You should prepare an HTML template before you begin the wizard; simply make a design in HTML and place the HTML file including graphics and stylesheets in a subfolder of "' . $GLOBALS['TYPO3_CONF_VARS']['BE']['fileadminDir'] . 'templates/" relative to the websites root directory. - Tip about menus: If you include a main menu in the template, try to place the whole menu inside a container (like or ). Use A-tags for the links. If you want different designs for normal and active menu elements, design the first menu item as "Active" and the second (and rest) as "Normal", then the wizard might be able to capture the right configuration.
- Tip about stylesheets: The content elements from TYPO3 will be outputted in regular HTML tags like , to
- '; + '; } else { - $outputString.= ' - - - There are some technical problems you have to solve before you can start the wizard! Please see below for details. Solve these problems first and come back.'; + $outputString.= ' ' . $LANG_getLL('newsitewizard_problem'); } @@ -1737,17 +1728,17 @@ // Missing extension warning: if ($missingExt) { - $this->content.= $this->doc->section('Missing extension!',$missingExt,0,1,3); + $this->content.= $this->doc->section($LANG->getLL('newsitewizard_missingext'), $missingExt, 0, 1, 3); } // Missing configuration warning: if ($missingConf) { - $this->content.= $this->doc->section('Missing configuration!',$missingConf,0,1,3); + $this->content.= $this->doc->section($LANG->getLL('newsitewizard_missingconf'), $missingConf, 0, 1, 3); } // Missing directory warning: if ($missingDir) { - $this->content.= $this->doc->section('Missing directory!',$missingDir,0,1,3); + $this->content.= $this->doc->section($LANG->getLL('newsitewizard_missingdir'), $missingDir, 0, 1, 3); } } } @@ -1792,7 +1783,7 @@ break; } - $outputString.= ' '; + $outputString.= ' '; // Add output: $this->content.= $this->doc->section('',$outputString,0,1); @@ -1809,7 +1800,7 @@ */ function wizard_checkMissingExtensions() { - $outputString.='Before the wizard can run some extensions are required to be installed. Below you will see the which extensions are required and which are not available at this moment. Please go to the Extension Manager and install these first.'; + $outputString .= $GLOBALS['LANG']->getLL('newsitewizard_missingext_description', 1); // Create extension status: $checkExtensions = explode(',','css_styled_content,impexp'); @@ -1817,14 +1808,14 @@ $tRows = array(); $tRows[] = ' Extension Key: |
- Installed? |
+ ' . $GLOBALS['LANG']->getLL('newsitewizard_missingext_extkey', 1) . ' |
+ ' . $GLOBALS['LANG']->getLL('newsitewizard_missingext_installed', 1) . ' |
'.$extKey.' |
- '.(t3lib_extMgm::isLoaded($extKey) ? 'Yes' : 'No!').' |
+ '.(t3lib_extMgm::isLoaded($extKey) ? $GLOBALS['LANG']->getLL('newsitewizard_missingext_yes', 1) : '' . $GLOBALS['LANG']->getLL('newsitewizard_missingext_no', 1) . '').' |
'); + $outputString .= sprintf($GLOBALS['LANG']->getLL('newsitewizard_firststep'), $this->templatesDir). ' '; // Get all HTML files: $fileArr = t3lib_div::getAllFilesAndFoldersInPath(array(),PATH_site.$this->templatesDir,'html,htm',0,1); @@ -1889,9 +1872,9 @@ // Prepare header: $tRows = array(); $tRows[] = ' Path: |
- Usage: |
- Action: |
+ ' . $GLOBALS['LANG']->getLL('toused_path', 1) . ': |
+ ' . $GLOBALS['LANG']->getLL('usage', 1) . ': |
+ ' . $GLOBALS['LANG']->getLL('action', 1) . ': |
'.htmlspecialchars($file).' |
- '.(count($tosForTemplate) ? 'Used '.count($tosForTemplate).' times' : 'Not used yet').' |
+ ' . htmlspecialchars($file) . ' |
+ ' . (count($tosForTemplate) ? sprintf($GLOBALS['LANG']->getLL('newsitewizard_usedtimes', 1), count($tosForTemplate)) : $GLOBALS['LANG']->getLL('newsitewizard_notused', 1)) . ' |
'.
- '[Preview first] '.
- '[Choose as Template] '.
+ '' . $GLOBALS['LANG']->getLL('newsitewizard_preview', 1) . ' '.
+ '' . $GLOBALS['LANG']->getLL('newsitewizard_choose', 1) . ' '.
' |
'; + $outputString.= ' '; // Add output: - $this->content.= $this->doc->section('Step 1: Select the template HTML file',$outputString,0,1); + $this->content .= $this->doc->section($GLOBALS['LANG']->getLL('newsitewizard_selecttemplate', 1), $outputString, 0, 1); } else { - $this->content .= $this->doc->section('TemplaVoila wizard error',$this->templatesDir.' is not a directory! Please, create it before starting this wizard.',0,1); + $this->content .= $this->doc->section('TemplaVoila wizard error', sprintf($GLOBALS['LANG']->getLL('newsitewizard_errornodir', 1), $this->templatesDir), 0, 1); } } @@ -1946,38 +1929,39 @@ // Show selected template file: if ($this->wizardData['file']) { - $outputString.= nl2br('The template file "'.htmlspecialchars($this->wizardData['file']).'" is now selected: '); + $outputString.= htmlspecialchars(sprintf($GLOBALS['LANG']->getLL('newsitewizard_templateselected'), $this->wizardData['file'])); $outputString.= ' '; // Enter default data: $outputString.=' - Next, you should enter default values for the new website. With this basic set of information we are ready to create the initial website structure! + ' . $GLOBALS['LANG']->getLL('newsitewizard_step2next', 1) . ' + - Name of the site: - (Required) - This value is shown in the browsers title bar and will be the default name of the first page in the page tree. + ' . $GLOBALS['LANG']->getLL('newsitewizard_step2_name', 1) . ': + ' . $GLOBALS['LANG']->getLL('newsitewizard_step2_required', 1) . ' + ' . $GLOBALS['LANG']->getLL('newsitewizard_step2_valuename', 1) . ' - URL of the website: - (Optional) - If you know the URL of the website already please enter it here, eg. "www.mydomain.com". + ' . $GLOBALS['LANG']->getLL('newsitewizard_step2_url', 1) . ': + ' . $GLOBALS['LANG']->getLL('newsitewizard_step2_optional', 1) . ' + ' . $GLOBALS['LANG']->getLL('newsitewizard_step2_valueurl', 1) . ' - Editor username - (Required) - Enter the username of a new backend user/group who will be able to edit the pages on the new website. (Password will be "password" by default, make sure to change that!) + ' . $GLOBALS['LANG']->getLL('newsitewizard_step2_editor', 1) . ': + ' . $GLOBALS['LANG']->getLL('newsitewizard_step2_required', 1) . ' + ' . $GLOBALS['LANG']->getLL('newsitewizard_step2_username', 1) . ' - + '; } else { - $outputString.= 'No template file found!?'; + $outputString .= $GLOBALS['LANG']->getLL('newsitewizard_step2_notemplatefound', 1); } // Add output: - $this->content.= $this->doc->section('Step 2: Enter default values for new site',$outputString,0,1); + $this->content .= $this->doc->section($GLOBALS['LANG']->getLL('newsitewizard_step2', 1), $outputString, 0, 1); } /** @@ -2019,7 +2003,7 @@ // Update various fields (the index values, eg. the "1" in "$import->import_mapId['pages'][1]]..." are the UIDs of the original records from the import file!) $data = array(); $data['pages'][t3lib_BEfunc::wsMapId('pages',$import->import_mapId['pages'][1])]['title'] = $this->wizardData['sitetitle']; - $data['sys_template'][t3lib_BEfunc::wsMapId('sys_template',$import->import_mapId['sys_template'][1])]['title'] = 'Main template: '.$this->wizardData['sitetitle']; + $data['sys_template'][t3lib_BEfunc::wsMapId('sys_template',$import->import_mapId['sys_template'][1])]['title'] = $GLOBALS['LANG']->getLL('newsitewizard_maintemplate', 1) . ' ' . $this->wizardData['sitetitle']; $data['sys_template'][t3lib_BEfunc::wsMapId('sys_template',$import->import_mapId['sys_template'][1])]['sitetitle'] = $this->wizardData['sitetitle']; $data['tx_templavoila_tmplobj'][t3lib_BEfunc::wsMapId('tx_templavoila_tmplobj',$import->import_mapId['tx_templavoila_tmplobj'][1])]['fileref'] = $this->wizardData['file']; $data['tx_templavoila_tmplobj'][t3lib_BEfunc::wsMapId('tx_templavoila_tmplobj',$import->import_mapId['tx_templavoila_tmplobj'][1])]['templatemapping'] = serialize( @@ -2068,10 +2052,10 @@ t3lib_BEfunc::getSetUpdateSignal('updatePageTree'); - $outputString.= 'New site has been created and adapted. '; + $outputString .= $GLOBALS['LANG']->getLL('newsitewizard_maintemplate', 1) . ' '; } } else { - $outputString.= 'Error happened: Either you did not specify a website name or username in the previous form!'; + $outputString .= $GLOBALS['LANG']->getLL('newsitewizard_maintemplate', 1); } } @@ -2079,18 +2063,17 @@ if ($this->wizardData['templateObjectId']) { $url = '../cm1/index.php?table=tx_templavoila_tmplobj&uid='.$this->wizardData['templateObjectId'].'&SET[selectHeaderContent]=0&_reload_from=1&returnUrl='.rawurlencode('../mod2/index.php?SET[wiz_step]=4'); - $outputString.= ' - You are now ready to point out at which position in the HTML code to insert the TYPO3 generated page content and the main menu. This process is called "mapping". - The process of mapping is shown with this little animation. Please study it closely to understand the flow, then click the button below to start the mapping process on your own. Complete the mapping process by pressing "Save and Return". + $outputString.= $GLOBALS['LANG']->getLL('newsitewizard_step3ready') . ' + - + '; } // Add output: - $this->content.= $this->doc->section('Step 3: Begin mapping',$outputString,0,1); + $this->content.= $this->doc->section($GLOBALS['LANG']->getLL('newsitewizard_beginmapping', 1), $outputString, 0, 1); } /** @@ -2100,18 +2083,15 @@ */ function wizard_step4() { $url = '../cm1/index.php?table=tx_templavoila_tmplobj&uid='.$this->wizardData['templateObjectId'].'&SET[selectHeaderContent]=1&_reload_from=1&returnUrl='.rawurlencode('../mod2/index.php?SET[wiz_step]=5'); - $outputString.= ' - Finally you also have to select which parts of the HTML header you want to include. For instance it is important that you select all sections with CSS styles in order to preserve the correct visual appearance of your website. - You can also select the body-tag of the template if you want to use the original body-tag. - This animations shows an example of this process: + $outputString .= $GLOBALS['LANG']->getLL('newsitewizard_headerinclude') . ' - + '; // Add output: - $this->content.= $this->doc->section('Step 4: Select HTML header parts',$outputString,0,1); + $this->content .= $this->doc->section($GLOBALS['LANG']->getLL('newsitewizard_step4'), $outputString, 0, 1); } /** @@ -2134,10 +2114,7 @@ if (strlen($menuPart)) { // Main message: - $outputString.= ' - The basics of your website should be working now. However the '.$menuTypeText.' still needs to be configured so that TYPO3 automatically generates a menu reflecting the pages in the page tree. This process involves configuration of the TypoScript object path, "lib.'.$menuType.'". This is a technical job which requires that you know about TypoScript if you want it 100% customized. - To assist you getting started with the '.$menuTypeText.' this wizard will try to analyse the menu found inside the template file. If the menu was created of a series of repetitive block tags containing A-tags then there is a good chance this will succeed. You can see the result below. - '; + $outputString.= sprintf($GLOBALS['LANG']->getLL('newsitewizard_basicsshouldwork', 1), $menuTypeText, $menuType, $menuTypeText); // Start up HTML parser: require_once(PATH_t3lib.'class.t3lib_parsehtml.php'); @@ -2306,7 +2283,7 @@ $outputString.=' - Here is the HTML code from the Template that encapsulated the menu: + ' . $GLOBALS['LANG']->getLL('newsitewizard_menuhtmlcode', 1) . ' '.htmlspecialchars($menuPart_HTML).' @@ -2314,43 +2291,41 @@ if (trim($menu_normal['wrap']) != '|') { - $outputString.= 'It seems that the menu consists of menu items encapsulated with "'.htmlspecialchars(str_replace('|',' ... ',$menu_normal['wrap'])).'". '; + $outputString .= sprintf($GLOBALS['LANG']->getLL('newsitewizard_menuenc', 1), htmlspecialchars(str_replace('|', ' ... ', $menu_normal['wrap']))); } else { - $outputString.= 'It seems that the menu consists of menu items not wrapped in any block tags except A-tags. '; + $outputString .= $GLOBALS['LANG']->getLL('newsitewizard_menunoa', 1); } if (count($totalWrap)) { - $outputString.='It also seems that the whole menu is wrapped in this tag: "'.htmlspecialchars(str_replace('|',' ... ',implode('|',$totalWrap))).'". '; + $outputString .= sprintf($GLOBALS['LANG']->getLL('newsitewizard_menuwrap', 1), htmlspecialchars(str_replace('|', ' ... ', implode('|', $totalWrap)))); } if ($menu_normal['bulletwrap']) { - $outputString.='Between the menu elements there seems to be a visual division element with this HTML code: "'.htmlspecialchars($menu_normal['bulletwrap']).'". That will be added between each element as well. '; + $outputString .= sprintf($GLOBALS['LANG']->getLL('newsitewizard_menudiv', 1), htmlspecialchars($menu_normal['bulletwrap'])); } if ($GMENU) { - $outputString.='The menu items were detected to be images - TYPO3 will try to generate graphical menu items automatically (GMENU). You will need to customize the look of these before it will match the originals! '; + $outputString .= $GLOBALS['LANG']->getLL('newsitewizard_menuimg', 1); } if ($mouseOver) { - $outputString.='It seems like a mouseover functionality has been applied previously, so roll-over effect has been applied as well. '; + $outputString .= $GLOBALS['LANG']->getLL('newsitewizard_menumouseover', 1); } - $outputString.=' '; - $outputString.='Based on this analysis, this TypoScript configuration for the menu is suggested: + $outputString .= ' '; + $outputString .= $GLOBALS['LANG']->getLL('newsitewizard_menuts', 1) . ' '; $outputString.=' '.$this->syntaxHLTypoScript($typoScript).' '; - $outputString.='You can fine tune the configuration here before it is saved: '; - $outputString.=' '; - $outputString.=''; - $outputString.=''; + $outputString .= $GLOBALS['LANG']->getLL('newsitewizard_menufinetune', 1); + $outputString .= ' '; + $outputString .= ''; + $outputString .= ''; } else { - $outputString.= ' - The basics of your website should be working now. It seems like you did not map the '.$menuTypeText.' to any element, so the menu configuration process will be skipped. - '; + $outputString.= sprintf($GLOBALS['LANG']->getLL('newsitewizard_menufinished', 1), $menuTypeText) . ' '; $outputString.=''; - $outputString.=''; + $outputString.=''; } // Add output: - $this->content.= $this->doc->section('Step 5'.$menuTypeLetter.': Trying to create dynamic menu',$outputString,0,1); + $this->content.= $this->doc->section(sprintf($GLOBALS['LANG']->getLL('newsitewizard_step5', 1), $menuTypeLetter), $outputString, 0, 1); } @@ -2364,15 +2339,15 @@ $this->saveMenuCode(); - $outputString.= 'Congratulations! You have completed the initial creation of a new website in TYPO3 based on the TemplaVoila engine. After you click the "Finish" button you can go to the Web>Page module to edit your pages! + $outputString.= $GLOBALS['LANG']->getLL('newsitewizard_sitecreated') . ' - + '; // Add output: - $this->content.= $this->doc->section('Step 6: Done',$outputString,0,1); + $this->content .= $this->doc->section($GLOBALS['LANG']->getLL('newsitewizard_done', 1), $outputString, 0, 1); } /** Index: mod2/locallang.xml =================================================================== --- mod2/locallang.xml (revision 28964) +++ mod2/locallang.xml (working copy) @@ -11,8 +11,162 @@ |