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

Filter out the "Translation" subsection #13

Merged
merged 2 commits into from
Nov 30, 2017

Conversation

viroulep
Copy link
Contributor

@viroulep
Copy link
Contributor Author

viroulep commented Nov 27, 2017

I've mainly created this for visibility, but feel free to provide review on the implementation.
We just want to hide the "Translation" disclaimer when building the English version.

@@ -21,3 +21,6 @@ def emit(self, ast_reg, ast_guide):
if (ast_guide):
self.visit(ast_guide)
return (codegen_reg, self.codegen)

def shouldEmitSubsection(self, language, title):
return not (language == "english" and title == "Translation")
Copy link
Member

Choose a reason for hiding this comment

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

Is it also easy to check that this section appears (exactly) once?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hum it's not straightforward as the check passes in sema/check.py don't have knowledge about the language being parsed.

I could come up with something easy, and dirty to check this, but since this specific part (the "Translation" subsection in English) will be handled by the WRC I'm not sure it's worth it.

Copy link
Member

Choose a reason for hiding this comment

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

Okay, that sounds fine. I've filed #14 to keep track.

@viroulep viroulep merged commit 93d4633 into thewca:master Nov 30, 2017
@viroulep viroulep deleted the ignore-translation branch November 30, 2017 21:49
@viroulep
Copy link
Contributor Author

merged and deployed to pypi

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.

2 participants