mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
DEV: Correct typos and spelling mistakes (#12812)
Over the years we accrued many spelling mistakes in the code base. This PR attempts to fix spelling mistakes and typos in all areas of the code that are extremely safe to change - comments - test descriptions - other low risk areas
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
# AnswerHub Importer
|
||||
#
|
||||
# Based on having access to a mysql dump.
|
||||
# Pass in the ENV variables listed below before runing the script.
|
||||
# Pass in the ENV variables listed below before running the script.
|
||||
|
||||
require_relative 'base'
|
||||
require 'mysql2'
|
||||
|
@ -16,7 +16,7 @@ class ImportScripts::MyAskBot < ImportScripts::Base
|
||||
DB_PASS = 'yeah, right'
|
||||
|
||||
# A list of categories to create. Any post with one of these tags will be
|
||||
# assigned to that category. Ties are broken by list orer.
|
||||
# assigned to that category. Ties are broken by list order.
|
||||
CATEGORIES = [ 'Nonconvex', 'TFOCS', 'MIDCP', 'FAQ' ]
|
||||
|
||||
def initialize
|
||||
|
@ -158,7 +158,7 @@ class ImportScripts::DiscuzX < ImportScripts::Base
|
||||
|
||||
break if results.size < 1
|
||||
|
||||
# TODO: breaks the scipt reported by some users
|
||||
# TODO: breaks the script reported by some users
|
||||
# next if all_records_exist? :users, users.map {|u| u["id"].to_i}
|
||||
|
||||
create_users(results, total: total_count, offset: offset) do |user|
|
||||
|
@ -43,7 +43,7 @@ tags:
|
||||
# announcement: ["ann", "announce", "announcement"]
|
||||
# "": ["foo", "bar"]
|
||||
|
||||
# These prefixes will be removed from the beginning of topic titles. You can use regular expessions.
|
||||
# These prefixes will be removed from the beginning of topic titles. You can use regular expressions.
|
||||
# Prefixes are case-insensitive. You can add additional prefixes (e.g. localized prefixes from
|
||||
# https://en.wikipedia.org/wiki/List_of_email_subject_abbreviations#Abbreviations_in_other_languages).
|
||||
remove_subject_prefixes:
|
||||
|
@ -23,7 +23,7 @@ class TestQuandoraApi < Minitest::Test
|
||||
@quandora = QuandoraApi.new @domain, @username, @password
|
||||
end
|
||||
|
||||
def test_intialize
|
||||
def test_initialize
|
||||
assert_equal @domain, @quandora.domain
|
||||
assert_equal @username, @quandora.username
|
||||
assert_equal @password, @quandora.password
|
||||
|
@ -435,7 +435,7 @@ USERS = '{
|
||||
"custom_fields": [
|
||||
{
|
||||
"id": "resume",
|
||||
"value": "I currently assist the VP of Marketing in making sure that all marketing related activites are rolled out properly in the Americas market.",
|
||||
"value": "I currently assist the VP of Marketing in making sure that all marketing related activities are rolled out properly in the Americas market.",
|
||||
"label": "Job Description"
|
||||
},
|
||||
{
|
||||
@ -2531,12 +2531,12 @@ MESSAGES = '{
|
||||
{
|
||||
"id": 108,
|
||||
"url": "https://demo.socialcast.com/attachments/108",
|
||||
"filename": "108-reverse-a-algorithm-refernece-V7.pdf",
|
||||
"public_filename": "https://socialcast-demo.s3.amazonaws.com/tenants/5/attachments/108/108-reverse-a-algorithm-refernece-V7.pdf?AWSAccessKeyId=AKIAIV34WIEKJKCLRBBQ&Expires=1465128000&Signature=JP4%2BXB76kk%2BhCcuJQpZDSDx3NU4%3D",
|
||||
"filename": "108-reverse-a-algorithm-reference-V7.pdf",
|
||||
"public_filename": "https://socialcast-demo.s3.amazonaws.com/tenants/5/attachments/108/108-reverse-a-algorithm-reference-V7.pdf?AWSAccessKeyId=AKIAIV34WIEKJKCLRBBQ&Expires=1465128000&Signature=JP4%2BXB76kk%2BhCcuJQpZDSDx3NU4%3D",
|
||||
"external_host_type": null,
|
||||
"file_extension": "pdf",
|
||||
"content_type": "application/pdf",
|
||||
"html_filename": "108-reverse-a-algorithm-refernece-V7.pdf"
|
||||
"html_filename": "108-reverse-a-algorithm-reference-V7.pdf"
|
||||
}
|
||||
],
|
||||
"media_files": [],
|
||||
@ -8166,8 +8166,8 @@ MESSAGES_PG_2 = '{
|
||||
"back_in_office_on": null,
|
||||
"company_login": null
|
||||
},
|
||||
"text": "After speaking with a number of our younger employees I think tutition reimbursement is really key to retaining them. Many of them are looking to earn advanced degrees. If we can setup a plan that accomplishes this effectively we can really grow our staff\'s ability and knowledge.",
|
||||
"html_body": "<div class=\"markdown-body\"><p>After speaking with a number of our younger employees I think tutition reimbursement is really key to retaining them. Many of them are looking to earn advanced degrees. If we can setup a plan that accomplishes this effectively we can really grow our staff\'s ability and knowledge.</p></div>",
|
||||
"text": "After speaking with a number of our younger employees I think tuition reimbursement is really key to retaining them. Many of them are looking to earn advanced degrees. If we can setup a plan that accomplishes this effectively we can really grow our staff\'s ability and knowledge.",
|
||||
"html_body": "<div class=\"markdown-body\"><p>After speaking with a number of our younger employees I think tuition reimbursement is really key to retaining them. Many of them are looking to earn advanced degrees. If we can setup a plan that accomplishes this effectively we can really grow our staff\'s ability and knowledge.</p></div>",
|
||||
"created_at": "2016-05-21T20:48:41+00:00",
|
||||
"updated_at": "2016-05-21T20:48:41+00:00",
|
||||
"attachments": [],
|
||||
|
@ -23,7 +23,7 @@ class TestSocialcastApi < Minitest::Test
|
||||
@socialcast = SocialcastApi.new @domain, @username, @password
|
||||
end
|
||||
|
||||
def test_intialize
|
||||
def test_initialize
|
||||
assert_equal @domain, @socialcast.domain
|
||||
assert_equal @username, @socialcast.username
|
||||
assert_equal @password, @socialcast.password
|
||||
|
Reference in New Issue
Block a user