Skip to content

Commit 2570109

Browse files
committed
msgfmt.make doesn't exist any more
1 parent f65c74f commit 2570109

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

roundup/i18n.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ def get_mofile(languages, localedir, domain=None):
137137
# see what we've found
138138
if motime < potime:
139139
# compile
140-
msgfmt.make(pofile, mofile)
140+
mo = msgfmt.Msgfmt(pofile).get()
141+
open(mofile, 'wb').write(mo)
141142
elif motime == 0:
142143
# no files found - proceed to the next locale name
143144
continue

0 commit comments

Comments
 (0)