Issue 4: Format knowledge in format classes
Created 1 year, 5 months ago by dwaynebailey.
Modified 1 year, 5 months ago.
Reviewers: jean.jordaan
SVN Base: https://translate.svn.sourceforge.net/svnroot/translate/src/trunk/
Comments: 11
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)