From 9cc32e3233983ac39bb7f766190aad58c3c7a398 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Mon, 24 Nov 2014 13:49:45 -0500 Subject: [PATCH] Fix age/gender i18n Since the labels for the age-selection widget are taken from an environment variable (no longer hard-coded) they are not included in the strings for i18n. This patch adds default values to agepicker.py so that they are included in the Sugar POT file. --- src/jarabe/intro/agepicker.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/jarabe/intro/agepicker.py b/src/jarabe/intro/agepicker.py index 87d1a73b63..1b1fa5957e 100644 --- a/src/jarabe/intro/agepicker.py +++ b/src/jarabe/intro/agepicker.py @@ -36,7 +36,11 @@ _group_labels = None _SECONDS_PER_YEAR = 365 * 24 * 60 * 60. - +_DEFAULT_PROMPT = _('Select grade:') +_DEFAULT_LABELS = [_('Preschool'), _('Kindergarten'), _('1st Grade'), + _('2nd Grade'), _('3rd Grade'), _('4th Grade'), + _('5th Grade'), _('6th Grade'), _('7th Grade'), + _('High School'), _('Adult')] def calculate_birth_timestamp(age): age_in_seconds = age * _SECONDS_PER_YEAR