From eb2b8f0b7743b38060b6d5eee5c9622223ffebc9 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Fri, 16 Nov 2012 16:01:10 -0500 Subject: [PATCH] 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 --- Open-ILS/src/templates/opac/parts/myopac/main_base.tt2 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 %] +
-- 2.43.2