Commit 52504d95 authored by Melissa Draper's avatar Melissa Draper Committed by Francois Marier
Browse files

Make DoB configurable via get_string (bug #824638)



Add get_string support for the DoB field and descriptions. The
strings are strfdateofbirth for the date, and dateofbirthformatguide
for the description.

Change-Id: I2a5eb8cc7c17bff3a4298bc9776a7439fc4bd1f7
Signed-off-by: default avatarMelissa Draper <melissa@catalyst.net.nz>
parent 01488dfa
......@@ -68,12 +68,12 @@ $personalinformationform = pieform(array(
'type' => 'calendar',
'caloptions' => array(
'showsTime' => false,
'ifFormat' => '%Y/%m/%d'
'ifFormat' => get_string('strfdateofbirth', 'langconfig')
),
'defaultvalue' => ((!empty($personalinformation))
? $personalinformation->get_composite('dateofbirth')+3600 : null),
'title' => get_string('dateofbirth', 'artefact.resume'),
'description' => get_string('dateformatguide'),
'description' => get_string('dateofbirthformatguide'),
),
'placeofbirth' => array(
'type' => 'text',
......
......@@ -41,6 +41,7 @@ $string['strftimerecent'] = '%%d %%b, %%k:%%M';
$string['strftimerecentfull'] = '%%a, %%d %%b %%Y, %%l:%%M %%p';
$string['strftimetime'] = '%%l:%%M %%p';
$string['strfdaymonthyearshort'] = '%%d/%%m/%%Y';
$string['strfdateofbirth'] = '%%Y/%%m/%%d';
$string['strftimew3cdatetime'] = '%%Y-%%m-%%dT%%H:%%M:%%S%%z';
$string['strftimew3cdate'] = '%%Y-%%m-%%d';
$string['thislanguage'] = 'English';
......
......@@ -118,6 +118,7 @@ $string['sortfreq'] = 'Sort tags by frequency';
$string['sortresultsby'] = 'Sort results by:';
$string['date'] = 'Date';
$string['dateformatguide'] = 'Use the format YYYY/MM/DD';
$string['dateofbirthformatguide'] = 'Use the format YYYY/MM/DD';
$string['datetimeformatguide'] = 'Use the format YYYY/MM/DD HH:MM';
$string['filterresultsby'] = 'Filter results by:';
$string['tagfilter_all'] = 'All';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment