generated from MinBZK/python-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
391aae1
commit 9b9edb2
Showing
27 changed files
with
364 additions
and
244 deletions.
There are no files selected for viewing
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
from collections.abc import Callable | ||
|
||
from fastapi import Request | ||
|
||
from ..schema.localized_value_item import LocalizedValueItem | ||
from .localizable import LocalizableEnum, get_localized_enum, get_localized_enums | ||
|
||
|
||
class RiskGroup(LocalizableEnum): | ||
HOOG_RISICO_AI = "hoog-risico AI" | ||
GEEN_HOOG_RISICO_AI = "geen hoog-risico AI" | ||
VERBODEN_AI = "verboden AI" | ||
UITZONDERING_VAN_TOEPASSING = "uitzondering van toepassing" | ||
NIET_VAN_TOEPASSING = "niet van toepassing" | ||
|
||
@classmethod | ||
def get_display_values(cls: type["RiskGroup"], _: Callable[[str], str]) -> dict["RiskGroup", str]: | ||
return { | ||
cls.HOOG_RISICO_AI: _("hoog-risico AI"), | ||
cls.GEEN_HOOG_RISICO_AI: _("geen hoog-risico AI"), | ||
cls.VERBODEN_AI: _("verboden AI"), | ||
cls.UITZONDERING_VAN_TOEPASSING: _("uitzondering van toepassing"), | ||
cls.NIET_VAN_TOEPASSING: _("niet van toepassing"), | ||
} | ||
|
||
|
||
def get_localized_risk_group(key: RiskGroup | None, request: Request) -> LocalizedValueItem | None: | ||
return get_localized_enum(key, request) | ||
|
||
|
||
def get_localized_risk_groups(request: Request) -> list[LocalizedValueItem | None]: | ||
return get_localized_enums(RiskGroup, request) |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,14 +8,14 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: PROJECT VERSION\n" | ||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" | ||
"POT-Creation-Date: 0001-01-01 00:00+0000\n" | ||
"PO-Revision-Date: 0001-01-01 00:00+0000\n" | ||
"POT-Creation-Date: 2024-12-06 12:39+0000\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=utf-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Generated-By: Babel 2.15.0\n" | ||
"Generated-By: Babel 2.16.0\n" | ||
|
||
#: amt/api/ai_act_profile.py:24 | ||
msgid "Type" | ||
|
@@ -26,18 +26,22 @@ msgid "Is the application open source?" | |
msgstr "" | ||
|
||
#: amt/api/ai_act_profile.py:28 | ||
msgid "Publication Category" | ||
msgid "In what risk group falls the application?" | ||
msgstr "" | ||
|
||
#: amt/api/ai_act_profile.py:30 | ||
msgid "Is there a systemic risk?" | ||
msgid "Does a conformity assessment need to be performed by an accredited body" | ||
msgstr "" | ||
|
||
#: amt/api/ai_act_profile.py:32 | ||
msgid "Is there a transparency obligation?" | ||
msgid "Is there a systemic risk?" | ||
msgstr "" | ||
|
||
#: amt/api/ai_act_profile.py:34 | ||
msgid "Is there a transparency obligation?" | ||
msgstr "" | ||
|
||
#: amt/api/ai_act_profile.py:36 | ||
msgid "Role" | ||
msgstr "" | ||
|
||
|
@@ -142,7 +146,7 @@ msgstr "" | |
msgid "Model" | ||
msgstr "" | ||
|
||
#: amt/api/navigation.py:61 amt/site/templates/algorithms/new.html.j2:151 | ||
#: amt/api/navigation.py:61 amt/site/templates/algorithms/new.html.j2:170 | ||
msgid "Instruments" | ||
msgstr "" | ||
|
||
|
@@ -165,28 +169,24 @@ msgstr "" | |
msgid "My organizations" | ||
msgstr "" | ||
|
||
#: amt/api/publication_category.py:22 | ||
msgid "Impactful algorithm" | ||
#: amt/api/risk_group.py:19 | ||
msgid "hoog-risico AI" | ||
msgstr "" | ||
|
||
#: amt/api/publication_category.py:23 | ||
msgid "Non-impactful algorithm" | ||
#: amt/api/risk_group.py:20 | ||
msgid "geen hoog-risico AI" | ||
msgstr "" | ||
|
||
#: amt/api/publication_category.py:24 | ||
msgid "High-risk AI" | ||
#: amt/api/risk_group.py:21 | ||
msgid "verboden AI" | ||
msgstr "" | ||
|
||
#: amt/api/publication_category.py:25 | ||
msgid "No high-risk AI" | ||
#: amt/api/risk_group.py:22 | ||
msgid "uitzondering van toepassing" | ||
msgstr "" | ||
|
||
#: amt/api/publication_category.py:26 | ||
msgid "Forbidden AI" | ||
msgstr "" | ||
|
||
#: amt/api/publication_category.py:27 | ||
msgid "Exception of application" | ||
#: amt/api/risk_group.py:23 | ||
msgid "niet van toepassing" | ||
msgstr "" | ||
|
||
#: amt/api/forms/algorithm.py:19 | ||
|
@@ -312,13 +312,13 @@ msgid "" | |
msgstr "" | ||
|
||
#: amt/site/templates/algorithms/details_base.html.j2:39 | ||
#: amt/site/templates/algorithms/new.html.j2:134 | ||
#: amt/site/templates/algorithms/new.html.j2:153 | ||
#: amt/site/templates/organizations/members.html.j2:33 | ||
msgid "Yes" | ||
msgstr "" | ||
|
||
#: amt/site/templates/algorithms/details_base.html.j2:44 | ||
#: amt/site/templates/algorithms/new.html.j2:144 | ||
#: amt/site/templates/algorithms/new.html.j2:163 | ||
#: amt/site/templates/organizations/members.html.j2:36 | ||
msgid "No" | ||
msgstr "" | ||
|
@@ -548,21 +548,25 @@ msgstr "" | |
msgid "Find your AI Act profile" | ||
msgstr "" | ||
|
||
#: amt/site/templates/algorithms/new.html.j2:153 | ||
#: amt/site/templates/algorithms/new.html.j2:112 | ||
msgid "Select Option" | ||
msgstr "" | ||
|
||
#: amt/site/templates/algorithms/new.html.j2:172 | ||
msgid "" | ||
"Overview of instruments for the responsible development, deployment, " | ||
"assessment and monitoring of algorithms and AI-systems." | ||
msgstr "" | ||
|
||
#: amt/site/templates/algorithms/new.html.j2:161 | ||
#: amt/site/templates/algorithms/new.html.j2:180 | ||
msgid "Choose one or more instruments" | ||
msgstr "" | ||
|
||
#: amt/site/templates/algorithms/new.html.j2:185 | ||
#: amt/site/templates/algorithms/new.html.j2:204 | ||
msgid "Create Algorithm" | ||
msgstr "" | ||
|
||
#: amt/site/templates/algorithms/new.html.j2:202 | ||
#: amt/site/templates/algorithms/new.html.j2:221 | ||
msgid "Copy results and close" | ||
msgstr "" | ||
|
||
|
@@ -852,14 +856,14 @@ msgid "Category" | |
msgstr "" | ||
|
||
#: amt/site/templates/parts/algorithm_search.html.j2:66 | ||
msgid "Select publication category" | ||
msgid "Select risk group" | ||
msgstr "" | ||
|
||
#: amt/site/templates/parts/algorithm_search.html.j2:84 | ||
#: amt/site/templates/parts/algorithm_search.html.j2:82 | ||
msgid "Group by" | ||
msgstr "" | ||
|
||
#: amt/site/templates/parts/algorithm_search.html.j2:94 | ||
#: amt/site/templates/parts/algorithm_search.html.j2:92 | ||
msgid "Select group by" | ||
msgstr "" | ||
|
||
|
Binary file not shown.
Oops, something went wrong.