Commit bacab187 authored by Susanne Moog's avatar Susanne Moog Committed by Benni Mack
Browse files

[TASK] Fix spelling of 'analyze'

As the core uses American English, 'analyze' should be
spelled with a `z`. This looked especially strange in the
install tool, where both spellings were mixed on one card.

Resolves: #86447
Releases: master
Change-Id: I484f75a05d3cf988baaebf91df30cd936f454eac
Reviewed-on: https://review.typo3.org/58454


Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
parent 4b3dfa14
......@@ -83,7 +83,7 @@ class CategoryPermissionsAspect
}
}
// First, remove all child nodes which must be analysed to be considered as "secure".
// First, remove all child nodes which must be analyzed to be considered as "secure".
// The nodes were backed up in variable $treeNodeCollection beforehand.
$treeData->removeChildNodes();
......
......@@ -28,7 +28,7 @@ use TYPO3\CMS\Core\Utility\MathUtility;
use TYPO3\CMS\Core\Utility\StringUtility;
/**
* This processor analyses the provided data-map before actually being process
* This processor analyzes the provided data-map before actually being process
* in the calling DataHandler instance. Field names that are configured to have
* "allowLanguageSynchronization" enabled are either synchronized from there
* relative parent records (could be a default language record, or a l10n_source
......
......@@ -36,7 +36,7 @@ use TYPO3\CMS\Extbase\SignalSlot\Dispatcher;
* Reference index processing and relation extraction
*
* NOTICE: When the reference index is updated for an offline version the results may not be correct.
* First, lets assumed that the reference update happens in LIVE workspace (ALWAYS update from Live workspace if you analyse whole database!)
* First, lets assumed that the reference update happens in LIVE workspace (ALWAYS update from Live workspace if you analyze whole database!)
* Secondly, lets assume that in a Draft workspace you have changed the data structure of a parent page record - this is (in TemplaVoila) inherited by subpages.
* When in the LIVE workspace the data structure for the records/pages in the offline workspace will not be evaluated to the right one simply because the data
* structure is taken from a rootline traversal and in the Live workspace that will NOT include the changed DataStructure! Thus the evaluation will be based
......
......@@ -153,7 +153,7 @@ class SoftReferenceIndex
* Will only return files in uploads/ folders which are prefixed with "RTEmagic[C|P]_" for substitution
* Any "clear.gif" images are ignored.
*
* @param string $content The input content to analyse
* @param string $content The input content to analyze
* @return array Result array on positive matches, see description above. Otherwise FALSE
*/
public function findRef_images($content)
......@@ -215,7 +215,7 @@ class SoftReferenceIndex
* TypoLink value processing.
* Will process input value as a TypoLink value.
*
* @param string $content The input content to analyse
* @param string $content The input content to analyze
* @param array $spParams Parameters set for the softref parser key in TCA/columns. value "linkList" will split the string by comma before processing.
* @return array Result array on positive matches, see description above. Otherwise FALSE
* @see \TYPO3\CMS\Frontend\ContentObject::typolink(), getTypoLinkParts()
......@@ -251,7 +251,7 @@ class SoftReferenceIndex
* TypoLink tag processing.
* Will search for <link ...> and <a> tags in the content string and process any found.
*
* @param string $content The input content to analyse
* @param string $content The input content to analyze
* @return array Result array on positive matches, see description above. Otherwise FALSE
* @see \TYPO3\CMS\Frontend\ContentObject::typolink(), getTypoLinkParts()
*/
......@@ -319,7 +319,7 @@ class SoftReferenceIndex
/**
* Finding email addresses in content and making them substitutable.
*
* @param string $content The input content to analyse
* @param string $content The input content to analyze
* @param array $spParams Parameters set for the softref parser key in TCA/columns
* @return array Result array on positive matches, see description above. Otherwise FALSE
*/
......@@ -355,7 +355,7 @@ class SoftReferenceIndex
/**
* Finding URLs in content
*
* @param string $content The input content to analyse
* @param string $content The input content to analyze
* @param array $spParams Parameters set for the softref parser key in TCA/columns
* @return array Result array on positive matches, see description above. Otherwise FALSE
*/
......@@ -394,7 +394,7 @@ class SoftReferenceIndex
/**
* Finding reference to files from extensions in content, but only to notify about their existence. No substitution
*
* @param string $content The input content to analyse
* @param string $content The input content to analyze
* @return array Result array on positive matches, see description above. Otherwise FALSE
*/
public function findRef_extension_fileref($content)
......@@ -425,7 +425,7 @@ class SoftReferenceIndex
*************************/
/**
* Analyse content as a TypoLink value and return an array with properties.
* Analyze content as a TypoLink value and return an array with properties.
* TypoLinks format is: <link [typolink] [browser target] [css class] [title attribute] [additionalParams]>.
* See TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer::typolink()
* The syntax of the [typolink] part is: [typolink] = [page id or alias][,[type value]][#[anchor, if integer = tt_content uid]]
......
......@@ -1100,7 +1100,7 @@ class RteHtmlParser extends HtmlParser implements LoggerAwareInterface
* Parse <A>-tag href and return status of email,external,file or page
* This functionality is not in use anymore
*
* @param string $url URL to analyse.
* @param string $url URL to analyze.
* @return array Information in an array about the URL
*/
public function urlInfoForLinkTags($url)
......
......@@ -106,7 +106,7 @@ abstract class AbstractXmlParser implements LocalizationParserInterface
return GeneralUtility::getFileAbsFileName(str_replace($fileName, $language . '.' . $fileName, $fileRef));
}
// Analyse file reference
// Analyze file reference
if (GeneralUtility::isFirstPartOfStr($fileRef, Environment::getFrameworkBasePath() . '/')) {
// Is system
$validatedPrefix = Environment::getFrameworkBasePath() . '/';
......
......@@ -200,14 +200,14 @@ class TemplateService
protected $templateIncludePaths = [];
/**
* For Template Analyser in backend
* For Template Analyzer in backend
*
* @var array
*/
public $hierarchyInfo = [];
/**
* For Template Analyser in backend (setup content only)
* For Template Analyzer in backend (setup content only)
*
* @var array
*/
......@@ -863,7 +863,7 @@ class TemplateService
$this->constants[] = $row['constants'];
$this->config[] = $row['config'];
$this->templateIncludePaths[] = $includePath;
// For backend analysis (Template Analyser) provide the order of added constants/config template IDs
// For backend analysis (Template Analyzer) provide the order of added constants/config template IDs
$this->clearList_const[] = $templateID;
$this->clearList_setup[] = $templateID;
if (trim($row['sitetitle'] ?? null)) {
......
......@@ -765,7 +765,7 @@ class GeneralUtility
/**
* Splits a reference to a file in 5 parts
*
* @param string $fileNameWithPath File name with path to be analysed (must exist if open_basedir is set)
* @param string $fileNameWithPath File name with path to be analyzed (must exist if open_basedir is set)
* @return array Contains keys [path], [file], [filebody], [fileext], [realFileext]
*/
public static function split_fileref($fileNameWithPath)
......@@ -3506,7 +3506,7 @@ class GeneralUtility
return str_replace($fileName, $language . '.' . $fileName, $fileRef);
}
// Analyse file reference
// Analyze file reference
if (self::isFirstPartOfStr($fileRef, Environment::getFrameworkBasePath() . '/')) {
// Is system
$validatedPrefix = Environment::getFrameworkBasePath() . '/';
......
......@@ -10,7 +10,7 @@ See :issue:`54518`
Description
===========
The active TSconfig of the linkvalidator is stored in the LinkAnalyser and made
The active TSconfig of the linkvalidator is stored in the LinkAnalyzer and made
publicly available to the link checkers.
The TSconfig is read either from the currently active TSconfig in the Backend
......@@ -32,7 +32,7 @@ Usage:
Impact
======
The method signature of `\TYPO3\CMS\Linkvalidator::LinkAnalyser::init()` is changed. A new parameter has been added
The method signature of `\TYPO3\CMS\Linkvalidator::LinkAnalyzer::init()` is changed. A new parameter has been added
for submitting the current TSconfig. This can break third party code that extends this method.
......
......@@ -41,7 +41,7 @@ The slot class:
* Receives a signal before the record is analyzed
*
* @param array $results Array of broken links
* @param array $record Record to analyse
* @param array $record Record to analyze
* @param string $table Table name of the record
* @param array $fields Array of fields to analyze
* @param LinkAnalyzer $parentObject Parent object
......
......@@ -277,7 +277,7 @@ Just a few of the capabilities you gain:
* You can change which Expression Node types are possible to use in templates rendered with your context, for example disabling
ternary expressions or adding a custom type of expression of your own.
* You can change which TemplateProcessors will be used to process templates when rendered with your context, to do whatever you
like - transform, analyse and so on the template source.
like - transform, analyze and so on the template source.
All of these parts are possible to replace via the provided RenderingContext - you don't necessarily have to create your own -
but when creating multiple implementations it is often easier to combine those in a custom RenderingContext and just provide
......
......@@ -74,7 +74,7 @@ TypoScript Syntax | https://docs.typo3.org/typo3cms/TyposcriptSyntaxReference/</
<source>Flags that will clear the inheritance of TypoScript code from former templates in the root line. There is a flag for Constants and one for Setup code.</source>
</trans-unit>
<trans-unit id="clear.details">
<source>In the Web &gt; Template / Template Analyser module you can see how far back in the template tree that constants and setup code is inherited.</source>
<source>In the Web &gt; Template / Template Analyzer module you can see how far back in the template tree that constants and setup code is inherited.</source>
</trans-unit>
<trans-unit id="_clear.seeAlso">
<source>sys_template:root</source>
......@@ -95,7 +95,7 @@ TypoScript Syntax | https://docs.typo3.org/typo3cms/TyposcriptSyntaxReference/</
<source>If set, static templates will be included after "based-on" templates. It basically swaps the order of inclusion of these external TypoScript sources.</source>
</trans-unit>
<trans-unit id="includeStaticAfterBasedOn.details">
<source>The Web &gt; Template / Template Analyser module allows you to view the order of inclusion of all TypoScript sources your template uses.</source>
<source>The Web &gt; Template / Template Analyzer module allows you to view the order of inclusion of all TypoScript sources your template uses.</source>
</trans-unit>
<trans-unit id="include_static.description">
<source>Static Template records to include.</source>
......@@ -120,7 +120,7 @@ TypoScript Syntax | https://docs.typo3.org/typo3cms/TyposcriptSyntaxReference/</
<source>Define the mode of inclusion of static template files.</source>
</trans-unit>
<trans-unit id="static_file_mode.details">
<source>If you are in doubt about the inclusion order, make sure to use the Web &gt; Template / Template Analyser to view the order.</source>
<source>If you are in doubt about the inclusion order, make sure to use the Web &gt; Template / Template Analyzer to view the order.</source>
</trans-unit>
<trans-unit id="nextLevel.description">
<source>Defines a template record to make active one level out in the page tree of this branch. This can be used to define another template record for the general website while having a special template for the frontpage.</source>
......
......@@ -419,7 +419,7 @@ class Export extends ImportExport
}
/**
* This analyses the existing added records, finds all database relations to records and adds these records to the export file.
* This analyzes the existing added records, finds all database relations to records and adds these records to the export file.
* This function can be called repeatedly until it returns an empty array.
* In principle it should not allow to infinite recursivity, but you better set a limit...
* Call this BEFORE the ext_addFilesFromRelations (so files from added relations are also included of course)
......
......@@ -181,7 +181,7 @@ The static mapping is obtained by selecting the "sys_language" table as a static
<source>When an HTML or CSS file is found as a soft reference the files are parsed for references to external media (such as images) and if any are found they are also exported. If you don't want this behaviour, click this option.</source>
</trans-unit>
<trans-unit id="htmlCssResources.details">
<source>Notice: Resources found inside an HTML or CSS file are not analysed further. For instance it means that any CSS files referred to from within an HTML will not be traversed - but CSS files referred to inside the Setup or Constant field of a TypoScript template record will be!</source>
<source>Notice: Resources found inside an HTML or CSS file are not analyzed further. For instance it means that any CSS files referred to from within an HTML will not be traversed - but CSS files referred to inside the Setup or Constant field of a TypoScript template record will be!</source>
</trans-unit>
<trans-unit id="_htmlCssResources.image">
<source>EXT:impexp/Resources/Public/Images/cshimages/htmlcss.png</source>
......
......@@ -582,8 +582,8 @@ class Indexer
$this->log_push('Extract words from content', '');
$splitInWords = $this->processWordsInArrays($this->contentParts);
$this->log_pull();
// Analyse the indexed words.
$this->log_push('Analyse the extracted words', '');
// Analyze the indexed words.
$this->log_push('Analyze the extracted words', '');
$indexArr = $this->indexAnalyze($splitInWords);
$this->log_pull();
// Submitting page (phash) record
......@@ -1180,8 +1180,8 @@ class Indexer
$this->log_push('Extract words from content', '');
$splitInWords = $this->processWordsInArrays($contentParts);
$this->log_pull();
// Analyse the indexed words.
$this->log_push('Analyse the extracted words', '');
// Analyze the indexed words.
$this->log_push('Analyze the extracted words', '');
$indexArr = $this->indexAnalyze($splitInWords);
$this->log_pull();
// Submitting page (phash) record
......
......@@ -27,7 +27,7 @@
<p class="card-text">Compare and update the database table and field definitions of your installation against the specification defined for every activated extension.</p>
</div>
<div class="card-footer">
<a href="#" class="btn btn-default" data-require="TYPO3/CMS/Install/DatabaseAnalyzer">Analyse database</a>
<a href="#" class="btn btn-default" data-require="TYPO3/CMS/Install/DatabaseAnalyzer">Analyze database</a>
</div>
</div>
<div class="card card-size-fixed-small">
......
......@@ -263,7 +263,7 @@ class LinkAnalyzer
* @param array $results Array of broken links
* @param string $table Table name of the record
* @param array $fields Array of fields to analyze
* @param array $record Record to analyse
* @param array $record Record to analyze
*/
public function analyzeRecord(array &$results, $table, array $fields, array $record)
{
......@@ -307,9 +307,9 @@ class LinkAnalyzer
}
if ($spKey === 'typolink_tag') {
$this->analyseTypoLinks($resultArray, $results, $htmlParser, $record, $field, $table);
$this->analyzeTypoLinks($resultArray, $results, $htmlParser, $record, $field, $table);
} else {
$this->analyseLinks($resultArray, $results, $record, $field, $table);
$this->analyzeLinks($resultArray, $results, $record, $field, $table);
}
}
}
......@@ -337,7 +337,7 @@ class LinkAnalyzer
* @param string $field The current field
* @param string $table The current table
*/
protected function analyseLinks(array $resultArray, array &$results, array $record, $field, $table)
protected function analyzeLinks(array $resultArray, array &$results, array $record, $field, $table)
{
foreach ($resultArray['elements'] as $element) {
$r = $element['subst'];
......@@ -374,7 +374,7 @@ class LinkAnalyzer
* @param string $field The current field
* @param string $table The current table
*/
protected function analyseTypoLinks(array $resultArray, array &$results, $htmlParser, array $record, $field, $table)
protected function analyzeTypoLinks(array $resultArray, array &$results, $htmlParser, array $record, $field, $table)
{
$currentR = [];
$linkTags = $htmlParser->splitIntoBlock('a,link', $resultArray['content']);
......@@ -557,7 +557,7 @@ class LinkAnalyzer
* Emits a signal before the record is analyzed
*
* @param array $results Array of broken links
* @param array $record Record to analyse
* @param array $record Record to analyze
* @param string $table Table name of the record
* @param array $fields Array of fields to analyze
* @return array
......
......@@ -52,7 +52,7 @@ class CleanFlexFormsCommand extends Command
'depth',
'd',
InputOption::VALUE_REQUIRED,
'Setting traversal depth. 0 (zero) will only analyse start page (see --pid), 1 will traverse one level of subpages etc.'
'Setting traversal depth. 0 (zero) will only analyze start page (see --pid), 1 will traverse one level of subpages etc.'
)
->addOption(
'dry-run',
......
......@@ -52,7 +52,7 @@ class DeletedRecordsCommand extends Command
'depth',
'd',
InputOption::VALUE_REQUIRED,
'Setting traversal depth. 0 (zero) will only analyse start page (see --pid), 1 will traverse one level of subpages etc.'
'Setting traversal depth. 0 (zero) will only analyze start page (see --pid), 1 will traverse one level of subpages etc.'
)
->addOption(
'dry-run',
......
......@@ -262,7 +262,7 @@
<source>Relations</source>
</trans-unit>
<trans-unit id="relations_description">
<source>This will analyse the content of the tables and check if there are 'empty' relations between records or if files are missing from their expected position.</source>
<source>This will analyze the content of the tables and check if there are 'empty' relations between records or if files are missing from their expected position.</source>
</trans-unit>
<trans-unit id="files_many_ref">
<source>Files referenced from more than one record</source>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment