Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Kaufmann <humitos@gmail.com>2012-05-21 13:31:26 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-05-21 17:20:30 (GMT)
commitefe760da6d87c421ce0f958449463f46317305ff (patch)
treed53648ee7684ac4d86d425a325ddd94a167bf0c7
parent5a58b3436ae65c197c540f96ceed735539664b8a (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.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/finance.py b/finance.py
index 7531acd..a5626b8 100644
--- a/finance.py
+++ b/finance.py
@@ -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')