I want to get an error message in Japanese with django Password Change Form

problem

In django, there is a PasswordChangeForm for the password change screen, which also includes the default check process, but I wanted to make the input check error message and annotations in Japanese. I searched for internationalization and multilingualization of messages, but it didn't correspond to a good method, but it should have only changed the language setting of settings.py.

inadvertently.

Rather, the language setting of django is amazing.

Shame for those who make the same mistake.

Conclusion

If the language setting is English

settings.py


LANGUAGE_CODE = 'en-us'

image.png

When the language setting is Japanese

setttings.py


LANGUAGE_CODE = 'ja'

image.png

reference

https://simpleisbetterthancomplex.com/series/2017/09/25/a-complete-beginners-guide-to-django-part-4.html

Recommended Posts

I want to get an error message in Japanese with django Password Change Form
I want to change the Japanese flag to the Palau flag with Numpy
When I get an error with Pylint in Atom on Windows
I get an error when trying to install maec 4.0.1.0 with pip
I get an error with import pandas.
When I get an error with PyInstaller
I want to pin Datetime.now in Django tests
I want to be an OREMO with setParam!
I get an error with all yum commands
[Python] I want to know the variables in the function when an error occurs!
I want to send Gmail with Python, but I can't because of an error
[Django memo] I want to set the login user information in the form in advance
I want to create an API that returns a model with a recursive relationship in the Django REST Framework
I want to convert an image to WebP with lollipop
I want to transition with a button in flask
I get an Import Error in Python Beautiful Soup
I get an error when I put opencv in pyautoGUI
I want to work with a robot in python.
When I try to install mysqlclient with Django, I get error: command'gcc' failed with exit status 1.
I want to make a blog editor with django admin
[Django] I want to log in automatically after new registration
I tried to create an article in Wiki.js with SQLAlchemy
I want to improve efficiency with Python even in an experimental system (2) RS232C and pySerial
I want to improve efficiency with Python even in an experimental system (1) Install Anaconda with Chocolatey
I want to solve APG4b with Python (only 4.01 and 4.04 in Chapter 4)
I want to run Rails with rails s even in vagrant environment
I want to improve efficiency with Python even in an experimental system (4) Use ser.close () when an error is thrown using try syntax
How to get started with Django
I want to do ○○ with Pandas
I want to debug with Python
I want to improve efficiency with Python even in an experimental system (3) I want to do something like Excel with Pandas
I want to change the color by clicking the scatter point in matplotlib
I want to get angry with my mom when my memory is tight
I want to do it with Python lambda Django, but I will stop
(Matplotlib) I want to draw a graph with a size specified in pixels
I want to use the Django Debug Toolbar in my Ajax application
If you want to get multiple statistics with groupby in pandas v1
Environment maintenance made with Docker (I want to post-process GrADS in Python
I want to color a part of an Excel string in Python
I got an unfamiliar error in Django: TypeError: resolve () got an unexpected keyword argument'strict'
I want to leave an arbitrary command in the command history of Shell
I want to create an Ubuntu chrome User Profile with Colab only
Step notes to get started with django
I want to detect objects with OpenCV
I want to print in a comprehension
I tried to get started with Hy
I want to blog with Jupyter Notebook
I want to pip install with PythonAnywhere
I want to analyze logs with Python
I want to play with aws with python
I want to make an automation program!
I want to embed Matplotlib in PySimpleGUI
What to do if you get an error when trying to send a message in tasks.loop () immediately after startup
I tried to explain how to get the article content with MediaWiki API in an easy-to-understand manner with examples (Python 3)
Workaround if you get an error when trying to install PySide with pip
In the Chainer tutorial, I get an error when importing a package. (mock)
I got an error when trying to run Hello World in Go language
When I tried to change the root password with ansible, I couldn't access it.
I got an error when I put opencv in python3 with Raspberry Pi [Remedy]
I want to write an element to a file with numpy and check it.
What to do if you get an error when installing python with pyenv