fix: remove context from translatable strings in Workspace (#27249)

This commit is contained in:
Raffael Meyer 2024-07-30 20:14:57 +02:00 committed by GitHub
parent b0bba0ad31
commit f75da85d83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,8 +29,8 @@ def extract(fileobj, *args, **kwargs):
yield from (
(
None,
"pgettext",
(link.get("link_to") if link.get("link_type") == "DocType" else None, link.get("label")),
"_",
link.get("label"),
[f"Label of a {link.get('type')} in the {workspace_name} Workspace"],
)
for link in data.get("links", [])
@ -38,8 +38,8 @@ def extract(fileobj, *args, **kwargs):
yield from (
(
None,
"pgettext",
(link.get("link_to") if link.get("link_type") == "DocType" else None, link.get("description")),
"_",
link.get("description"),
[f"Description of a {link.get('type')} in the {workspace_name} Workspace"],
)
for link in data.get("links", [])
@ -47,8 +47,8 @@ def extract(fileobj, *args, **kwargs):
yield from (
(
None,
"pgettext",
(shortcut.get("link_to") if shortcut.get("type") == "DocType" else None, shortcut.get("label")),
"_",
shortcut.get("label"),
[f"Label of a shortcut in the {workspace_name} Workspace"],
)
for shortcut in data.get("shortcuts", [])
@ -56,8 +56,8 @@ def extract(fileobj, *args, **kwargs):
yield from (
(
None,
"pgettext",
(shortcut.get("link_to") if shortcut.get("type") == "DocType" else None, shortcut.get("format")),
"_",
shortcut.get("format"),
[f"Count format of shortcut in the {workspace_name} Workspace"],
)
for shortcut in data.get("shortcuts", [])