#14 Help translators with date suffixes

AMOS BEGIN
 MOV [numbersuffix_st,mod_customcert],[numbersuffix_st_as_in_first,mod_customcert]
 MOV [numbersuffix_nd,mod_customcert],[numbersuffix_nd_as_in_second,mod_customcert]
 MOV [numbersuffix_rd,mod_customcert],[numbersuffix_rd_as_in_third,mod_customcert]
AMOS END
This commit is contained in:
Mark Nelson 2016-08-26 16:28:34 +08:00
parent e7d5cbca6e
commit e5d523de91
2 changed files with 6 additions and 6 deletions

View file

@ -252,11 +252,11 @@ class element extends \mod_customcert\element {
switch ($day % 10) {
// Handle 1st, 2nd, 3rd.
case 1:
return get_string('numbersuffix_st', 'customcertelement_date');
return get_string('numbersuffix_st_as_in_first', 'customcertelement_date');
case 2:
return get_string('numbersuffix_nd', 'customcertelement_date');
return get_string('numbersuffix_nd_as_in_second', 'customcertelement_date');
case 3:
return get_string('numbersuffix_rd', 'customcertelement_date');
return get_string('numbersuffix_rd_as_in_third', 'customcertelement_date');
}
}
return 'th';

View file

@ -29,7 +29,7 @@ $string['dateitem'] = 'Date item';
$string['dateitem_help'] = 'This will be the date that is printed on the certificate';
$string['issueddate'] = 'Issued date';
$string['pluginname'] = 'Date';
$string['numbersuffix_nd'] = 'nd';
$string['numbersuffix_rd'] = 'rd';
$string['numbersuffix_st'] = 'st';
$string['numbersuffix_nd_as_in_second'] = 'nd';
$string['numbersuffix_rd_as_in_third'] = 'rd';
$string['numbersuffix_st_as_in_first'] = 'st';
$string['userdateformat'] = 'User date format';