Skip to content

Commit

Permalink
i18n: mark translations for string values
Browse files Browse the repository at this point in the history
  • Loading branch information
Samk13 authored and Sam Arbid committed Oct 19, 2024
1 parent fca2de3 commit 4ace4c6
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions invenio_communities/views/communities.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@

VISIBILITY_FIELDS = [
{
"text": "Public",
"text": _("Public"),
"value": "public",
"icon": "group",
"helpText": _(
"Your community is publicly accessible" " and shows up in search results."
),
},
{
"text": "Restricted",
"text": _("Restricted"),
"value": "restricted",
"icon": "lock",
"helpText": _("Your community is restricted to users" " with access."),
Expand All @@ -46,7 +46,7 @@

MEMBERS_VISIBILITY_FIELDS = [
{
"text": "Public",
"text": _("Public"),
"value": "public",
"icon": "group",
"helpText": _(
Expand All @@ -55,7 +55,7 @@
),
},
{
"text": "Members-only",
"text": _("Members-only"),
"value": "restricted",
"icon": "lock",
"helpText": _(
Expand All @@ -67,7 +67,7 @@

RECORDS_SUBMISSION_POLICY_FIELDS = [
{
"text": "Open",
"text": _("Open"),
"value": "open",
"icon": "lock open",
"helpText": _(
Expand All @@ -76,31 +76,30 @@
),
},
{
"text": "Closed",
"text": _("Closed"),
"value": "closed",
"icon": "lock",
"helpText": _("Only members can submit records to the community."),
},
]


REVIEW_POLICY_FIELDS = [
{
"text": "Review all submissions",
"text": _("Review all submissions"),
"value": "closed",
"icon": "lock",
"helpText": _("All submissions to the community must be reviewed."),
},
{
"text": "Allow curators, managers and owners to publish without review",
"text": _("Allow curators, managers and owners to publish without review"),
"value": "open",
"icon": "group",
"helpText": _(
"Submissions to the community by default requires review, but curators, managers and owners can publish directly without review."
),
},
{
"text": "Allow all members to publish without review",
"text": _("Allow all members to publish without review"),
"value": "members",
"icon": "lock open",
"helpText": _(
Expand All @@ -109,16 +108,15 @@
},
]


MEMBER_POLICY_FIELDS = [
{
"text": "Open",
"text": _("Open"),
"value": "open",
"icon": "user plus",
"helpText": _("Users can request to join your community."),
},
{
"text": "Closed",
"text": _("Closed"),
"value": "closed",
"icon": "user times",
"helpText": _(
Expand Down Expand Up @@ -437,7 +435,7 @@ def communities_settings_submission_policy(pid_value, community, community_ui):
# Restrict review policies when publishing with community is required
available_review_policies = [
{
"text": "Review all submissions",
"text": _("Review all submissions"),
"value": "closed",
"icon": "lock",
"helpText": _("All submissions to the community must be reviewed."),
Expand Down

0 comments on commit 4ace4c6

Please sign in to comment.