Changeset - 400ca827f2c5
[Not reviewed]
beta
0 5 0
Marcin Kuzminski - 13 years ago 2012-12-01 00:20:39
marcin@python-works.com
added i18n to email templates
5 files changed with 15 insertions and 18 deletions:
0 comments (0 inline, 0 general)
rhodecode/templates/email_templates/changeset_comment.html
Show inline comments
 
@@ -7,6 +7,6 @@ ${body}
 

	
 
% if status_change is not None:
 
<div>
 
    New status -> ${status_change}
 
    ${_('New status$')} -> ${status_change}
 
</div>
 
% endif
rhodecode/templates/email_templates/password_reset.html
Show inline comments
 
## -*- 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.')}
rhodecode/templates/email_templates/pull_request.html
Show inline comments
 
## -*- 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}
rhodecode/templates/email_templates/pull_request_comment.html
Show inline comments
 
## -*- 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}
rhodecode/templates/email_templates/registration.html
Show inline comments
 
## -*- 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}
0 comments (0 inline, 0 general)