Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

update .po file in django without losing current translations

Tags:

django

I use:

django-admin makemessages -l fa_IR

to update translation file. the process is going well without any issue. but when I run the command after translating .po file, all translations which have been done before will be erased and replaced with a fresh .po file.

the .mo file is still available.

like image 910
Morteza Pourmirzai Avatar asked Sep 01 '25 02:09

Morteza Pourmirzai


1 Answers

Updates the message files for all available languages. Read the docs for more info

django-admin makemessages -a -s

then compile

django-admin compilemessages

and restart your server

like image 72
sandes Avatar answered Sep 02 '25 16:09

sandes