django 등록을 사용하고 있으며 필드 이름과 오류 메시지를 번역하고 싶습니다. 나는/registration/locale에 다른 번역 파일이 있다는 것을 알았지 만 사용 방법은 모르겠다. 내가 함께 해봤django 등록 변경 언어
<table class="formulari">
<form method='post' action=''>{% csrf_token %}
{{ form }}
<tr><td></td><td><input type='submit' value="Actualitzar contrassenya" /></td>
</form>
</table>
:
이
템플릿의 예입니다 지금은 레이블 값을 제어 할 수 있습니다<form method="post" action="">{% csrf_token %}
<tr>
<th> <label> Contrassenya nova </label> </th>
<td> {{form.new_password1}} <td>
, 그러나 나는 오류를 변환하는 방법을 모르겠어요. ..
답장을 보내 주셔서 감사합니다.