Skip to content

Commit bac6d05

Browse files
bugreport0lafriks
authored andcommitted
Improve English grammar and consistency. (#3614)
* Start improving English grammar and consistency. * Apply review comments, push translation further. * Additional review changes; expand translation. * Undo team/organization change, further translation. * Add site administration; review comments; merge. * Update hardcoded branch protection string tests. * Update hardcoded branch deletion string test. * Update another hardcoded translation string test. * Add my nickname to the list of translators. * Implement @lafriks review comments. * Remove (now) unused branch deletion warnings. * Remove (now) unused branch deletion warnings.
1 parent 1d82e77 commit bac6d05

File tree

6 files changed

+622
-628
lines changed

6 files changed

+622
-628
lines changed

integrations/editor_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func TestCreateFileOnProtectedBranch(t *testing.T) {
5252
// Check if master branch has been locked successfully
5353
flashCookie := session.GetCookie("macaron_flash")
5454
assert.NotNil(t, flashCookie)
55-
assert.EqualValues(t, "success%3DBranch%2Bmaster%2Bprotect%2Boptions%2Bchanged%2Bsuccessfully.", flashCookie.Value)
55+
assert.EqualValues(t, "success%3DBranch%2Bprotection%2Bfor%2Bbranch%2B%2527master%2527%2Bhas%2Bbeen%2Bupdated.", flashCookie.Value)
5656

5757
// Request editor page
5858
req = NewRequest(t, "GET", "/user2/repo1/_new/master/")
@@ -73,7 +73,7 @@ func TestCreateFileOnProtectedBranch(t *testing.T) {
7373

7474
resp = session.MakeRequest(t, req, http.StatusOK)
7575
// Check body for error message
76-
assert.Contains(t, resp.Body.String(), "Can not commit to protected branch 'master'.")
76+
assert.Contains(t, resp.Body.String(), "Cannot commit to protected branch 'master'.")
7777

7878
// remove the protected branch
7979
csrf = GetCSRF(t, session, "/user2/repo1/settings/branches")
@@ -86,7 +86,7 @@ func TestCreateFileOnProtectedBranch(t *testing.T) {
8686
// Check if master branch has been locked successfully
8787
flashCookie = session.GetCookie("macaron_flash")
8888
assert.NotNil(t, flashCookie)
89-
assert.EqualValues(t, "success%3DBranch%2Bmaster%2Bprotect%2Boptions%2Bremoved%2Bsuccessfully", flashCookie.Value)
89+
assert.EqualValues(t, "success%3DBranch%2Bprotection%2Bfor%2Bbranch%2B%2527master%2527%2Bhas%2Bbeen%2Bdisabled.", flashCookie.Value)
9090

9191
}
9292

integrations/pull_merge_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,5 +121,5 @@ func TestPullCleanUpAfterMerge(t *testing.T) {
121121
htmlDoc := NewHTMLParser(t, resp.Body)
122122
resultMsg := htmlDoc.doc.Find(".ui.message>p").Text()
123123

124-
assert.EqualValues(t, "user1/feature/test has been deleted.", resultMsg)
124+
assert.EqualValues(t, "Branch 'user1/feature/test' has been deleted.", resultMsg)
125125
}

options/locale/TRANSLATORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Antoine GIRARD <sapk AT sapk DOT fr>
1414
Arthur Aslanyan <arthur DOT e DOT aslanyan AT gmail DOT com>
1515
Aurelien Darragon <aurelien DOT darragon AT gmail DOT com>
1616
Barış Arda Yılmaz <ardayilmazgamer AT gmail DOT com>
17+
bugreport0
1718
Camille Baronnet <gogs AT camillebaronnet DOT fr>
1819
Christoph Kisfeld <christoph DOT kisfeld AT gmail DOT com>
1920
Cysioland

0 commit comments

Comments
 (0)