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

Issue 4: Format knowledge in format classes

Unified Diff

File: trunk/translate/storage/pocommon.py
Patch Set: Created 1 year, 5 months ago
Jump to:
View side by-side-diff with in line comments
« trunk/translate/storage/mo.py ('k') | no next file »
Index: trunk/translate/storage/pocommon.py
===================================================================
--- trunk.orig/translate/storage/pocommon.py
+++ trunk/translate/storage/pocommon.py
@@ -63,6 +63,10 @@ class pounit(base.TranslationUnit):
 
 class pofile(base.TranslationStore, poheader.poheader):
 
+    name = "Gettext PO file"
+    extension = ("*.po", "*.pot")
+    mimetype = ("application/x-gettext-catalog", )
+
     def makeheader(self, **kwargs):
         """create a header for the given filename. arguments are specially handled, kwargs added as key: value
         pot_creation_date can be None (current date) or a value (datetime or string)

« trunk/translate/storage/mo.py ('k') | no next file »

Powered by Google App Engine
This is Rietveld r159