-
Notifications
You must be signed in to change notification settings - Fork 7
Adding the programming language tag to TESTed #583
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
base: feat/add-natural-translation
Are you sure you want to change the base?
Changes from 14 commits
f9e118f
3836d62
537f0e8
b482816
6675fa8
6f19925
23dafd3
214c5ee
d98aa82
a57d932
202168b
e35f474
05f1e88
051ba09
c4c2fe4
8d5f700
ffc1d3a
c562b91
71dfcc4
e9ba1ef
47df8a6
8be8e83
0f2e397
d8b39eb
544d4df
4e9b9bd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -102,3 +102,24 @@ def build_preprocessor_messages( | |
| ) | ||
| for key in translations_missing_key | ||
| ] | ||
|
|
||
|
|
||
| def build_translate_parser_messages( | ||
|
||
| using_deprecated_prog_languages: bool, | ||
| ) -> list[ExtendedMessage]: | ||
| """ | ||
| Build the translate parser messages from the missing keys. | ||
BrentBlanckaert marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| :param translations_missing_key: The missing keys. | ||
| :return: The translate parser messages. | ||
| """ | ||
| messages = [] | ||
|
|
||
| if using_deprecated_prog_languages: | ||
| messages.append( | ||
| ExtendedMessage( | ||
| f"WARNING: You are using YAML syntax to specify statements or expressions in multiple programming languages without the `!programming_language` tag. This usage is deprecated!", | ||
| permission=Permission.STAFF, | ||
|
||
| ) | ||
| ) | ||
| return messages | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this change do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is actualy a change that already should be in the other branch. This default will cause the translator to run when the option
-tisn't even provided.