Commit a9902b5c authored by Sebastian Michaelsen's avatar Sebastian Michaelsen Committed by Nicole Cordes
Browse files

[TASK] Use "an" instead of "a" where appropriate

In english you have to use "an" before any spoken vowel.

Resolves: #68326
Releases: master
Change-Id: I2f8996d14eb532bd297b7035a6daaee4fea3f140
Reviewed-on: http://review.typo3.org/41651

Reviewed-by: default avatarHelmut Hummel <helmut.hummel@typo3.org>
Tested-by: default avatarHelmut Hummel <helmut.hummel@typo3.org>
Reviewed-by: Nicole Cordes's avatarNicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes's avatarNicole Cordes <typo3@cordes.co>
parent 793191c7
...@@ -300,7 +300,7 @@ class ShortcutToolbarItem implements ToolbarItemInterface { ...@@ -300,7 +300,7 @@ class ShortcutToolbarItem implements ToolbarItemInterface {
} }
/** /**
* Adds the correct token, if the url is a index.php script * Adds the correct token, if the url is an index.php script
* *
* @param string $url * @param string $url
* @return string * @return string
......
...@@ -96,7 +96,7 @@ class RenameFileController { ...@@ -96,7 +96,7 @@ class RenameFileController {
} }
// If a folder should be renamed, AND the returnURL should go to the old directory name, the redirect is forced // If a folder should be renamed, AND the returnURL should go to the old directory name, the redirect is forced
// so the redirect will NOT end in a error message // so the redirect will NOT end in an error message
// this case only happens if you select the folder itself in the foldertree and then use the clickmenu to // this case only happens if you select the folder itself in the foldertree and then use the clickmenu to
// rename the folder // rename the folder
if ($this->fileOrFolderObject instanceof \TYPO3\CMS\Core\Resource\Folder) { if ($this->fileOrFolderObject instanceof \TYPO3\CMS\Core\Resource\Folder) {
......
...@@ -106,7 +106,7 @@ class ReplaceFileController { ...@@ -106,7 +106,7 @@ class ReplaceFileController {
} }
// If a folder should be renamed, AND the returnURL should go to the old directory name, the redirect is forced // If a folder should be renamed, AND the returnURL should go to the old directory name, the redirect is forced
// so the redirect will NOT end in a error message // so the redirect will NOT end in an error message
// this case only happens if you select the folder itself in the foldertree and then use the clickmenu to // this case only happens if you select the folder itself in the foldertree and then use the clickmenu to
// rename the folder // rename the folder
if ($this->fileOrFolderObject instanceof Folder) { if ($this->fileOrFolderObject instanceof Folder) {
...@@ -219,4 +219,4 @@ class ReplaceFileController { ...@@ -219,4 +219,4 @@ class ReplaceFileController {
protected function getLanguageService() { protected function getLanguageService() {
return $GLOBALS['LANG']; return $GLOBALS['LANG'];
} }
} }
\ No newline at end of file
...@@ -580,7 +580,7 @@ class NewRecordController { ...@@ -580,7 +580,7 @@ class NewRecordController {
if (!($allowedTableList = $GLOBALS['PAGES_TYPES'][$doktype]['allowedTables'])) { if (!($allowedTableList = $GLOBALS['PAGES_TYPES'][$doktype]['allowedTables'])) {
$allowedTableList = $GLOBALS['PAGES_TYPES']['default']['allowedTables']; $allowedTableList = $GLOBALS['PAGES_TYPES']['default']['allowedTables'];
} }
// If all tables or the table is listed as a allowed type, return TRUE // If all tables or the table is listed as an allowed type, return TRUE
if (strstr($allowedTableList, '*') || GeneralUtility::inList($allowedTableList, $checkTable)) { if (strstr($allowedTableList, '*') || GeneralUtility::inList($allowedTableList, $checkTable)) {
return TRUE; return TRUE;
} }
......
...@@ -630,7 +630,7 @@ class InlineControlContainer extends AbstractContainer { ...@@ -630,7 +630,7 @@ class InlineControlContainer extends AbstractContainer {
// Add a "Create new relation" link for adding new relations // Add a "Create new relation" link for adding new relations
// This is necessary, if the size of the selector is "1" or if // This is necessary, if the size of the selector is "1" or if
// there is only one record item in the select-box, that is selected by default // there is only one record item in the select-box, that is selected by default
// The selector-box creates a new relation on using a onChange event (see some line above) // The selector-box creates a new relation on using an onChange event (see some line above)
if (!empty($conf['appearance']['createNewRelationLinkTitle'])) { if (!empty($conf['appearance']['createNewRelationLinkTitle'])) {
$createNewRelationText = $this->getLanguageService()->sL($conf['appearance']['createNewRelationLinkTitle'], TRUE); $createNewRelationText = $this->getLanguageService()->sL($conf['appearance']['createNewRelationLinkTitle'], TRUE);
} else { } else {
......
...@@ -126,7 +126,7 @@ class InlineRecordContainer extends AbstractContainer { ...@@ -126,7 +126,7 @@ class InlineRecordContainer extends AbstractContainer {
} else { } else {
$isExpanded = $config['renderFieldsOnly'] || !$collapseAll && $this->getExpandedCollapsedState($foreign_table, $record['uid']) || $expandAll; $isExpanded = $config['renderFieldsOnly'] || !$collapseAll && $this->getExpandedCollapsedState($foreign_table, $record['uid']) || $expandAll;
} }
// Render full content ONLY IF this is a AJAX-request, a new record, the record is not collapsed or AJAX-loading is explicitly turned off // Render full content ONLY IF this is an AJAX request, a new record, the record is not collapsed or AJAX loading is explicitly turned off
if ($isNewRecord || $isExpanded || !$ajaxLoad) { if ($isNewRecord || $isExpanded || !$ajaxLoad) {
$combinationChildArray = $this->renderCombinationTable($record, $appendFormFieldNames, $config); $combinationChildArray = $this->renderCombinationTable($record, $appendFormFieldNames, $config);
$combinationHtml = $combinationChildArray['html']; $combinationHtml = $combinationChildArray['html'];
...@@ -224,7 +224,7 @@ class InlineRecordContainer extends AbstractContainer { ...@@ -224,7 +224,7 @@ class InlineRecordContainer extends AbstractContainer {
} }
/** /**
* Render a table with FormEngine, that occurs on a intermediate table but should be editable directly, * Render a table with FormEngine, that occurs on an intermediate table but should be editable directly,
* so two tables are combined (the intermediate table with attributes and the sub-embedded table). * so two tables are combined (the intermediate table with attributes and the sub-embedded table).
* -> This is a direct embedding over two levels! * -> This is a direct embedding over two levels!
* *
......
...@@ -263,7 +263,7 @@ class SingleFieldContainer extends AbstractContainer { ...@@ -263,7 +263,7 @@ class SingleFieldContainer extends AbstractContainer {
$resultArray['additionalJavaScriptPost'][] = 'typo3form.fieldTogglePlaceholder(' $resultArray['additionalJavaScriptPost'][] = 'typo3form.fieldTogglePlaceholder('
. GeneralUtility::quoteJSvalue($parameterArray['itemFormElName']) . ', ' . ($checked ? 'false' : 'true') . ');'; . GeneralUtility::quoteJSvalue($parameterArray['itemFormElName']) . ', ' . ($checked ? 'false' : 'true') . ');';
// Renders a input or textarea field depending on type of "parent" // Renders an input or textarea field depending on type of "parent"
$options = array(); $options = array();
$options['databaseRow'] = array(); $options['databaseRow'] = array();
$options['table'] = ''; $options['table'] = '';
...@@ -421,7 +421,7 @@ class SingleFieldContainer extends AbstractContainer { ...@@ -421,7 +421,7 @@ class SingleFieldContainer extends AbstractContainer {
} }
/** /**
* Checks if the $table is the child of a inline type AND the $field is the label field of this table. * Checks if the $table is the child of an inline type AND the $field is the label field of this table.
* This function is used to dynamically update the label while editing. This has no effect on labels, * This function is used to dynamically update the label while editing. This has no effect on labels,
* that were processed by a FormEngine-hook on saving. * that were processed by a FormEngine-hook on saving.
* *
...@@ -605,4 +605,4 @@ class SingleFieldContainer extends AbstractContainer { ...@@ -605,4 +605,4 @@ class SingleFieldContainer extends AbstractContainer {
return $GLOBALS['LANG']; return $GLOBALS['LANG'];
} }
} }
\ No newline at end of file
...@@ -85,7 +85,7 @@ abstract class AbstractFormElement extends AbstractNode { ...@@ -85,7 +85,7 @@ abstract class AbstractFormElement extends AbstractNode {
} }
/** /**
* Returns the max width in pixels for a elements like input and text * Returns the max width in pixels for an elements like input and text
* *
* @param int $size The abstract size value (1-48) * @param int $size The abstract size value (1-48)
* @return int Maximum width in pixels * @return int Maximum width in pixels
......
...@@ -209,7 +209,7 @@ class InlineRelatedRecordResolver { ...@@ -209,7 +209,7 @@ class InlineRelatedRecordResolver {
$transOrigPointerField = $GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField']; $transOrigPointerField = $GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField'];
// Compare original to localized version of the records: // Compare original to localized version of the records:
foreach ($recordsLocalization as $uid => $row) { foreach ($recordsLocalization as $uid => $row) {
// If the record points to a original translation which doesn't exist anymore, it could be removed: // If the record points to an original translation which doesn't exist anymore, it could be removed:
if (isset($row[$transOrigPointerField]) && $row[$transOrigPointerField] > 0) { if (isset($row[$transOrigPointerField]) && $row[$transOrigPointerField] > 0) {
$transOrigPointer = $row[$transOrigPointerField]; $transOrigPointer = $row[$transOrigPointerField];
if (isset($recordsOriginal[$transOrigPointer])) { if (isset($recordsOriginal[$transOrigPointer])) {
......
...@@ -85,7 +85,7 @@ class ImageManipulationWizard { ...@@ -85,7 +85,7 @@ class ImageManipulationWizard {
*/ */
protected function getRatiosArray() { protected function getRatiosArray() {
$ratios = json_decode(GeneralUtility::_GET('ratios')); $ratios = json_decode(GeneralUtility::_GET('ratios'));
// Json transforms a array with sting keys to a array, // Json transforms an array with string keys to an array,
// we need to transform this to an array for the fluid ForViewHelper // we need to transform this to an array for the fluid ForViewHelper
if (is_object($ratios)) { if (is_object($ratios)) {
$ratios = get_object_vars($ratios); $ratios = get_object_vars($ratios);
......
...@@ -119,7 +119,7 @@ class AjaxRequestHandler implements RequestHandlerInterface { ...@@ -119,7 +119,7 @@ class AjaxRequestHandler implements RequestHandlerInterface {
/** /**
* This request handler can handle any backend request coming from ajax.php or having * This request handler can handle any backend request coming from ajax.php or having
* a ajaxID as parameter (see Application.php in EXT:backend) * an ajaxID as parameter (see Application.php in EXT:backend)
* *
* @param ServerRequestInterface $request * @param ServerRequestInterface $request
* @return bool If the request is an AJAX backend request, TRUE otherwise FALSE * @return bool If the request is an AJAX backend request, TRUE otherwise FALSE
......
...@@ -170,7 +170,7 @@ class BackendModuleRequestHandler implements RequestHandlerInterface { ...@@ -170,7 +170,7 @@ class BackendModuleRequestHandler implements RequestHandlerInterface {
} }
/** /**
* Calls traditional modules which are identified by having a index.php in their directory * Calls traditional modules which are identified by having an index.php in their directory
* and were previously located within the global scope. * and were previously located within the global scope.
* *
* @param string $moduleName * @param string $moduleName
......
...@@ -283,7 +283,7 @@ class BaseScriptClass { ...@@ -283,7 +283,7 @@ class BaseScriptClass {
/** /**
* Creates an instance of the class found in $this->extClassConf['name'] in $this->extObj if any (this should hold three keys, "name", "path" and "title" if a "Function menu module" tries to connect...) * Creates an instance of the class found in $this->extClassConf['name'] in $this->extObj if any (this should hold three keys, "name", "path" and "title" if a "Function menu module" tries to connect...)
* This value in extClassConf might be set by an extension (in a ext_tables/ext_localconf file) which thus "connects" to a module. * This value in extClassConf might be set by an extension (in an ext_tables/ext_localconf file) which thus "connects" to a module.
* The array $this->extClassConf is set in handleExternalFunctionValue() based on the value of MOD_SETTINGS[function] * The array $this->extClassConf is set in handleExternalFunctionValue() based on the value of MOD_SETTINGS[function]
* If an instance is created it is initiated with $this passed as value and $this->extClassConf as second argument. Further the $this->MOD_SETTING is cleaned up again after calling the init function. * If an instance is created it is initiated with $this passed as value and $this->extClassConf as second argument. Further the $this->MOD_SETTING is cleaned up again after calling the init function.
* *
......
...@@ -468,7 +468,7 @@ class ModuleLoader { ...@@ -468,7 +468,7 @@ class ModuleLoader {
} }
/** /**
* Parses the moduleArray ($TBE_MODULES) into a internally useful structure. * Parses the moduleArray ($TBE_MODULES) into an internally useful structure.
* Returns an array where the keys are names of the module and the values may be TRUE (only module) or an array (of submodules) * Returns an array where the keys are names of the module and the values may be TRUE (only module) or an array (of submodules)
* *
* @param array $arr ModuleArray ($TBE_MODULES) * @param array $arr ModuleArray ($TBE_MODULES)
......
...@@ -193,7 +193,7 @@ abstract class AbstractRecordList { ...@@ -193,7 +193,7 @@ abstract class AbstractRecordList {
* Returns a table-row with the content from the fields in the input data array. * Returns a table-row with the content from the fields in the input data array.
* OBS: $this->fieldArray MUST be set! (represents the list of fields to display) * OBS: $this->fieldArray MUST be set! (represents the list of fields to display)
* *
* @param int $h Is an integer >=0 and denotes how tall a element is. Set to '0' makes a halv line, -1 = full line, set to 1 makes a 'join' and above makes 'line' * @param int $h Is an integer >=0 and denotes how tall an element is. Set to '0' makes a halv line, -1 = full line, set to 1 makes a 'join' and above makes 'line'
* @param string $icon Is the <img>+<a> of the record. If not supplied the first 'join'-icon will be a 'line' instead * @param string $icon Is the <img>+<a> of the record. If not supplied the first 'join'-icon will be a 'line' instead
* @param array $data Is the dataarray, record with the fields. Notice: These fields are (currently) NOT htmlspecialchar'ed before being wrapped in <td>-tags * @param array $data Is the dataarray, record with the fields. Notice: These fields are (currently) NOT htmlspecialchar'ed before being wrapped in <td>-tags
* @param string $rowParams Is insert in the <tr>-tags. Must carry a ' ' as first character * @param string $rowParams Is insert in the <tr>-tags. Must carry a ' ' as first character
......
...@@ -801,7 +801,7 @@ function jumpToUrl(URL) { ...@@ -801,7 +801,7 @@ function jumpToUrl(URL) {
// Include the JS for the Context Sensitive Help // Include the JS for the Context Sensitive Help
// @todo: right now this is a hard dependency on csh manual, as the whole help system should be moved to // @todo: right now this is a hard dependency on csh manual, as the whole help system should be moved to
// the extension. The core provides a API for adding help, and rendering help, but the rendering // the extension. The core provides an API for adding help, and rendering help, but the rendering
// should be up to the extension itself // should be up to the extension itself
if ($includeCsh && ExtensionManagementUtility::isLoaded('cshmanual')) { if ($includeCsh && ExtensionManagementUtility::isLoaded('cshmanual')) {
$this->loadCshJavascript(); $this->loadCshJavascript();
......
...@@ -482,7 +482,7 @@ abstract class AbstractTreeView { ...@@ -482,7 +482,7 @@ abstract class AbstractTreeView {
* *
* @param string $icon HTML string to wrap, probably an image tag. * @param string $icon HTML string to wrap, probably an image tag.
* @param string $cmd Command for 'PM' get var * @param string $cmd Command for 'PM' get var
* @param bool $bMark If set, the link will have a anchor point (=$bMark) and a name attribute (=$bMark) * @param bool $bMark If set, the link will have an anchor point (=$bMark) and a name attribute (=$bMark)
* @param bool $isOpen * @param bool $isOpen
* @return string Link-wrapped input string * @return string Link-wrapped input string
* @access private * @access private
......
...@@ -72,7 +72,7 @@ class ElementBrowserFolderTreeView extends FolderTreeView { ...@@ -72,7 +72,7 @@ class ElementBrowserFolderTreeView extends FolderTreeView {
* *
* @param string $icon HTML string to wrap, probably an image tag. * @param string $icon HTML string to wrap, probably an image tag.
* @param string $cmd Command for 'PM' get var * @param string $cmd Command for 'PM' get var
* @param bool $bMark If set, the link will have a anchor point (=$bMark) and a name attribute (=$bMark) * @param bool $bMark If set, the link will have an anchor point (=$bMark) and a name attribute (=$bMark)
* @param bool $isOpen check if the item has children * @param bool $isOpen check if the item has children
* @return string Link-wrapped input string * @return string Link-wrapped input string
* @access private * @access private
......
...@@ -131,7 +131,7 @@ class ElementBrowserPageTreeView extends BrowseTreeView { ...@@ -131,7 +131,7 @@ class ElementBrowserPageTreeView extends BrowseTreeView {
* *
* @param string $icon HTML string to wrap, probably an image tag. * @param string $icon HTML string to wrap, probably an image tag.
* @param string $cmd Command for 'PM' get var * @param string $cmd Command for 'PM' get var
* @param bool $bMark If set, the link will have a anchor point (=$bMark) and a name attribute (=$bMark) * @param bool $bMark If set, the link will have an anchor point (=$bMark) and a name attribute (=$bMark)
* @param bool $isOpen * @param bool $isOpen
* @return string Link-wrapped input string * @return string Link-wrapped input string
*/ */
......
...@@ -498,7 +498,7 @@ class FolderTreeView extends AbstractTreeView { ...@@ -498,7 +498,7 @@ class FolderTreeView extends AbstractTreeView {
} }
$out .= $itemHTML; $out .= $itemHTML;
} }
// If this is a AJAX request, output directly // If this is an AJAX request, output directly
if ($ajaxOutput) { if ($ajaxOutput) {
$this->ajaxStatus = TRUE; $this->ajaxStatus = TRUE;
return $ajaxOutput; return $ajaxOutput;
......
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