Skip to content
This repository has been archived by the owner on Oct 15, 2021. It is now read-only.

Commit

Permalink
Fixed a couple of issues with exporting PO files
Browse files Browse the repository at this point in the history
  • Loading branch information
Seraphim Mellos committed Sep 14, 2010
1 parent d9b0deb commit 55e0f62
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions transifex/resources/formats/pofile.py
Expand Up @@ -16,6 +16,7 @@
from txcommon.log import logger
from teams.models import Team
from resources.formats.decorators import *
from resources.stats import ResourceStatsList
from suggestions.models import Suggestion

from core import CompileError, GenericTranslation, Handler, STRICT, \
Expand Down Expand Up @@ -162,10 +163,12 @@ def _post_compile(self, *args, **kwargs):
except Team.DoesNotExist:
pass
else:
po.metadata['Language-Team'] = ("%s <%s>" % (language.name %
po.metadata['Language-Team'] = ("%s <%s>" % (language.name ,
team.mainlist))
if self.resource.last_committer:
u = self.resource.last_committer

stats = ResourceStatsList(self.resource)
if stats.last_committer:
u = stats.last_committer
po.metadata['Last-Translator'] = ("%s <%s>" %
(u.get_full_name() or u.username , u.email))

Expand Down

0 comments on commit 55e0f62

Please sign in to comment.