# HG changeset patch # User Thomas De Schampheleire # Date 1517949770 -3600 # Node ID 67e561f832b23e3d26bbbee2b21a49016add63b2 # Parent ae81bcb8a93deaa5922ea73316bbe0e9a76c50a5 email templates: align word to indicate branches: at / branch Some email templates use ' at ' while others use ' branch '. Interestingly even some txt templates use one and the corresponding HTML template uses the other. This commit aligns all uses of 'at' and 'branch' to 'branch' as it is considered more expressive. The other choice would also be possible, as long as all users are aligned. diff -r ae81bcb8a93d -r 67e561f832b2 kallithea/templates/email_templates/pull_request.html --- a/kallithea/templates/email_templates/pull_request.html Tue Feb 06 21:34:48 2018 +0100 +++ b/kallithea/templates/email_templates/pull_request.html Tue Feb 06 21:42:50 2018 +0100 @@ -12,12 +12,12 @@ ${_('Pull request from')} ${pr_source_repo} - ${_('at')} + ${_('branch')} ${pr_source_branch} ${_('to')} ${pr_target_repo} - ${_('at')} + ${_('branch')} ${pr_target_branch}
diff -r ae81bcb8a93d -r 67e561f832b2 kallithea/templates/email_templates/pull_request.txt --- a/kallithea/templates/email_templates/pull_request.txt Tue Feb 06 21:34:48 2018 +0100 +++ b/kallithea/templates/email_templates/pull_request.txt Tue Feb 06 21:42:50 2018 +0100 @@ -5,11 +5,11 @@ ${_('Pull request from')|n,unicode} \ ${pr_source_repo|n,unicode} \ -${_('at')|n,unicode} \ +${_('branch')|n,unicode} \ ${pr_source_branch|n,unicode} \ ${_('to')|n,unicode} \ ${pr_target_repo|n,unicode} \ -${_('at')|n,unicode} \ +${_('branch')|n,unicode} \ ${pr_target_branch|n,unicode}: ${pr_nice_id|n,unicode} \ "${pr_title|n,unicode}" \ diff -r ae81bcb8a93d -r 67e561f832b2 kallithea/templates/email_templates/pull_request_comment.txt --- a/kallithea/templates/email_templates/pull_request_comment.txt Tue Feb 06 21:34:48 2018 +0100 +++ b/kallithea/templates/email_templates/pull_request_comment.txt Tue Feb 06 21:42:50 2018 +0100 @@ -7,11 +7,11 @@ ${_('Pull request from')|n,unicode} \ ${pr_source_repo|n,unicode} \ -${_('at')|n,unicode} \ +${_('branch')|n,unicode} \ ${pr_source_branch|n,unicode} \ ${_('to')|n,unicode} \ ${pr_target_repo|n,unicode} \ -${_('at')|n,unicode} \ +${_('branch')|n,unicode} \ ${pr_target_branch|n,unicode}: ${pr_nice_id|n,unicode} \ "${pr_title|n,unicode}" \ diff -r ae81bcb8a93d -r 67e561f832b2 kallithea/tests/models/test_dump_html_mails.ref.html --- a/kallithea/tests/models/test_dump_html_mails.ref.html Tue Feb 06 21:34:48 2018 +0100 +++ b/kallithea/tests/models/test_dump_html_mails.ref.html Tue Feb 06 21:42:50 2018 +0100 @@ -891,7 +891,7 @@ Added as Reviewer of Pull Request #7 "The Title" by Requesting User (root) -Pull request from https://dev.org/repo at devbranch to http://mainline.com/repo at trunk: +Pull request from https://dev.org/repo branch devbranch to http://mainline.com/repo branch trunk: #7 "The Title" by u2 u3 (u2). @@ -959,12 +959,12 @@ Pull request from https://dev.org/repo - at + branch devbranch to http://mainline.com/repo - at + branch trunk
@@ -1079,7 +1079,7 @@ Mention on Pull Request #7 "The Title" by Requesting User (root) -Pull request from https://dev.org/repo at devbranch to http://mainline.com/repo at trunk: +Pull request from https://dev.org/repo branch devbranch to http://mainline.com/repo branch trunk: #7 "The Title" by u2 u3 (u2). @@ -1147,12 +1147,12 @@ Pull request from https://dev.org/repo - at + branch devbranch to http://mainline.com/repo - at + branch trunk
@@ -1274,7 +1274,7 @@ - and indented on second line -Pull request from https://dev.org/repo at devbranch to http://mainline.com/repo at trunk: +Pull request from https://dev.org/repo branch devbranch to http://mainline.com/repo branch trunk: #7 "The Title" by u2 u3 (u2). @@ -1438,7 +1438,7 @@ - and indented on second line -Pull request from https://dev.org/repo at devbranch to http://mainline.com/repo at trunk: +Pull request from https://dev.org/repo branch devbranch to http://mainline.com/repo branch trunk: #7 "The Title" by u2 u3 (u2). @@ -1604,7 +1604,7 @@ - and indented on second line -Pull request from https://dev.org/repo at devbranch to http://mainline.com/repo at trunk: +Pull request from https://dev.org/repo branch devbranch to http://mainline.com/repo branch trunk: #7 "The Title" by u2 u3 (u2). @@ -1786,7 +1786,7 @@ - and indented on second line -Pull request from https://dev.org/repo at devbranch to http://mainline.com/repo at trunk: +Pull request from https://dev.org/repo branch devbranch to http://mainline.com/repo branch trunk: #7 "The Title" by u2 u3 (u2). @@ -1968,7 +1968,7 @@ - and indented on second line -Pull request from https://dev.org/repo at devbranch to http://mainline.com/repo at trunk: +Pull request from https://dev.org/repo branch devbranch to http://mainline.com/repo branch trunk: #7 "The Title" by u2 u3 (u2). @@ -2149,7 +2149,7 @@ - and indented on second line -Pull request from https://dev.org/repo at devbranch to http://mainline.com/repo at trunk: +Pull request from https://dev.org/repo branch devbranch to http://mainline.com/repo branch trunk: #7 "The Title" by u2 u3 (u2). @@ -2332,7 +2332,7 @@ - and indented on second line -Pull request from https://dev.org/repo at devbranch to http://mainline.com/repo at trunk: +Pull request from https://dev.org/repo branch devbranch to http://mainline.com/repo branch trunk: #7 "The Title" by u2 u3 (u2). @@ -2519,7 +2519,7 @@ - and indented on second line -Pull request from https://dev.org/repo at devbranch to http://mainline.com/repo at trunk: +Pull request from https://dev.org/repo branch devbranch to http://mainline.com/repo branch trunk: #7 "The Title" by u2 u3 (u2).