Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Missing word in conditional order comparator #11632

Merged
merged 1 commit into from Jan 2, 2024

Conversation

krysclarke
Copy link
Contributor

@krysclarke krysclarke commented Dec 27, 2023

Fix: Grammatical corrections.

Motivation / Problem

When I was creating some conditional orders with OTTD 13.4 as packaged in Debian Sid, I noted that in the EN_AU translation two of the options were grammatically incorrect:

  • is less or equal to
  • is greater or equal to

Description

This error was propagated from the EN_GB base text, so this PR corrects the EN_GB strings to:

  • is less than or equal to
  • is greater than or equal to

Limitations

None known.

@krysclarke
Copy link
Contributor Author

Which is the 'first line of message' that must match the syntax?
Error: *** First line of message must match: '<keyword>( #<issue>| <commit>(, (<keyword> #<issue>|<commit>))*)?: ([<section])? <Details>'

Yes, I've done a couple of PR's before but I also seemed to have to re-do them a couple of times before I get all the right bits in the right places.

@PeterN
Copy link
Member

PeterN commented Dec 27, 2023

Which is the 'first line of message' that must match the syntax? Error: *** First line of message must match: '<keyword>( #<issue>| <commit>(, (<keyword> #<issue>|<commit>))*)?: ([<section])? <Details>'

Yes, I've done a couple of PR's before but I also seemed to have to re-do them a couple of times before I get all the right bits in the right places.

It's the commit message itself.

@krysclarke
Copy link
Contributor Author

Which is the 'first line of message' that must match the syntax? Error: *** First line of message must match: '<keyword>( #<issue>| <commit>(, (<keyword> #<issue>|<commit>))*)?: ([<section])? <Details>'
Yes, I've done a couple of PR's before but I also seemed to have to re-do them a couple of times before I get all the right bits in the right places.

It's the commit message itself.

Which bit is that exactly??? Would it be the "Update english.txt" or "Grammatical corrections" bit of the commit ?
And how do I fix my commit to meet the syntax requirements? Do I have to undo the commit, re-do the edits and possibly close this PR and raise a new one?

Copy link
Member

@2TallTyler 2TallTyler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The full commit message, in my opinion, should be Fix: Missing word in conditional order comparator. That succinctly explains what you're fixing.

You can edit your commit message by amending your last commit (git commit --amend -m "Fix: Missing word in conditional order comparator") and then force-pushing to update the PR (git push -f).

Oh, and you can rename the PR title to match the commit message, although this isn't required for the checks to pass - just an easy way for us to see what's going on. A missing word isn't really a grammar problem. 😉

@krysclarke
Copy link
Contributor Author

The full commit message, in my opinion, should be Fix: Missing word in conditional order comparator. That succinctly explains what you're fixing.

You can edit your commit message by amending your last commit (git commit --amend -m "Fix: Missing word in conditional order comparator") and then force-pushing to update the PR (git push -f).

Oh, and you can rename the PR title to match the commit message, although this isn't required for the checks to pass - just an easy way for us to see what's going on. A missing word isn't really a grammar problem. 😉

I can't find a way, through Github, to issue those commands (and I don't think I'm missing something obvious). I figured as it was such a small change, that I'd make the changes in my fork through the Github webpage, but now it's proving to be more of a hassle.

@krysclarke krysclarke changed the title Fix: Grammar corrections Fix: Missing word in conditional order comparator Dec 28, 2023
@2TallTyler
Copy link
Member

Yeah, you'll need to install git and use the command line tool for these commands. There are instructions to clone a copy of OpenTTD to your computer in CONTRIBUTING. I strongly suggest you follow the instructions to make a new branch instead of trying to commit to your master and then PR from there.

@2TallTyler 2TallTyler enabled auto-merge (squash) January 2, 2024 18:11
@2TallTyler 2TallTyler merged commit 1cdafcd into OpenTTD:master Jan 2, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants