Mercurial > kallithea
changeset 3054:400ca827f2c5 beta
added i18n to email templates
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 01 Dec 2012 00:20:39 +0100 |
parents | d7e10699513b |
children | 301268606429 |
files | rhodecode/templates/email_templates/changeset_comment.html rhodecode/templates/email_templates/password_reset.html rhodecode/templates/email_templates/pull_request.html rhodecode/templates/email_templates/pull_request_comment.html rhodecode/templates/email_templates/registration.html |
diffstat | 5 files changed, 15 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/templates/email_templates/changeset_comment.html Sat Dec 01 00:14:47 2012 +0100 +++ b/rhodecode/templates/email_templates/changeset_comment.html Sat Dec 01 00:20:39 2012 +0100 @@ -7,6 +7,6 @@ % if status_change is not None: <div> - New status -> ${status_change} + ${_('New status$')} -> ${status_change} </div> % endif
--- a/rhodecode/templates/email_templates/password_reset.html Sat Dec 01 00:14:47 2012 +0100 +++ b/rhodecode/templates/email_templates/password_reset.html Sat Dec 01 00:20:39 2012 +0100 @@ -1,12 +1,12 @@ ## -*- coding: utf-8 -*- <%inherit file="main.html"/> -Hello ${user} +${_('Hello')} ${user} -We received a request to create a new password for your account. +${_('We received a request to create a new password for your account.')} -You can generate it by clicking following URL: +${_('You can generate it by clicking following URL')}: ${reset_url} -If you didn't request new password please ignore this email. +${_('If you didn't request new password please ignore this email.')}
--- a/rhodecode/templates/email_templates/pull_request.html Sat Dec 01 00:14:47 2012 +0100 +++ b/rhodecode/templates/email_templates/pull_request.html Sat Dec 01 00:20:39 2012 +0100 @@ -1,20 +1,18 @@ ## -*- coding: utf-8 -*- <%inherit file="main.html"/> -User <b>${pr_user_created}</b> opened pull request for repository -${pr_repo_url} and wants you to review changes. - -<div>title: ${pr_title}</div> -<div>description:</div> +${_('User %s opened pull request for repository %s and wants you to review changes.') % ('<b>%s</b>' % pr_user_created,pr_repo_url)} +<div>${_('title')}: ${pr_title}</div> +<div>${_('description')}:</div> <p> ${body} </p> -<div>revisions for reviewing</div> +<div>${_('revisions for reviewing')}</div> <ul> %for r in pr_revisions: <li>${r}</li> %endfor </ul> -View this pull request here: ${pr_url} +${_('View this pull request here')}: ${pr_url}
--- a/rhodecode/templates/email_templates/pull_request_comment.html Sat Dec 01 00:14:47 2012 +0100 +++ b/rhodecode/templates/email_templates/pull_request_comment.html Sat Dec 01 00:20:39 2012 +0100 @@ -1,15 +1,14 @@ ## -*- coding: utf-8 -*- <%inherit file="main.html"/> -User <b>${pr_comment_user}</b> commented on pull request #${pr_id} for -repository ${pr_target_repo} +${_('User %s commented on pull request #%s for repository %s') % ('<b>%s</b>' % pr_comment_user ,pr_id,pr_target_repo)} <p> ${body} %if status_change: - <span>New status -> ${status_change}</span> + <span>${_('New status')} -> ${status_change}</span> %endif </p> -View this comment here: ${pr_comment_url} +${_('View this comment here')}: ${pr_comment_url}
--- a/rhodecode/templates/email_templates/registration.html Sat Dec 01 00:14:47 2012 +0100 +++ b/rhodecode/templates/email_templates/registration.html Sat Dec 01 00:20:39 2012 +0100 @@ -1,9 +1,9 @@ ## -*- coding: utf-8 -*- <%inherit file="main.html"/> -A new user have registered in RhodeCode +${_('A new user have registered in RhodeCode')} ${body} -View this user here: ${registered_user_url} +${_('View this user here')}: ${registered_user_url}