Skip to content

Commit d29d6d1

Browse files
luzpazzeripath
andauthored
Fix various typos (#20338)
* Fix various typos Found via `codespell -q 3 -S ./options/locale,./options/license,./public/vendor -L actived,allways,attachements,ba,befores,commiter,pullrequest,pullrequests,readby,splitted,te,unknwon` Co-authored-by: zeripath <[email protected]>
1 parent 966e7bd commit d29d6d1

File tree

27 files changed

+34
-34
lines changed

27 files changed

+34
-34
lines changed

Dockerfile.rootless

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ ENV GITEA_CUSTOM /var/lib/gitea/custom
6262
ENV GITEA_TEMP /tmp/gitea
6363
ENV TMPDIR /tmp/gitea
6464

65-
#TODO add to docs the ability to define the ini to load (usefull to test and revert a config)
65+
#TODO add to docs the ability to define the ini to load (useful to test and revert a config)
6666
ENV GITEA_APP_INI /etc/gitea/app.ini
6767
ENV HOME "/var/lib/gitea/git"
6868
VOLUME ["/var/lib/gitea", "/etc/gitea"]

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ generate-manpage:
771771
@mkdir -p man/man1/ man/man5
772772
@./gitea docs --man > man/man1/gitea.1
773773
@gzip -9 man/man1/gitea.1 && echo man/man1/gitea.1.gz created
774-
@#TODO A smal script witch format config-cheat-sheet.en-us.md nicely to suit as config man page
774+
@#TODO A small script that formats config-cheat-sheet.en-us.md nicely for use as a config man page
775775

776776
.PHONY: pr\#%
777777
pr\#%: clean-all

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ NOTES:
102102

103103
Translations are done through Crowdin. If you want to translate to a new language ask one of the managers in the Crowdin project to add a new language there.
104104

105-
You can also just create an issue for adding a language or ask on discord on the #translation channel. If you need context or find some translation issues, you can leave a comment on the string or ask on Discord. For general translation questions there is a section in the docs. Currently a bit empty but we hope fo fill it as questions pop up.
105+
You can also just create an issue for adding a language or ask on discord on the #translation channel. If you need context or find some translation issues, you can leave a comment on the string or ask on Discord. For general translation questions there is a section in the docs. Currently a bit empty but we hope to fill it as questions pop up.
106106

107107
https://docs.gitea.io/en-us/translation-guidelines/
108108

cmd/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ var (
8282
},
8383
cli.BoolFlag{
8484
Name: "no-system",
85-
Usage: "Do not show system proceses",
85+
Usage: "Do not show system processes",
8686
},
8787
cli.BoolFlag{
8888
Name: "stacktraces",

docs/content/doc/advanced/config-cheat-sheet.zh-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ ALLOW_DATA_URI_IMAGES = true
346346
- `ALLOW_DATA_URI_IMAGES`: **false** 允许 data uri 图片 (`<img src="data:image/png;base64,..."/>`)。
347347

348348
多个净化规则可以被同时定义,只要section名称最后一位不重复即可。如: `[markup.sanitizer.TeX-2]`
349-
为了针对一种渲染类型进行一个特殊的净化策略,必须使用形如 `[markup.sanitizer.asciidoc.rule-1]` 的方式来命名 seciton
349+
为了针对一种渲染类型进行一个特殊的净化策略,必须使用形如 `[markup.sanitizer.asciidoc.rule-1]` 的方式来命名 section
350350
如果此规则没有匹配到任何渲染类型,它将会被应用到所有的渲染类型。
351351

352352
## Time (`time`)

docs/content/doc/packages/nuget.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Publish [NuGet](https://www.nuget.org/) packages for your user or organization.
2323
## Requirements
2424

2525
To work with the NuGet package registry, you can use command-line interface tools as well as NuGet features in various IDEs like Visual Studio.
26-
More informations about NuGet clients can be found in [the official documentation](https://docs.microsoft.com/en-us/nuget/install-nuget-client-tools).
26+
More information about NuGet clients can be found in [the official documentation](https://docs.microsoft.com/en-us/nuget/install-nuget-client-tools).
2727
The following examples use the `dotnet nuget` tool.
2828

2929
## Configuring the package registry

integrations/dump_restore_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ func (c *compareDump) assertEquals(repoBefore, repoAfter *repo_model.Repository)
201201
"Assignees": {ignore: true}, // not implemented yet
202202
"Head": {nested: comparePullRequestBranch},
203203
"Base": {nested: comparePullRequestBranch},
204-
"Labels": {ignore: true}, // because org labels are not handled propery
204+
"Labels": {ignore: true}, // because org labels are not handled properly
205205
}).([]*base.PullRequest)
206206
assert.True(c.t, ok)
207207
assert.GreaterOrEqual(c.t, len(prs), 1)

models/db/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func TxContext() (*Context, Committer, error) {
100100
}
101101

102102
// WithTx represents executing database operations on a transaction
103-
// you can optionally change the context to a parrent one
103+
// you can optionally change the context to a parent one
104104
func WithTx(f func(ctx context.Context) error, stdCtx ...context.Context) error {
105105
parentCtx := DefaultContext
106106
if len(stdCtx) != 0 && stdCtx[0] != nil {

models/issues/pull_list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func GetUnmergedPullRequestsByHeadInfo(repoID int64, branch string) ([]*PullRequ
6262
Find(&prs)
6363
}
6464

65-
// CanMaintainerWriteToBranch check whether user is a matainer and could write to the branch
65+
// CanMaintainerWriteToBranch check whether user is a maintainer and could write to the branch
6666
func CanMaintainerWriteToBranch(p access_model.Permission, branch string, user *user_model.User) bool {
6767
if p.CanWrite(unit.TypeCode) {
6868
return true

models/organization/team_repo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func GetTeamRepositories(ctx context.Context, opts *SearchTeamRepoOptions) ([]*r
5555
Find(&repos)
5656
}
5757

58-
// AddTeamRepo addes a repo for an organization's team
58+
// AddTeamRepo adds a repo for an organization's team
5959
func AddTeamRepo(ctx context.Context, orgID, teamID, repoID int64) error {
6060
_, err := db.GetEngine(ctx).Insert(&TeamRepo{
6161
OrgID: orgID,

0 commit comments

Comments
 (0)