Skip to content

Commit

Permalink
Typos... Typos everywhere!
Browse files Browse the repository at this point in the history
Run for cover and shoot them down!

Signed-off-by: Gwenwyfar <[email protected]>
  • Loading branch information
Gwenwyfar committed Nov 19, 2018
1 parent 7aceff4 commit 55050fd
Show file tree
Hide file tree
Showing 28 changed files with 44 additions and 44 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ by signing off your contributions, you acknowledge that you can and do license y
* If you want to send a bug fix for the version 2.1, send it to the branch ***release-2.1***
* If you want to send a new feature, use the branch ***development***
* You should never send any pull request against the master branch
For more informations, the ideal branching we would like to follow is the one described in [this article](http://nvie.com/posts/a-successful-git-branching-model/)
For more information, the ideal branching we would like to follow is the one described in [this article](http://nvie.com/posts/a-successful-git-branching-model/)

Please, feel free to play around. That's what we're doing. ;)

Expand Down
8 changes: 4 additions & 4 deletions Sources/Subs.php
Original file line number Diff line number Diff line change
Expand Up @@ -3701,7 +3701,7 @@ function template_footer()
/**
* Output the Javascript files
* - tabbing in this function is to make the HTML source look good and proper
* - if defered is set function will output all JS set to load at page end
* - if deferred is set function will output all JS set to load at page end
*
* @param bool $do_deferred If true will only output the deferred JS (the stuff that goes right before the closing body tag)
*/
Expand Down Expand Up @@ -3922,7 +3922,7 @@ function custMinify($data, $type)
return $file['filePath'] . (int) @filesize($file['filePath']) . (int) @filemtime($file['filePath']);
}, $data)));

// Is this a deferred or asynchonous JavaScript file?
// Is this a deferred or asynchronous JavaScript file?
$async = $type === 'js';
$defer = $type === 'js';
if ($type === 'js')
Expand Down Expand Up @@ -6056,7 +6056,7 @@ function smf_serverResponse($data = '', $type = 'content-type: application/json'
* If $update is not true, but the regex is missing or invalid, the regex will be regenerated from a
* hard-coded list of TLDs. This regenerated regex will be overwritten on the next scheduled update.
*
* @param bool $update If true, fetch and process the latest offical list of TLDs from iana.org.
* @param bool $update If true, fetch and process the latest official list of TLDs from iana.org.
*/
function set_tld_regex($update = false)
{
Expand Down Expand Up @@ -6169,7 +6169,7 @@ function set_tld_regex($update = false)
* Because PHP places an upper limit on the allowed length of a regex, very large arrays of $strings
* may not fit in a single regex. Normally, the excess strings will simply be dropped. However, if
* the $returnArray parameter is set to true, this function will build as many regexes as necessary
* to accomodate everything in $strings and return them in an array. You will need to iterate
* to accommodate everything in $strings and return them in an array. You will need to iterate
* through all elements of the returned array in order to test all possible matches.
*
* @param array $strings An array of strings to make a regex for.
Expand Down
2 changes: 1 addition & 1 deletion Sources/tasks/CreatePost-Notify.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public function execute()
if (!empty($prefs[$member]['msg_receive_body']))
$message_type .= '_body';
}
// If neither of the above, this might be a redundent row due to the OR clause in our SQL query, skip
// If neither of the above, this might be a redundant row due to the OR clause in our SQL query, skip
else
continue;

Expand Down
2 changes: 1 addition & 1 deletion Sources/tasks/GroupAct-Notify.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/**
* This taks handles notifying someone that a user has
* requeted to join a group they moderate.
* requested to join a group they moderate.
*
* Simple Machines Forum (SMF)
*
Expand Down
2 changes: 1 addition & 1 deletion Sources/tasks/GroupReq-Notify.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/**
* This taks handles notifying someone that a user has
* requeted to join a group they moderate.
* requested to join a group they moderate.
*
* Simple Machines Forum (SMF)
*
Expand Down
2 changes: 1 addition & 1 deletion Themes/default/Admin.template.php
Original file line number Diff line number Diff line change
Expand Up @@ -1530,7 +1530,7 @@ function template_php_info()
{
if ($localmaster)
{
// heading row for the settings section of this categorys settings
// heading row for the settings section of this category's settings
echo '
<tr class="title_bar">
<td class="equal_table"><strong>', $txt['phpinfo_itemsettings'], '</strong></td>
Expand Down
2 changes: 1 addition & 1 deletion Themes/default/Display.template.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

/**
* This tempate handles displaying a topic
* This template handles displaying a topic
*/
function template_main()
{
Expand Down
2 changes: 1 addition & 1 deletion Themes/default/GenericMenu.template.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ function template_generic_menu_tabs(&$menu_context)
if (isset($tab['url']) && !isset($tab_context['tabs'][$id]['url']))
$tab_context['tabs'][$id]['url'] = $tab['url'];

// Any additional paramaters for the url?
// Any additional parameters for the url?
if (isset($tab['add_params']) && !isset($tab_context['tabs'][$id]['add_params']))
$tab_context['tabs'][$id]['add_params'] = $tab['add_params'];

Expand Down
2 changes: 1 addition & 1 deletion Themes/default/ManageBoards.template.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function template_main()
}

/**
* Tempalte for editing/adding a category on the forum.
* Template for editing/adding a category on the forum.
*/
function template_modify_category()
{
Expand Down
2 changes: 1 addition & 1 deletion Themes/default/ManageMaintenance.template.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

/**
* Tempalte for the database maintenance tasks.
* Template for the database maintenance tasks.
*/
function template_maintain_database()
{
Expand Down
2 changes: 1 addition & 1 deletion Themes/default/ManageMembergroups.template.php
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ function template_add_edit_group_boards_list($collapse = true)
}

/**
* Templatine for viewing the members of a group.
* Template for viewing the members of a group.
*/
function template_group_members()
{
Expand Down
2 changes: 1 addition & 1 deletion Themes/default/Packages.template.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ function template_view_package()
$operation_num = 1;
foreach ($action['operations'] as $operation)
{
// Determine the possition text.
// Determine the position text.
$operation_text = $operation['position'] == 'replace' ? 'operation_replace' : ($operation['position'] == 'before' ? 'operation_after' : 'operation_before');

echo '
Expand Down
2 changes: 1 addition & 1 deletion Themes/default/Printpage.template.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function template_print_above()
}

/**
* The main page. This shows the relevent info in a printer-friendly format
* The main page. This shows the relevant info in a printer-friendly format
*/
function template_main()
{
Expand Down
4 changes: 2 additions & 2 deletions Themes/default/languages/EmailTemplates.english.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// Since all of these strings are being used in emails, numeric entities should be used.

// Do not translate anything that is between {}, they are used as replacement variables and MUST remain exactly how they are.
// Additionally do not translate the @additioinal_parmas: line or the variable names in the lines that follow it. You may
// Additionally, do not translate the @additional_params: line or the variable names in the lines that follow it. You may
// translate the description of the variable. Do not translate @description:, however you may translate the rest of that line.

// Do not use block comments in this file, they will have special meaning.
Expand Down Expand Up @@ -342,7 +342,7 @@

/**
@additional_params: request_membership
RECPNAME: The name of the person recieving the email
RECPNAME: The name of the person receiving the email
APPYNAME: The name of the person applying for group membership
GROUPNAME: The name of the group being applied to.
REASON: The reason given by the applicant for wanting to join the group.
Expand Down
4 changes: 2 additions & 2 deletions Themes/default/languages/Errors.english.php
Original file line number Diff line number Diff line change
Expand Up @@ -425,9 +425,9 @@
$txt['hook_fail_loading_file'] = 'Hook call: The file at path: %s could not be loaded.';
$txt['hook_fail_call_to'] = 'Hook call: function "%1$s" in file %2$s could not be called.';

$txt['file_not_created'] = 'The file at "%1$s" could not be created. Please make sure the parent directory has the appropiate permissions.';
$txt['file_not_created'] = 'The file at "%1$s" could not be created. Please make sure the parent directory has the appropriate permissions.';
$txt['file_minimize_fail'] = 'The file "%1$s" could not be located on the current or the default theme and therefore it wasn\'t included in the minified file.';
$txt['unlink_minimized_fail'] = 'The following files could not be deleted. Please check the file permissions of the files themselves and the parent dirctory.<br>%1$s';
$txt['unlink_minimized_fail'] = 'The following files could not be deleted. Please check the file permissions of the files themselves and the parent directory.<br>%1$s';

// SubActions failed attempt.
$txt['subAction_fail'] = 'The callable %s could not be called.';
Expand Down
2 changes: 1 addition & 1 deletion Themes/default/languages/Help.english.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@
$helptxt['cache_memcached'] = 'If you are using memcached you need to provide the server details. This should be entered as a comma separated list as shown in the example below:<br><br> &quot;server1,server2,server3:port,server4&quot;<br><br>Note that if no port is specified SMF will use port 11211 unless the host contains a slash, then it is assumed to be an alternative transport and the port will be set to 0. SMF will attempt to perform rough/random load balancing across the specified servers.';
$helptxt['cache_cachedir'] = 'This setting is only for the smf file-based cache system. It specifies the path to the cache directory. It is recommended that you place this in /tmp/ if you are going to use this, although it will work in any directory';
$helptxt['cache_sqlite_cachedir'] = 'This setting is only for the SQLite database cache system. It specifies the path to the cache directory. It is recommended that you place this in /tmp/ if you are going to use this, although it will work in any directory';
$helptxt['xcache_adminuser'] = 'This setting is only for the xcache based cache system. It specifies a username and password required to issue a clear command. If this is not set, clearing the cache will fail and the caching system will still force it to invaliate all cached data.<br>The username and password are in cleartext. The password is a unsalted MD5. It is recommended the username and password are set to random values.<br><br>The Cache API will attempt to set these values, however it is <a href="https://xcache.lighttpd.net/wiki/InstallAdministration">recommended these be set in your php.ini</a>';
$helptxt['xcache_adminuser'] = 'This setting is only for the xcache based cache system. It specifies a username and password required to issue a clear command. If this is not set, clearing the cache will fail and the caching system will still force it to invalidate all cached data.<br>The username and password are in cleartext. The password is a unsalted MD5. It is recommended the username and password are set to random values.<br><br>The Cache API will attempt to set these values, however it is <a href="https://xcache.lighttpd.net/wiki/InstallAdministration">recommended these be set in your php.ini</a>';
$helptxt['enableErrorLogging'] = 'This will log any errors, like a failed login, so you can see what went wrong.';
$helptxt['enableErrorQueryLogging'] = 'This will include the full query sent to the database in the error log. It requires error logging to be turned on.<br><br><strong>Note: This will affect the ability to filter the error log by the error message.</strong>';
$helptxt['log_ban_hits'] = 'If enabled, every time a banned user tries to access the site, this will be logged in the error log. If you do not care whether, or how often, banned users attempt to access the site, you can turn this off for a performance boost.';
Expand Down
2 changes: 1 addition & 1 deletion Themes/default/languages/Install.english.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@
$txt['upgrade_backup_table'] = 'Backup tables in your database with the prefix';
$txt['upgrade_recommended'] = 'recommended!';
$txt['upgrade_maintenace'] = 'Put the forum into maintenance mode during upgrade.';
$txt['upgrade_maintenance_title'] = 'Maintenace Title:';
$txt['upgrade_maintenance_title'] = 'Maintenance Title:';
$txt['upgrade_maintenace_message'] = 'Maintenance Message:';
$txt['upgrade_customize'] = 'Customize';
$txt['upgrade_debug_info'] = 'Output extra debugging information';
Expand Down
2 changes: 1 addition & 1 deletion Themes/default/languages/ManageMaintenance.english.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
$txt['errortype_paidsubs'] = 'Paid Subs';
$txt['errortype_paidsubs_desc'] = 'Errors resulting from paid subscriptions, which can include notification of payment failures.';
$txt['errortype_backup'] = 'Backups';
$txt['errortype_backup_desc'] = 'Errors resulting from backing up files, which are usually messages explaining why the proceedure failed.';
$txt['errortype_backup_desc'] = 'Errors resulting from backing up files, which are usually messages explaining why the procedure failed.';
$txt['errortype_login'] = 'Logins';
$txt['errortype_login_desc'] = 'Errors caused by failed login attempts or brute force attempts.';

Expand Down
2 changes: 1 addition & 1 deletion Themes/default/languages/Timezones.english.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* and (2) to place London first in the list of locations used as the
* description string shown to the user in the select menu.
*
* The third secion uses this format:
* The third section uses this format:
*
* $txt['America/Adak'] = 'Aleutian Islands';
*
Expand Down
2 changes: 1 addition & 1 deletion cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
if ((empty($cachedir) || !file_exists($cachedir)) && file_exists($boarddir . '/cache'))
$cachedir = $boarddir . '/cache';

// Don't do john didley if the forum's been shut down competely.
// Don't do john didley if the forum's been shut down completely.
if ($maintenance == 2)
die($mmessage);

Expand Down
2 changes: 1 addition & 1 deletion other/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
$image_proxy_secret = 'smfisawesome';

/**
* Maximum file size (in KB) for indiviudal files
* Maximum file size (in KB) for individual files
*
* @var int
*/
Expand Down
4 changes: 2 additions & 2 deletions other/readme.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ <h2 id="recommendations">Recommendations for best performance</h2>
<li>the <a href="https://php.net/manual/en/ini.core.php#ini.memory-limit" target="_blank" rel="noopener">memory_limit</a> directive is set to at least 8M.</li>
<li>the <a href="https://php.net/manual/en/info.configuration.php#ini.max-execution-time" target="_blank" rel="noopener">max_execution_time</a> directive is set to at least 15.</li>
<li>the <a href="https://php.net/manual/en/ini.core.php#ini.register-globals" target="_blank" rel="noopener">register_globals</a> directive is set to Off.</li>
<li>the <a href="https://php.net/manual/en/features.safe-mode.php" target="_blank" rel="noopener">safe mode</a> disabled or <a href="https://httpd.apache.org/docs/2.0/suexec.html" target="_blank" rel="noopener">suEXEC</a> ensabled.</li>
<li>the <a href="https://php.net/manual/en/features.safe-mode.php" target="_blank" rel="noopener">safe mode</a> disabled or <a href="https://httpd.apache.org/docs/2.0/suexec.html" target="_blank" rel="noopener">suEXEC</a> enabled.</li>
</ul>
</li>
<li>Any of the following database systems
Expand Down Expand Up @@ -297,7 +297,7 @@ <h2 id="requirements">Minimum installation requirements</h2>
<li>the <a href="https://php.net/manual/en/ini.core.php#ini.memory-limit" target="_blank" rel="noopener">memory_limit</a> directive is set to at least 8M.</li>
<li>the <a href="https://php.net/manual/en/info.configuration.php#ini.max-execution-time" target="_blank" rel="noopener">max_execution_time</a> directive is set to at least 15.</li>
<li>the <a href="https://php.net/manual/en/ini.core.php#ini.register-globals" target="_blank" rel="noopener">register_globals</a> directive is set to Off.</li>
<li>the <a href="https://php.net/manual/en/features.safe-mode.php" target="_blank" rel="noopener">safe mode</a> disabled or <a href="https://httpd.apache.org/docs/2.0/suexec.html" target="_blank" rel="noopener">suEXEC</a> ensabled.</li>
<li>the <a href="https://php.net/manual/en/features.safe-mode.php" target="_blank" rel="noopener">safe mode</a> disabled or <a href="https://httpd.apache.org/docs/2.0/suexec.html" target="_blank" rel="noopener">suEXEC</a> enabled.</li>
</ul>
</li>
<li>Any of the following database systems
Expand Down
10 changes: 5 additions & 5 deletions other/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4699,7 +4699,7 @@ function doTheDelete(theCheck)
</script>
<img src="', $settings['default_theme_url'], '/images/blank.png" alt="" id="delete_upgrader"><br>';

// Show Upgrade time in debug mode when we completed the upgrade process totatly
// Show Upgrade time in debug mode when we completed the upgrade process totally
if ($is_debug)
{
$active = time() - $upcontext['started'];
Expand Down Expand Up @@ -4908,7 +4908,7 @@ function upgradeGetColumnInfo($targetTable, $column)
*
* @param array $config_vars An array of one or more variables to update
*
* @return void We either succesfully update the Settings file, or throw a error here.
* @return void We either successfully update the Settings file, or throw a error here.
*/
function migrateSettingsFile($changes)
{
Expand Down Expand Up @@ -5115,7 +5115,7 @@ function migrateSettingsFile($changes)
'$image_proxy_secret = \'smfisawesome\';',
'',
'/**',
' * Maximum file size (in KB) for indiviudal files',
' * Maximum file size (in KB) for individual files',
' * @var int',
' */',
'$image_proxy_maxsize = 5192;',
Expand Down Expand Up @@ -5325,7 +5325,7 @@ function migrateSettingsFile($changes)
*
* @param array $config_vars An array of one or more variables to update
*
* @return void We either succesfully update the Settings file, or throw a error here.
* @return void We either successfully update the Settings file, or throw a error here.
*/

function detectSettingsFileMigrationNeeded()
Expand All @@ -5347,7 +5347,7 @@ function detectSettingsFileMigrationNeeded()
if (preg_match('~\$GLOBALS\[~im', $file_contents))
return false;

// If these are not set, it makes us a canidate to migrate.
// If these are not set, it makes us a candidate to migrate.
if (!isset($packagesdir, $tasksdir, $db_server, $db_type, $image_proxy_enabled))
return true;

Expand Down
10 changes: 5 additions & 5 deletions other/upgrade_1-1.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1009,8 +1009,8 @@ if (!$has_attachmentType_column)
$ID_MSG = array();
while ($row = smf_mysql_fetch_assoc($request))
{
$clean_name = strtr($row['filename'], 'ŠŽšžŸÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÑÒÓÔÕÖØÙÚÛÜÝàáâãäåçèéêëìíîïñòóôõöøùúûüýÿ', 'SZszYAAAAAACEEEEIIIINOOOOOOUUUUYaaaaaaceeeeiiiinoooooouuuuyy');
$clean_name = strtr($clean_name, array('Þ' => 'TH', 'þ' => 'th', 'Ð' => 'DH', 'ð' => 'dh', 'ß' => 'ss', 'Œ' => 'OE', 'œ' => 'oe', 'Æ' => 'AE', 'æ' => 'ae', 'µ' => 'u'));
$clean_name = strtr($row['filename'], '������������������������������������������������������������', 'SZszYAAAAAACEEEEIIIINOOOOOOUUUUYaaaaaaceeeeiiiinoooooouuuuyy');
$clean_name = strtr($clean_name, array('' => 'TH', '' => 'th', '' => 'DH', '' => 'dh', '' => 'ss', '' => 'OE', '' => 'oe', '' => 'AE', '' => 'ae', '' => 'u'));
$clean_name = preg_replace(array('/\s/', '/[^\w_\.\-]/'), array('_', ''), $clean_name);
$enc_name = $row['ID_ATTACH'] . '_' . strtr($clean_name, '.', '_') . md5($clean_name);
$clean_name = preg_replace('~\.[\.]+~', '.', $clean_name);
Expand Down Expand Up @@ -1107,8 +1107,8 @@ while ($row = smf_mysql_fetch_assoc($request))
$filename = $modSettings['custom_avatar_dir'] . '/' . $row['filename'];
else
{
$clean_name = strtr($row['filename'], 'ŠŽšžŸÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÑÒÓÔÕÖØÙÚÛÜÝàáâãäåçèéêëìíîïñòóôõöøùúûüýÿ', 'SZszYAAAAAACEEEEIIIINOOOOOOUUUUYaaaaaaceeeeiiiinoooooouuuuyy');
$clean_name = strtr($clean_name, array('Þ' => 'TH', 'þ' => 'th', 'Ð' => 'DH', 'ð' => 'dh', 'ß' => 'ss', 'Œ' => 'OE', 'œ' => 'oe', 'Æ' => 'AE', 'æ' => 'ae', 'µ' => 'u'));
$clean_name = strtr($row['filename'], '������������������������������������������������������������', 'SZszYAAAAAACEEEEIIIINOOOOOOUUUUYaaaaaaceeeeiiiinoooooouuuuyy');
$clean_name = strtr($clean_name, array('' => 'TH', '' => 'th', '' => 'DH', '' => 'dh', '' => 'ss', '' => 'OE', '' => 'oe', '' => 'AE', '' => 'ae', '' => 'u'));
$clean_name = preg_replace(array('/\s/', '/[^\w_\.\-]/'), array('_', ''), $clean_name);
$enc_name = $row['ID_ATTACH'] . '_' . strtr($clean_name, '.', '_') . md5($clean_name);
$clean_name = preg_replace('~\.[\.]+~', '.', $clean_name);
Expand Down Expand Up @@ -2442,7 +2442,7 @@ CHANGE COLUMN buddy_list buddy_list text NOT NULL;
---#

/******************************************************************************/
--- Change some column types to accomodate more messages.
--- Change some column types to accommodate more messages.
/******************************************************************************/

---# Expanding message column size.
Expand Down
Loading

0 comments on commit 55050fd

Please sign in to comment.