Repository navigation
Make translator ignore names starting uppercase - #112
Merged
Merged
Conversation
This looks a bit desperate, but I can't think of anything else right now. See if you can anticipate any terrible consequences. Note: As the Python "special" names, like `None`, `True` and `False`, go in this new rule, I changed SNAKE_CASE_OVERRIDE to SPECIAL_CASES
Collaborator
|
Testing if the first character is upper case is the first idea I came up with to address this. I can't anticipate any terrible consequences from this change, and I can't think of a better way right now. The translators all use heuristics after all, and this is an improvement to the heuristics. Ideally the translators will take care of all of the rote changes and will leave you with only stuff that requires human thought. I am still doing the release today. Normally I would consider a PR on day of a release to be too risky, but I can see this is a small change that can't impact any other part of the library. If you are OK with it being included, I'll add it to the release. |
Collaborator
Author
Collaborator
|
OK, let's do it! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This looks a bit desperate, but I can't think of anything else to fix #111 right now.
See if you can anticipate any terrible consequences, and do ignore/close if you see fit.
Note: As the Python "special" names, like
None,TrueandFalse, go in this new rule, I changed SNAKE_CASE_OVERRIDE to SPECIAL_CASES