Skip to content
Snippets Groups Projects
Commit 891ce020 authored by Bastien Montagne's avatar Bastien Montagne
Browse files

Another fix (use po file name as "langauge" dir for mo one, instead of language code...).

parent 49ecb6cf
No related branches found
No related tags found
No related merge requests found
......@@ -177,7 +177,8 @@ class UI_OT_edittranslation(bpy.types.Operator):
# Always invalidate all caches afterward!
clear_caches(self.po_file)
if self.update_mo:
bpy.ops.ui.edittranslation_update_mo(po_file=self.po_file, lang=self.lang)
lang = os.path.splitext(os.path.basename(self.po_file))[0]
bpy.ops.ui.edittranslation_update_mo(po_file=self.po_file, lang=lang)
elif self.clean_mo:
bpy.ops.ui.edittranslation_update_mo(clean_mo=True)
return {'FINISHED'}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment