How to convert gettext .mo file into .po file [closed] How to convert gettext .mo file into .po file [closed] python python

How to convert gettext .mo file into .po file [closed]


msgunfmt [path_to_file.mo] > [path_to_file.po]


You can solve this problem by using polib to decompile .mo files.


Under Windows and with recent Poedit 2.2.4 installed:

"C:\Program Files (x86)\Poedit\GettextTools\bin\msgunfmt.exe" file.mo -o file.po

To re-create the .mo file:

"C:\Program Files (x86)\Poedit\GettextTools\bin\msgfmt.exe" file_edited.po -o file_new.mo