Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(108)

Issue 4: Format knowledge in format classes

Unified Diff

File: trunk/translate/storage/mo.py
Patch Set: Created 1 year, 5 months ago
Jump to:
View side by-side-diff with in line comments
Index: trunk/translate/storage/mo.py
===================================================================
--- trunk.orig/translate/storage/mo.py
+++ trunk/translate/storage/mo.py
@@ -101,6 +101,9 @@ class mounit(base.TranslationUnit):
 class mofile(base.TranslationStore):
     """A class representing a .mo file."""
     UnitClass = mounit
+    name = "Gettext MO file"
+    extension = ("*.mo", "*.gmo")
+    mimetype = ("application/x-gettext-catalog", )
     def __init__(self, inputfile=None, unitclass=mounit):
         self.UnitClass = unitclass
         base.TranslationStore.__init__(self, unitclass=unitclass)

Powered by Google App Engine
This is Rietveld r159