diff --git a/webapp/web/templates/freemarker/body/error/error-display.ftl b/webapp/web/templates/freemarker/body/error/error-display.ftl index bd1936097..a878bc098 100644 --- a/webapp/web/templates/freemarker/body/error/error-display.ftl +++ b/webapp/web/templates/freemarker/body/error/error-display.ftl @@ -3,27 +3,27 @@ <#-- Template for general system error. -->
- There was an error in the system. + ${i18n().we_have_an_error} <#if sentEmail> - This error has been reported to the site administrator. + ${i18n().error_was_reported} #if>
<#if adminErrorData??> <#-- view for site administrators --> <#if adminErrorData.errorMessage?has_content> -Error message: ${adminErrorData.errorMessage?html}
+${i18n().error_message}: ${adminErrorData.errorMessage?html}
#if> <#if adminErrorData.stackTrace?has_content>- Stack trace (full trace available in the vivo log): ${adminErrorData.stackTrace?html} + ${i18n().stack_trace} (${i18n().trace_available}): ${adminErrorData.stackTrace?html}
<#if adminErrorData.cause?has_content> -Caused by: ${adminErrorData.cause?html}
+${i18n().caused_by}: ${adminErrorData.cause?html}
#if> #if> <#elseif ! errorOnHomePage> <#-- view for other users --> -Return to the home page
+${i18n().return_to_the} ${i18n().home_page}
#if> diff --git a/webapp/web/templates/freemarker/body/error/error-email.ftl b/webapp/web/templates/freemarker/body/error/error-email.ftl index 90963b60f..e3c14b4b5 100644 --- a/webapp/web/templates/freemarker/body/error/error-email.ftl +++ b/webapp/web/templates/freemarker/body/error/error-email.ftl @@ -2,7 +2,7 @@ <#-- Template for email message sent to site administrator when an error occurs on the site. --> -<#assign subject = "An error occurred on the VIVO site" /> +<#assign subject = i18n().error_occurred /> <#assign datetime = datetime?string("yyyy-MM-dd HH:mm:ss zzz")> @@ -13,26 +13,26 @@- An error occurred on your VIVO site at ${datetime!}. + ${i18n().error_occurred_at(datetime!)}
- Requested url: ${requestedUrl!} + ${i18n().requested_url}: ${requestedUrl!}
<#if errorMessage?has_content> - Error message: ${errorMessage!} + ${i18n().error_message}: ${errorMessage!} #if>
- Stack trace (full trace available in the vivo log): + ${i18n().stack_trace} (${i18n().trace_available}):
${stackTrace!}<#if cause?has_content> -
Caused by: +
${i18n().caused_by}:
${cause!}#if> @@ -42,19 +42,19 @@ #assign> <#assign text> -An error occurred on your VIVO site at ${datetime!}. +${i18n().error_occurred_at(datetime!)} -Requested url: ${requestedUrl!} +${i18n().requested_url}: ${requestedUrl!} <#if errorMessage?has_content> - Error message: ${errorMessage!} + ${i18n().error_message}: ${errorMessage!} #if> -Stack trace (full trace available in the vivo log): +${i18n().stack_trace} (${i18n().trace_available}): ${stackTrace!} <#if cause?has_content> -Caused by: +${i18n().caused_by}: ${cause!} #if> #assign> diff --git a/webapp/web/templates/freemarker/body/error/error-standard.ftl b/webapp/web/templates/freemarker/body/error/error-standard.ftl index 1eedaf780..690f5d041 100644 --- a/webapp/web/templates/freemarker/body/error/error-standard.ftl +++ b/webapp/web/templates/freemarker/body/error/error-standard.ftl @@ -2,6 +2,6 @@ <#-- Template for general system error. --> -
There was an error in the system.
+${i18n().we_have_an_error}.
-Return to the home page.
\ No newline at end of file +${i18n().return_to_the} ${i18n().home_page}
\ No newline at end of file diff --git a/webapp/web/templates/freemarker/body/login/adminLogin.ftl b/webapp/web/templates/freemarker/body/login/adminLogin.ftl index d8d856dea..2183d6570 100644 --- a/webapp/web/templates/freemarker/body/login/adminLogin.ftl +++ b/webapp/web/templates/freemarker/body/login/adminLogin.ftl @@ -3,69 +3,69 @@ <#-- Template for login using internal vitro account (even when external auth is enabled). Accessible at /admin/login -->${errorMessage}
Enter the email address and password for your internal Vitro account.
+${i18n().enter_email_pasword}
<#else> -You must change your password to log in.
+${i18n().change_password}
#if>- Enter the userID that you want to sign in as, or click Cancel. + ${i18n().enter_id_to_login}