Skip to content

style: Translate/drop non English comments#518

Merged
karfau merged 3 commits into
xmldom:masterfrom
shunkica:translate
Jul 20, 2023
Merged

style: Translate/drop non English comments#518
karfau merged 3 commits into
xmldom:masterfrom
shunkica:translate

Conversation

@shunkica

Copy link
Copy Markdown
Collaborator

I always wondered what this said.

@karfau karfau changed the title Translate chinese comment to english chore: Translate todo comment Jul 20, 2023

@karfau karfau left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I already translated it multiple times, but never wanted to mix that change into the PR I was working on...
Did you try to understand if the code surrounding the comment makes sense? Or rather what the comment actually means?

I will check if that branch is covered by any test and if not try to find a sample that triggers it, to understand if it is actually something that we need TODO something about, or if it van just stand as an explanation of the branch.

@karfau

karfau commented Jul 20, 2023

Copy link
Copy Markdown
Member

Even though I don't really understand the code in that place, it is covered by tests.
I would prefer to drop the "TODO" part of the comment, unless we know what we need to do here.

While we are at it, can you also translate the other comments that are not in English?

@shunkica

Copy link
Copy Markdown
Collaborator Author

There is only one other non-English comment I could find and it says "忘记闭合" which translates to "forgot to close". Not very helpful :D

@karfau

karfau commented Jul 20, 2023

Copy link
Copy Markdown
Member

in that case lets drop that comment

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.

3 participants