BigW Consortium Gitlab

Commit e0fb7766 by Winnie Hellmann Committed by Michael Kozono

Make texts translatable

parent c53c20ac
......@@ -97,19 +97,23 @@ module GroupsHelper
end
end
def parent_group_link
link_to @group.parent.name, group_path(@group.parent)
end
def default_help
"This setting will be applied to all subgroups unless overridden by a group owner."
s_("GroupSettings|This setting will be applied to all subgroups unless overridden by a group owner.")
end
def parent_locked_but_you_can_override
"This setting is applied on #{@group.parent.name}. You can override the setting or remove the share lock from the parent group."
s_("GroupSettings|This setting is applied on %{parent_group}. You can override the setting or remove the share lock from the parent group.") % { parent_group: parent_group_link }
end
def parent_locked_so_ask_the_owner
"This setting is applied on #{@group.parent.name}. To share this group with another group, ask the owner to override the setting or remove the share lock from the parent group."
s_("GroupSettings|This setting is applied on %{parent_group}. To share this group with another group, ask the owner to override the setting or remove the share lock from the parent group.") % { parent_group: parent_group_link }
end
def parent_locked_and_has_been_overridden
"This setting is applied on #{@group.parent.name} and has been overridden on this subgroup."
s_("GroupSettings|This setting is applied on %{parent_group} and has been overridden on this subgroup.") % { parent_group: parent_group_link }
end
end
......@@ -30,15 +30,14 @@
.form-group
%h5.control-label
Share lock
= s_("GroupSettings|Share lock")
.col-sm-10
.checkbox
= f.label :share_with_group_lock do
= f.check_box :share_with_group_lock, disabled: share_with_group_lock_disabled
%strong
Prevent sharing a project within
= @group.name
with other groups
- group_link = link_to @group.name, group_path(@group)
= s_("GroupSettings|Prevent sharing a project within %{group} with other groups").html_safe % { group: group_link }
%br
%span.descr= share_with_group_lock_help_text
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment