From: Dan Scott Date: Fri, 16 Nov 2012 21:01:10 +0000 (-0500) Subject: Make the "user account expired" warning i18n-friendly X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e7fd0c7e686f8e847e76756d61e6868f0a80f975;p=contrib%2FConifer.git Make the "user account expired" warning i18n-friendly The warning message is now capable of being translated, and we're formatting of the date consistently with other uses throughout the TPAC. Signed-off-by: Dan Scott Signed-off-by: Ben Shum --- diff --git a/Open-ILS/src/templates/opac/parts/myopac/main_base.tt2 b/Open-ILS/src/templates/opac/parts/myopac/main_base.tt2 index c28ea71e3b..dee5662a2d 100644 --- a/Open-ILS/src/templates/opac/parts/myopac/main_base.tt2 +++ b/Open-ILS/src/templates/opac/parts/myopac/main_base.tt2 @@ -51,10 +51,12 @@
- [% IF date.format(ctx.user.expire_date, '%s') < date.format(date.now , '%s') %] - Your library card expired on [% date.format(ctx.user.expire_date, '%B %d, %Y') %]. Please contact a librarian to resolve this issue. - [% END %] -
+ [%- IF date.format(ctx.user.expire_date, '%s') < date.format(date.now , '%s'); + fmt_expire_date = date.format(ctx.user.expire_date, DATE_FORMAT); + %] + [% l("Your library card expired on [_1]. Please contact a librarian to resolve this issue.", fmt_expire_date) %] + [% END %] +