Commit e0fb7766 authored by Winnie Hellmann's avatar Winnie Hellmann Committed by Michael Kozono

Make texts translatable

parent c53c20ac
...@@ -97,19 +97,23 @@ module GroupsHelper ...@@ -97,19 +97,23 @@ module GroupsHelper
end end
end end
def parent_group_link
link_to @group.parent.name, group_path(@group.parent)
end
def default_help 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 end
def parent_locked_but_you_can_override 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 end
def parent_locked_so_ask_the_owner 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 end
def parent_locked_and_has_been_overridden 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
end end
...@@ -30,15 +30,14 @@ ...@@ -30,15 +30,14 @@
.form-group .form-group
%h5.control-label %h5.control-label
Share lock = s_("GroupSettings|Share lock")
.col-sm-10 .col-sm-10
.checkbox .checkbox
= f.label :share_with_group_lock do = f.label :share_with_group_lock do
= f.check_box :share_with_group_lock, disabled: share_with_group_lock_disabled = f.check_box :share_with_group_lock, disabled: share_with_group_lock_disabled
%strong %strong
Prevent sharing a project within - group_link = link_to @group.name, group_path(@group)
= @group.name = s_("GroupSettings|Prevent sharing a project within %{group} with other groups").html_safe % { group: group_link }
with other groups
%br %br
%span.descr= share_with_group_lock_help_text %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