i18n new_context_* messages

Change-Id: Ic3170ba769e84591d47452d3875c012ef3c7c3f6
Reviewed-on: https://gerrit.instructure.com/4520
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
This commit is contained in:
Cody Cutrer 2011-06-30 15:48:51 -06:00
parent 174c1968c1
commit 8a9afa91cb
10 changed files with 97 additions and 20 deletions

View File

@ -2,12 +2,26 @@
http://<%= HostUrl.context_host(asset.group.context) %>/<%= asset.group.context.class.to_s.downcase.pluralize %>/<%= asset.group.context_id %>/groups
<% end %>
<% define_content :subject do %>
New Group Membership for <%= asset.group.context.name %>
<%= t :subject, "New Group Membership for %{course_or_account}", :course_or_account => asset.group.context.name %>
<% end %>
New Group Membership: <%= asset.group.name %>
<%= t :title, "New Group Membership: %{group_name}", :group_name => asset.group.name %>
You've been added to a new group for the <%= asset.group.context.class.to_s.downcase %> <%= asset.group.context.name %>. The name of the group is <%= asset.group.name %>.
<%=
case asset.group.context_type
when 'Account'
t :body_account, "You've been added to a new group for the account %{account}. The name of the group is %{group_name}.", :account => asset.group.context.name, :group_name => asset.group.name
else
t :body_course, "You've been added to a new group for the course %{course}. The name of the group is %{group_name}.", :course => asset.group.context.name, :group_name => asset.group.name
end
%>
You can see which groups you're a part of for this <%= asset.group.context.class.to_s.downcase %> by clicking the link below:
<%=
case asset.group.context_type
when 'Account'
t :details_account, "You can see which groups you're a part of for this account by clicking the link below:"
else
t :details_account, "You can see which groups you're a part of for this account by clicking the link below:"
end
%>
<%= content :link %>

View File

@ -1,4 +1,11 @@
<% define_content :link do %>
http://<%= HostUrl.context_host(asset.group.context) %>/<%= asset.group.context.class.to_s.downcase.pluralize %>/<%= asset.group.context_id %>/groups
<% end %>
You've been added to a new group for the <%= asset.group.context.class.to_s.downcase %> <%= asset.group.context.name %>. The name of the group is <b><a href="<%= content :link %>"><%= asset.group.name %></a></b>.
<%=
case asset.group.context_type
when 'Account'
t :body_account, "You've been added to a new group for the account %{account}. The name of the group is %{group_name}.", :account => asset.group.context.name, :group_name => %{<b><a href="#{content :link}">#{h asset.group.name}</a></b>}.html_safe
else
t :body_course, "You've been added to a new group for the course %{course}. The name of the group is %{group_name}.", :course => asset.group.context.name, :group_name => %{<b><a href="#{content :link}">#{h asset.group.name}</a></b>}.html_safe
end
%>

View File

@ -1,3 +1,10 @@
You've been added to a new group for the <%= asset.group.context.class.to_s.downcase %> <%= asset.group.context.name %>. The name of the group is <%= asset.group.name %>.
<%=
case asset.group.context_type
when 'Account'
t :body_account, "You've been added to a new group for the account %{account}. The name of the group is %{group_name}.", :account => asset.group.context.name, :group_name => asset.group.name
else
t :body_course, "You've been added to a new group for the course %{course}. The name of the group is %{group_name}.", :course => asset.group.context.name, :group_name => asset.group.name
end
%>
More info at <%= HostUrl.context_host(asset.group.context) %>
<%= t :details, "More info at %{url}", :url => HostUrl.context_host(asset.group.context) %>

View File

@ -2,7 +2,14 @@
http://<%= HostUrl.context_host(asset.group.context) %>/<%= asset.group.context.class.to_s.downcase.pluralize %>/<%= asset.group.context_id %>/groups
<% end %>
<% define_content :subject do %>
New Group Membership for <%= asset.group.context.name %>
<%= t :subject, "New Group Membership for %{course_or_account}", :course_or_account => asset.group.context.name %>
<% end %>
You've been added to a new group for the <%= asset.group.context.class.to_s.downcase %> <%= asset.group.context.name %>. The name of the group is <%= asset.group.name %>.
<%=
case asset.group.context_type
when 'Account'
t :body_account, "You've been added to a new group for the account %{account}. The name of the group is %{group_name}.", :account => asset.group.context.name, :group_name => asset.group.name
else
t :body_course, "You've been added to a new group for the course %{course}. The name of the group is %{group_name}.", :course => asset.group.context.name, :group_name => asset.group.name
end
%>

View File

@ -1,4 +1,11 @@
<% define_content :link do %>
http://<%= HostUrl.context_host(asset.group.context) %>/<%= asset.group.context.class.to_s.downcase.pluralize %>/<%= asset.group.context_id %>/groups
<% end %>
Canvas Alert - New Group: <%= asset.group.name %> for the <%= asset.group.context.class.to_s.downcase %> <%= asset.group.context.name %>
<%=
case asset.group.context_type
when 'Account'
t :body_account, "Canvas Alert - New Group: %{group} for the account %{account}", :group => asset.group.name, :account => asset.group.context.name
else
t :body_course, "Canvas Alert - New Group: %{group} for the course %{course}", :group => asset.group.name, :course => asset.group.context.name
end
%>

View File

@ -2,12 +2,19 @@
http://<%= HostUrl.context_host(asset.group.context) %>/<%= asset.group.context.class.to_s.downcase.pluralize %>/<%= asset.group.context_id %>/groups/<%= asset.group_id %>
<% end %>
<% define_content :subject do %>
New Group Membership for <%= asset.group.context.name %>
<%= t :subject, "New Group Membership for %{course_or_account}", :course_or_account => asset.group.context.name %>
<% end %>
New Group Membership: <%= asset.group.name %>
<%= t :title, "New Group Membership: %{group_name}", :group_name => asset.group.name %>
You've been invited to join the group <%= asset.group.name %> for the <%= asset.group.context.class.to_s.downcase %> <%= asset.group.context.name %>.
<%=
case asset.group.context_type
when 'Account'
t :body_account, "You've been invited to join the group %{group} for the account %{account}.", :group => asset.group.name, :account => asset.group.context.name
else
t :body_course, "You've been invited to join the group %{group} for the course %{course}.", :group => asset.group.name, :course => asset.group.context.name
end
%>
You can check out the group by clicking the link below:
<%= t :details, "You can check out the group by clicking the link below:" %>
<%= content :link %>

View File

@ -1,4 +1,11 @@
<% define_content :link do %>
http://<%= HostUrl.context_host(asset.group.context) %>/<%= asset.group.context.class.to_s.downcase.pluralize %>/<%= asset.group.context_id %>/groups/<%= asset.group_id %>
<% end %>
You've been invited to join the group <b><a href="<%= content :link %>"><%= asset.group.name %></a></b> for the <%= asset.group.context.class.to_s.downcase %> <%= asset.group.context.name %>.
<%=
case asset.group.context_type
when 'Account'
t :body_account, "You've been invited to join the group %{group} for the account %{account}.", :group => %{<b><a href="#{content :link}">#{h asset.group.name}</a></b>}.html_safe, :account => asset.group.context.name
else
t :body_course, "You've been invited to join the group %{group} for the course %{course}.", :group => %{<b><a href="#{content :link}">#{h asset.group.name}</a></b>}.html_safe, :course => asset.group.context.name
end
%>

View File

@ -1,3 +1,10 @@
You've been invited to join the group <%= asset.group.name %> for the <%= asset.group.context.class.to_s.downcase %> <%= asset.group.context.name %>.
<%=
case asset.group.context_type
when 'Account'
t :body_account, "You've been invited to join the group %{group} for the account %{account}.", :group => asset.group.name, :account => asset.group.context.name
else
t :body_course, "You've been invited to join the group %{group} for the course %{course}.", :group => asset.group.name, :course => asset.group.context.name
end
%>
More info at <%= HostUrl.context_host(asset.group.context) %>
<%= t :details, "More info at %{url}", :url => HostUrl.context_host(asset.group.context) %>

View File

@ -2,7 +2,14 @@
http://<%= HostUrl.context_host(asset.group.context) %>/<%= asset.group.context.class.to_s.downcase.pluralize %>/<%= asset.group.context_id %>/groups/<%= asset.group_id %>
<% end %>
<% define_content :subject do %>
New Group Membership for <%= asset.group.context.name %>
<%= t :subject, "New Group Membership for %{course_or_account}", :course_or_account => asset.group.context.name %>
<% end %>
You've been invited to join the group <%= asset.group.name %> for the <%= asset.group.context.class.to_s.downcase %> <%= asset.group.context.name %>.
<%=
case asset.group.context_type
when 'Account'
t :body_account, "You've been invited to join the group %{group} for the account %{account}.", :group => asset.group.name, :account => asset.group.context.name
else
t :body_course, "You've been invited to join the group %{group} for the course %{course}.", :group => asset.group.name, :course => asset.group.context.name
end
%>

View File

@ -1,4 +1,11 @@
<% define_content :link do %>
http://<%= HostUrl.context_host(asset.group.context) %>/<%= asset.group.context.class.to_s.downcase.pluralize %>/<%= asset.group.context_id %>/groups/<%= asset.group_id %>
<% end %>
Canvas Alert - Invitation: <%= asset.group.name %> for the <%= asset.group.context.class.to_s.downcase %> <%= asset.group.context.name %>
<%=
case asset.group.context_type
when 'Account'
t :body_account, "Canvas Alert - Invitation: %{group} for the account %{account}", :group => asset.group.name, :account => asset.group.context.name
else
t :body_course, "Canvas Alert - Invitation: %{group} for the course %{course}.", :group => asset.group.name, :course => asset.group.context.name
end
%>