diff options
author | Manuel Kaufmann <humitos@gmail.com> | 2012-05-21 13:31:26 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2012-05-21 17:20:30 (GMT) |
commit | efe760da6d87c421ce0f958449463f46317305ff (patch) | |
tree | d53648ee7684ac4d86d425a325ddd94a167bf0c7 | |
parent | 5a58b3436ae65c197c540f96ceed735539664b8a (diff) |
Ability to translate header period SL #3190
Added the ability to translate the way that the header period is shown
and added some comments to the translatros on the code.
Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
-rw-r--r-- | finance.py | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -387,16 +387,20 @@ class Finance(sugar.activity.activity.Activity): def update_header(self): if self.period == _('Day'): - text = self.period_start.strftime("%B %d, %Y") + # TRANS: representation of the "Day" period + text = self.period_start.strftime(_("%B %d, %Y")) elif self.period == _('Week'): - text = _('Week of') + self.period_start.strftime(" %B %d, %Y") + # TRANS: representation of the "Week of" period + text = _('Week of') + self.period_start.strftime(_(" %B %d, %Y")) elif self.period == _('Month'): - text = self.period_start.strftime("%B, %Y") + # TRANS: representation of the "Month" period + text = self.period_start.strftime(_("%B, %Y")) elif self.period == _('Year'): - text = self.period_start.strftime("%Y") + # TRANS: representation of the "Year" period + text = self.period_start.strftime(_("%Y")) elif self.period == _('Forever'): text = _('Forever') |