From fe1b52ab49ba8a66c1431b368fb039200da1d6ca Mon Sep 17 00:00:00 2001 From: tworrall Date: Fri, 31 May 2013 11:56:18 -0400 Subject: [PATCH] more template updates for i18n --- .../freemarker/body/aboutQrCodes_es.ftl | 26 + .../userAccounts-acctCreatedEmail.ftl | 30 +- .../body/foaf-person--exportQrCode.ftl | 10 +- .../freemarker/body/harvester/fileharvest.ftl | 66 +- .../individual--foaf-person-2column.ftl | 2 +- .../individual--foaf-person-quickview.ftl | 8 +- .../freemarker/body/menupage/publications.ftl | 12 +- .../individual-contactInfo-2column.ftl | 2 +- .../individual/individual-qrCodeGenerator.ftl | 4 +- .../individual-visualizationQuickView.ftl | 2 +- .../propStatement-authorInAuthorship.ftl | 10 +- .../propStatement-dateTimeInterval.ftl | 2 +- .../propStatement-dateTimeValue.ftl | 2 +- .../propStatement-educationalTraining.ftl | 4 +- .../propStatement-hasAttendeeRole.ftl | 4 +- .../propStatement-hasInvestigatorRole.ftl | 4 +- .../propStatement-organizationForTraining.ftl | 2 +- .../individual/propStatement-relatedRole.ftl | 2 +- .../partials/shortview/view-browse-people.ftl | 4 +- .../partials/shortview/view-index-default.ftl | 2 +- .../shortview/view-search-default.ftl | 2 +- .../edit/forms/addAssociatedConcept.ftl | 24 +- .../edit/forms/addAttendeeRoleToPerson.ftl | 6 +- .../forms/addAuthorsToInformationResource.ftl | 50 +- .../edit/forms/addClinicalRoleToPerson.ftl | 4 +- .../edit/forms/addEditWebpageForm.ftl | 24 +- .../edit/forms/addEditorRoleToPerson.ftl | 4 +- .../edit/forms/addGrantRoleToPerson.ftl | 47 +- .../edit/forms/addHeadOfRoleToPerson.ftl | 6 +- .../edit/forms/addMemberRoleToPerson.ftl | 6 +- .../edit/forms/addOrganizerRoleToPerson.ftl | 6 +- .../forms/addOutreachProviderRoleToPerson.ftl | 4 +- .../edit/forms/addPresenterRoleToPerson.ftl | 56 +- .../edit/forms/addPublicationToPerson.ftl | 107 ++- .../edit/forms/addResearcherRoleToPerson.ftl | 4 +- .../edit/forms/addReviewerRoleToPerson.ftl | 6 +- .../edit/forms/addRoleToPersonTwoStage.ftl | 42 +- .../forms/addServiceProviderRoleToPerson.ftl | 6 +- .../edit/forms/addTeacherRoleToPerson.ftl | 6 +- .../edit/forms/addUserDefinedConcept.ftl | 14 +- .../edit/forms/autoCompleteDataPropForm.ftl | 10 +- .../forms/institutionalInternalClassForm.ftl | 31 +- .../edit/forms/manageGrantsForIndividual.ftl | 8 +- .../forms/managePeopleForOrganization.ftl | 8 +- .../forms/managePublicationsForIndividual.ftl | 8 +- .../forms/manageWebpagesForIndividual.ftl | 16 +- .../menuManagement--classIntersections.ftl | 4 +- .../edit/forms/newIndividualForm.ftl | 24 +- .../forms/organizationHasPositionHistory.ftl | 46 +- .../pageManagement--classIntersections.ftl | 4 +- .../forms/personHasAdvisingRelationship.ftl | 57 +- .../edit/forms/personHasAwardOrHonor.ftl | 56 +- .../forms/personHasEducationalTraining.ftl | 105 ++- .../edit/forms/personHasMailingAddress.ftl | 42 +- .../edit/forms/personHasPositionHistory.ftl | 52 +- .../freemarker/lib/lib-home-page.ftl | 24 +- .../freemarker/lib/lib-vivo-form.ftl | 9 +- .../coAuthorshipSparklineContent.ftl | 28 +- .../copi/coInvestigationSparklineContent.ftl | 30 +- .../entitycomparison/entityComparisonBody.ftl | 67 +- .../entityComparisonErrorCommonBody.ftl | 10 +- .../entityComparisonSetup.ftl | 24 +- .../grant/personGrantSparklineContent.ftl | 28 +- .../mapOfScience/aboutMapOfScience_es.ftl | 52 ++ .../mapOfScience/mapOfScienceStandalone.ftl | 108 +-- .../mapOfScience/mapOfScienceTooltips.ftl | 70 ++ .../mapOfScience/mapOfScienceTooltips_es.ftl | 58 ++ .../regenerateConstructedModels.ftl | 8 +- .../personlevel/coAuthorPersonLevel.ftl | 47 +- .../personlevel/coPIPersonLevel.ftl | 49 +- ...personPublicationCountDynamicActivator.ftl | 2 +- .../personPublicationCountNoSparkline.ftl | 12 +- .../personPublicationSparklineContent.ftl | 32 +- .../freemarker/visualization/tools.ftl | 23 +- .../yearToActivityCountTable.ftl | 4 +- themes/wilma/i18n/all.properties | 632 ++++++++++++++++-- themes/wilma/templates/footer.ftl | 2 +- .../templates/individual--foaf-person.ftl | 6 +- themes/wilma/templates/page-home.ftl | 8 +- themes/wilma/templates/page.ftl | 4 +- 80 files changed, 1517 insertions(+), 913 deletions(-) create mode 100644 productMods/templates/freemarker/body/aboutQrCodes_es.ftl create mode 100644 productMods/templates/freemarker/visualization/mapOfScience/aboutMapOfScience_es.ftl create mode 100644 productMods/templates/freemarker/visualization/mapOfScience/mapOfScienceTooltips.ftl create mode 100644 productMods/templates/freemarker/visualization/mapOfScience/mapOfScienceTooltips_es.ftl diff --git a/productMods/templates/freemarker/body/aboutQrCodes_es.ftl b/productMods/templates/freemarker/body/aboutQrCodes_es.ftl new file mode 100644 index 00000000..950876f6 --- /dev/null +++ b/productMods/templates/freemarker/body/aboutQrCodes_es.ftl @@ -0,0 +1,26 @@ +<#-- $This file is distributed under the terms of the license in /doc/license.txt$ --> + +<#-- Page providing details on how QR codes work --> + +

Acerca de los códigos QR

+ +

Qué es QR?

+ +

QR, siglas de Quick Response, es un estándar para los códigos de barras de dos dimensiones que pueden ser leídos por los dispositivos móviles equipados con cámaras (como un teléfono inteligente).

+ +

Qué tipo de datos es un código QR?

+ +

Los códigos QR pueden codificar diferentes tipos de datos. El código QR ​​de la página del perfil de una persona en VIVO codifica la información acerca de esa persona en formato vCard. Se trata de una especie de tarjeta de presentación digital, que contiene información sobre el nombre de la persona, dirección, número de teléfono, dirección de correo electrónico y mucho más.

+ +

Si hace clic en el código QR ​​de una persona en VIVO, se le llevará a la página "Exportar QR" para esa persona. Esta página contiene el código QR ​​vCard visto en la página principal, así como un código QR ​​que contiene una simple hipervínculo al perfil VIVO del usuario. También contiene una etiqueta HTML para cada código, que puede ser embebido en una página web para mostrar ese código en otros sitios.

+ +<#-- todo: make VIVO API? Currently pasting Google API code into export area, this will be static and not change if VIVO data is updated. --> + +

Cómo se lee un código QR?

+ +

Hay aplicaciones que puede descargar para el iPhone y los teléfonos Android que le permite utilizar la cámara del teléfono para interactuar con los códigos QR colocados en objetos del mundo real.

+ +

Qué puedo hacer yo con un código QR?

+ +

Cualquier cosa! Para una tarjeta de negocios del estado-of-the-art, poner tu enlace de código QR ​​en la parte posterior de la misma. De esta manera cualquier persona con un smartphone adecuadamente equipado puede ir rápidamente a su perfil VIVO, simplemente apuntando su cámara hacia el código. O dicho de tu vCard código QR en la puerta de su oficina para proporcionar más información de contacto.

+ diff --git a/productMods/templates/freemarker/body/accounts/userAccounts-acctCreatedEmail.ftl b/productMods/templates/freemarker/body/accounts/userAccounts-acctCreatedEmail.ftl index ec2bb70e..25226e78 100644 --- a/productMods/templates/freemarker/body/accounts/userAccounts-acctCreatedEmail.ftl +++ b/productMods/templates/freemarker/body/accounts/userAccounts-acctCreatedEmail.ftl @@ -2,7 +2,7 @@ <#-- Confirmation that an account has been created. --> -<#assign subject = "Your ${siteName} account has been created." /> +<#assign subject = "${i18n().account_created_subject(siteName)}" /> <#assign html> @@ -15,32 +15,31 @@

- Congratulations! + ${i18n().congratulations}

- We have created your new VIVO account associated with ${userAccount.emailAddress}. + ${i18n().we_have_created_your_account(siteName,userAccount.emailAddress)}

- If you did not request this new account you can safely ignore this email. - This request will expire if not acted upon for 30 days. + ${i18n().did_not_request_text}

- Click the link below to create your password for your new account using our secure server. + ${i18n().click_to_create_password}

- ${passwordLink} + ${passwordLink}

- If the link above doesn't work, you can copy and paste the link directly into your browser's address bar. + ${i18n().if_link_failed}

- Thanks! + ${i18n().thanks}

@@ -49,20 +48,17 @@ <#assign text> ${userAccount.firstName} ${userAccount.lastName} -Congratulations! +${i18n().congratulations} -We have created your new VIVO account associated with -${userAccount.emailAddress}. +${i18n().we_have_created_your_account(siteName,userAccount.emailAddress)} -If you did not request this new account you can safely ignore this email. -This request will expire if not acted upon for 30 days. +${i18n().did_not_request_text} -Paste the link below into your browser's address bar to create your password -for your new account using our secure server. +${i18n().paste_the_link} ${passwordLink} -Thanks! +${i18n().thanks} <@email subject=subject html=html text=text /> \ No newline at end of file diff --git a/productMods/templates/freemarker/body/foaf-person--exportQrCode.ftl b/productMods/templates/freemarker/body/foaf-person--exportQrCode.ftl index f0787de4..8fca3a7d 100644 --- a/productMods/templates/freemarker/body/foaf-person--exportQrCode.ftl +++ b/productMods/templates/freemarker/body/foaf-person--exportQrCode.ftl @@ -5,15 +5,15 @@ <#include "individual-qrCodeGenerator.ftl"> -

Export QR Code (What is this?)

+

${i18n().export_qr_code} (${i18n().what_is_this})

<#assign thumbUrl = individual.thumbUrl! "${urls.images}/placeholders/person.thumbnail.jpg" > - +${i18n().alt_thumbnail_photo} -

${individual.nameStatement.value}

+

${individual.nameStatement.value}

-

VCard

+

${i18n().vcard}

<@qrCodeVCard qrCodeWidth />
-
Progress
+
${i18n().progress_capitalized}
@@ -265,9 +265,9 @@ <#else>
-

The harvester.location property in runtime.properties is undefined.

+

${i18n().the_capitalized} ${i18n().harvester_location} ${i18n().undefined_runtime_property}

-

In order to use this feature, please define a value for this property that points to the Harvester installation directory before redeploying and restarting the application.

+

${i18n().define_value_for_property}

<#-- if harvester.location is defined --> diff --git a/productMods/templates/freemarker/body/individual/individual--foaf-person-2column.ftl b/productMods/templates/freemarker/body/individual/individual--foaf-person-2column.ftl index c6f594a3..d65dade0 100644 --- a/productMods/templates/freemarker/body/individual/individual--foaf-person-2column.ftl +++ b/productMods/templates/freemarker/body/individual/individual--foaf-person-2column.ftl @@ -35,7 +35,7 @@ <#include "individual-adminPanel.ftl">
<#if relatedSubject??> -

${relatedSubject.relatingPredicateDomainPublic} for ${relatedSubject.name}

+

${relatedSubject.relatingPredicateDomainPublic} ${i18n().for} ${relatedSubject.name}

← ${i18n().return_to(relatedSubject.name)}

<#else>

style="float:left;border-right:1px solid #A6B1B0;"> diff --git a/productMods/templates/freemarker/body/individual/individual--foaf-person-quickview.ftl b/productMods/templates/freemarker/body/individual/individual--foaf-person-quickview.ftl index 281eaa14..2566f536 100644 --- a/productMods/templates/freemarker/body/individual/individual--foaf-person-quickview.ftl +++ b/productMods/templates/freemarker/body/individual/individual--foaf-person-quickview.ftl @@ -45,7 +45,7 @@
style="width:45%" >
<#if relatedSubject??> -

${relatedSubject.relatingPredicateDomainPublic} for ${relatedSubject.name}

+

${relatedSubject.relatingPredicateDomainPublic} ${i18n().for} ${relatedSubject.name}

← ${i18n().return_to(relatedSubject.name)}

<#else> <#-- Image --> @@ -97,7 +97,7 @@ --> <#if hasWebpage >
@@ -167,7 +167,7 @@

- full view icon + ${i18n().full_view_icon} <#if !editable> diff --git a/productMods/templates/freemarker/body/menupage/publications.ftl b/productMods/templates/freemarker/body/menupage/publications.ftl index 62728b1e..a1cf1fe7 100644 --- a/productMods/templates/freemarker/body/menupage/publications.ftl +++ b/productMods/templates/freemarker/body/menupage/publications.ftl @@ -1,13 +1,8 @@ <#-- $This file is distributed under the terms of the license in /doc/license.txt$ --> -

This body is from the the template file - vivo/productMods/templates/freemarker/body/menupage/publications.ftl. - In the display model, the publications page has a display:requiresBodyTemplate - property that defines that the publications page overrides the default template. - The default template for these pages is at /vitro/webapp/web/templates/freemarker/body/menupage/menupage.ftl

+

${i18n().publications_text_one}

-

This technique could be used to define pages without menu items, that get - their content from a freemarker template. An example would be the about page.

+

${i18n().publications_text_two}

display:About
@@ -18,7 +13,6 @@ display:About

-

This would create a page that would use about.ftl as the body. The page would be -accessed via /about and would override all servlet mappings in web.xml

+

${i18n().publications_text_three}

\ No newline at end of file diff --git a/productMods/templates/freemarker/body/partials/individual/individual-contactInfo-2column.ftl b/productMods/templates/freemarker/body/partials/individual/individual-contactInfo-2column.ftl index b43bc314..a221398a 100644 --- a/productMods/templates/freemarker/body/partials/individual/individual-contactInfo-2column.ftl +++ b/productMods/templates/freemarker/body/partials/individual/individual-contactInfo-2column.ftl @@ -32,7 +32,7 @@ <#macro phoneLinks phone> <#if phone?has_content> <#-- true when the property is in the list, even if not populated (when editing) --> <#if editable> -

phone<@p.addLink phone editable />

+

${i18n().phone} <@p.addLink phone editable />

<@p.verboseDisplay phone /> <#if phone.statements?has_content> <#-- if there are any statements --> diff --git a/productMods/templates/freemarker/body/partials/individual/individual-qrCodeGenerator.ftl b/productMods/templates/freemarker/body/partials/individual/individual-qrCodeGenerator.ftl index f810f3c4..1683152e 100644 --- a/productMods/templates/freemarker/body/partials/individual/individual-qrCodeGenerator.ftl +++ b/productMods/templates/freemarker/body/partials/individual/individual-qrCodeGenerator.ftl @@ -35,11 +35,11 @@ <#local qrCodeLinkedImage><@qrCodeVCard qrCodeWidth=width /> <#if (display == "full")> -
vCard QR
+
${i18n().vcard_qr}
${qrCodeLinkedImage} <#elseif (display == "icon")> ${i18n().qr_icon} - + <#else>

${i18n().invalid_qr_code_parameter}

diff --git a/productMods/templates/freemarker/body/partials/individual/individual-visualizationQuickView.ftl b/productMods/templates/freemarker/body/partials/individual/individual-visualizationQuickView.ftl index 9bce11e8..2ece5263 100644 --- a/productMods/templates/freemarker/body/partials/individual/individual-visualizationQuickView.ftl +++ b/productMods/templates/freemarker/body/partials/individual/individual-visualizationQuickView.ftl @@ -23,7 +23,7 @@ <#assign coAuthorVisUrl = individual.coAuthorVisUrl()> <#assign mapOfScienceVisUrl = individual.mapOfScienceUrl()> - <#assign coauthor = "
  • ${i18n().co_author}${i18n().co_authors}
  • " > + <#assign coauthor = "
  • ${i18n().co_author}${i18n().co_authors_capitalized}
  • " > <#assign mapofscience = "
  • ${i18n().map_of_science}${i18n().map_of_science_capitalized}
  • " > diff --git a/productMods/templates/freemarker/body/partials/individual/propStatement-authorInAuthorship.ftl b/productMods/templates/freemarker/body/partials/individual/propStatement-authorInAuthorship.ftl index 98dfc850..839cfa12 100644 --- a/productMods/templates/freemarker/body/partials/individual/propStatement-authorInAuthorship.ftl +++ b/productMods/templates/freemarker/body/partials/individual/propStatement-authorInAuthorship.ftl @@ -50,7 +50,7 @@ ${statement.partOf!}. <#if statement.editor??> - Ed. ${statement.editor!}.  + ${i18n().editor_abbreviated} ${statement.editor!}.  <#if statement.locale?? && statement.publisher??> ${statement.locale!}: ${statement.publisher!}. @@ -66,10 +66,10 @@ <#elseif statement.subclass?contains("Book")> <#if statement.volume?? && (statement.volume!?length > 0 )> - Vol. ${statement.volume!}.  + ${i18n().volume_abbreviated} ${statement.volume!}.  <#if statement.editor??> - Ed. ${statement.editor!}.  + ${i18n().editor_abbreviated} ${statement.editor!}.  <#if statement.locale?? && statement.publisher??> ${statement.locale!}: ${statement.publisher!}. @@ -87,7 +87,7 @@ ${statement.partOf!}. <#if statement.editor??> - Ed. ${statement.editor!}.  + ${i18n().editor_abbreviated} ${statement.editor!}.  <#if statement.startPage?? && statement.endPage??> ${statement.startPage!}-${statement.endPage!}. @@ -107,7 +107,7 @@ <#else> <#-- This shouldn't happen, but we must provide for it --> - missing information resource + ${i18n().missing_info_resource} diff --git a/productMods/templates/freemarker/body/partials/individual/propStatement-dateTimeInterval.ftl b/productMods/templates/freemarker/body/partials/individual/propStatement-dateTimeInterval.ftl index a9a56c3f..f9586f33 100644 --- a/productMods/templates/freemarker/body/partials/individual/propStatement-dateTimeInterval.ftl +++ b/productMods/templates/freemarker/body/partials/individual/propStatement-dateTimeInterval.ftl @@ -13,7 +13,7 @@ --> <#if ! statement.valueStart?? && ! statement.valueEnd?? && ! statement.label?? > - incomplete date/time interval + ${i18n().incomplete_date_time_interval} <#else> <#if statement.label??> ${statement.label!} diff --git a/productMods/templates/freemarker/body/partials/individual/propStatement-dateTimeValue.ftl b/productMods/templates/freemarker/body/partials/individual/propStatement-dateTimeValue.ftl index 82029bbc..dd3ea835 100644 --- a/productMods/templates/freemarker/body/partials/individual/propStatement-dateTimeValue.ftl +++ b/productMods/templates/freemarker/body/partials/individual/propStatement-dateTimeValue.ftl @@ -10,7 +10,7 @@ <#-- No core:dateTime data property assigned. Display a link to the core:DateTimeValue object --> <#if ! statement.dateTime??> - incomplete date/time + ${i18n().incomplete_date_time_value} <#else> ${dt.formatXsdDateTimeLong(statement.dateTime, statement.precision!)} \ No newline at end of file diff --git a/productMods/templates/freemarker/body/partials/individual/propStatement-educationalTraining.ftl b/productMods/templates/freemarker/body/partials/individual/propStatement-educationalTraining.ftl index 3f04e1f4..5d4fc91b 100644 --- a/productMods/templates/freemarker/body/partials/individual/propStatement-educationalTraining.ftl +++ b/productMods/templates/freemarker/body/partials/individual/propStatement-educationalTraining.ftl @@ -18,7 +18,7 @@ <#local degree> <#if statement.degreeName??> ${statement.degreeAbbr!statement.degreeName} - <#if statement.majorField??> in ${statement.majorField} + <#if statement.majorField??> ${i18n().in} ${statement.majorField} <#elseif statement.typeName??> ${statement.typeName!} @@ -29,7 +29,7 @@ ${statement.orgName} <#elseif editable> <#-- Show the link to the context node only if the user is editing the page. --> - missing organization + ${i18n().missing_organization} diff --git a/productMods/templates/freemarker/body/partials/individual/propStatement-hasAttendeeRole.ftl b/productMods/templates/freemarker/body/partials/individual/propStatement-hasAttendeeRole.ftl index 8e661bc4..0c948b3e 100644 --- a/productMods/templates/freemarker/body/partials/individual/propStatement-hasAttendeeRole.ftl +++ b/productMods/templates/freemarker/body/partials/individual/propStatement-hasAttendeeRole.ftl @@ -28,9 +28,9 @@ <#local attendedEvent> <#if statement.event2?has_content && statement.event2Label?has_content> - at ${statement.event2Label} + ${i18n().at} ${statement.event2Label} <#elseif statement.series?has_content && statement.seriesLabel?has_content> - at ${statement.seriesLabel} + ${i18n().at} ${statement.seriesLabel} diff --git a/productMods/templates/freemarker/body/partials/individual/propStatement-hasInvestigatorRole.ftl b/productMods/templates/freemarker/body/partials/individual/propStatement-hasInvestigatorRole.ftl index fbda8b09..8898a608 100644 --- a/productMods/templates/freemarker/body/partials/individual/propStatement-hasInvestigatorRole.ftl +++ b/productMods/templates/freemarker/body/partials/individual/propStatement-hasInvestigatorRole.ftl @@ -33,9 +33,9 @@ <#local awardOrAdminBy> <#if statement.awardedByLabel??> -  awarded by ${statement.awardedByLabel!} +  ${i18n().awarded_by} ${statement.awardedByLabel!} <#elseif statement.adminedByLabel??> -  administered by ${statement.adminedByLabel!} +  ${i18n().administered_by} ${statement.adminedByLabel!} diff --git a/productMods/templates/freemarker/body/partials/individual/propStatement-organizationForTraining.ftl b/productMods/templates/freemarker/body/partials/individual/propStatement-organizationForTraining.ftl index 76c2feff..4ad826c2 100644 --- a/productMods/templates/freemarker/body/partials/individual/propStatement-organizationForTraining.ftl +++ b/productMods/templates/freemarker/body/partials/individual/propStatement-organizationForTraining.ftl @@ -24,7 +24,7 @@ <#local detailedInfo> <#if statement.degree??> - ${statement.degreeAbbr!} in ${statement.field!} + ${statement.degreeAbbr!} ${i18n().in} ${statement.field!} <#elseif statement.field??> ${statement.field!}, ${statement.suppInfo!} <#else> diff --git a/productMods/templates/freemarker/body/partials/individual/propStatement-relatedRole.ftl b/productMods/templates/freemarker/body/partials/individual/propStatement-relatedRole.ftl index 16cacbaf..ac0a470c 100644 --- a/productMods/templates/freemarker/body/partials/individual/propStatement-relatedRole.ftl +++ b/productMods/templates/freemarker/body/partials/individual/propStatement-relatedRole.ftl @@ -18,7 +18,7 @@ <#local linkedIndividual> <#if statement.indivInRole??> - ${statement.indivLabel!statement.indivName} + ${statement.indivLabel!statement.indivName} <#else> <#-- This shouldn't happen, but we must provide for it --> ${i18n().missing_person_in_role} diff --git a/productMods/templates/freemarker/body/partials/shortview/view-browse-people.ftl b/productMods/templates/freemarker/body/partials/shortview/view-browse-people.ftl index 3ad98996..fc172c3d 100644 --- a/productMods/templates/freemarker/body/partials/shortview/view-browse-people.ftl +++ b/productMods/templates/freemarker/body/partials/shortview/view-browse-people.ftl @@ -9,11 +9,11 @@ <#if (individual.thumbUrl)??> ${individual.name}

    - ${individual.name} + ${individual.name}

    <#else>

    - ${individual.name} + ${individual.name}

    diff --git a/productMods/templates/freemarker/body/partials/shortview/view-index-default.ftl b/productMods/templates/freemarker/body/partials/shortview/view-index-default.ftl index 68b25a56..277fd6fd 100644 --- a/productMods/templates/freemarker/body/partials/shortview/view-index-default.ftl +++ b/productMods/templates/freemarker/body/partials/shortview/view-index-default.ftl @@ -4,7 +4,7 @@ <#import "lib-vivo-properties.ftl" as p> -${individual.name} +${individual.name} <@p.displayTitle individual /> diff --git a/productMods/templates/freemarker/body/partials/shortview/view-search-default.ftl b/productMods/templates/freemarker/body/partials/shortview/view-search-default.ftl index aa51b4e6..fbcf3cce 100644 --- a/productMods/templates/freemarker/body/partials/shortview/view-search-default.ftl +++ b/productMods/templates/freemarker/body/partials/shortview/view-search-default.ftl @@ -4,7 +4,7 @@ <#import "lib-vivo-properties.ftl" as p> -${individual.name} +${individual.name} <@p.displayTitle individual /> diff --git a/productMods/templates/freemarker/edit/forms/addAssociatedConcept.ftl b/productMods/templates/freemarker/edit/forms/addAssociatedConcept.ftl index 19b14744..823f7d77 100644 --- a/productMods/templates/freemarker/edit/forms/addAssociatedConcept.ftl +++ b/productMods/templates/freemarker/edit/forms/addAssociatedConcept.ftl @@ -12,12 +12,12 @@ -

    Manage Concepts

    +

    ${i18n().manage_concepts}

    <#if submissionErrors?has_content>

    diff --git a/productMods/templates/freemarker/edit/forms/addAttendeeRoleToPerson.ftl b/productMods/templates/freemarker/edit/forms/addAttendeeRoleToPerson.ftl index 7831d4ff..864a5b20 100644 --- a/productMods/templates/freemarker/edit/forms/addAttendeeRoleToPerson.ftl +++ b/productMods/templates/freemarker/edit/forms/addAttendeeRoleToPerson.ftl @@ -18,9 +18,9 @@ roleExamples--> <#--Variable assignments for Add Clinical Role To Person--> -<#assign roleDescriptor = "attended" /> -<#assign typeSelectorLabel = "event type" /> -<#assign buttonText = "Attendee" /> +<#assign roleDescriptor = "${i18n().attended}" /> +<#assign typeSelectorLabel = "${i18n().event_type}" /> +<#assign buttonText = "${i18n().attendee_capitalized}" /> <#--Each of the two stage forms will include the form below--> <#include "addRoleToPersonTwoStage.ftl"> \ No newline at end of file diff --git a/productMods/templates/freemarker/edit/forms/addAuthorsToInformationResource.ftl b/productMods/templates/freemarker/edit/forms/addAuthorsToInformationResource.ftl index 7599f287..66944f8c 100644 --- a/productMods/templates/freemarker/edit/forms/addAuthorsToInformationResource.ftl +++ b/productMods/templates/freemarker/edit/forms/addAuthorsToInformationResource.ftl @@ -30,7 +30,7 @@ <#assign title="${editConfiguration.subjectName}" /> <#assign requiredHint=" *" /> -<#assign initialHint="(initial okay)" /> +<#assign initialHint="(${i18n().initial okay})" /> <@lvf.unsupportedBrowser urls.base/> @@ -38,7 +38,7 @@ <#if submissionErrors?has_content> -

    Manage Authors

    +

    ${i18n().manage_authors}

      @@ -74,11 +74,11 @@ <#if (authorUri?length > 0)> ${authorName} <#else> - ${authorship.authorshipName} (no linked author) + ${authorship.authorshipName} (${i18n().no_linked_author}) - Remove + ${i18n().remove_capitalized} @@ -97,61 +97,61 @@
      - + - or - Return to Publication - + ${i18n().or} + ${i18n().return_to_publication} +
      -

      Add an Author

      +

      ${i18n().add_an_author}

      - + - +
      <#--These wrapper paragraph elements are important because javascript hides parent of these fields, since last name should be visible even when first name/middle name are not, the parents should be separate for each field-->

      - +

      - +

      - +

      - + - (Verify this match) + (${i18n().verify_match_capitalized})

      - +

      - + - (Verify this match) + (${i18n().verify_match_capitalized})

      @@ -164,15 +164,15 @@

      - + - or + ${i18n().or} - Cancel - + ${i18n().cancel_link} +

      -

      * required fields

      +

      * ${i18n().required_fields}

      @@ -40,7 +40,7 @@ Check those grants and projects you want to exclude from the profile page.

      - Return to profile page + ${i18n().return_to_profile}

      @@ -15,7 +15,7 @@ Check those people you want to exclude from the profile page. <#list allSubclasses as sub> -

      ${sub}s

      +

      ${sub}

      <#assign peeps = people[sub]>
        @@ -36,7 +36,7 @@ Check those people you want to exclude from the profile page.

        - Return to profile page + ${i18n().return_to_profile}

        @@ -52,7 +52,7 @@ Check those publications you want to exclude from the profile page.

        - Return to profile page + ${i18n().return_to_profile}

        <#if !editConfiguration.pageData.webpages?has_content> -

        This individual currently has no web pages specified. Add a new web page by clicking on the button below.

        +

        ${i18n().has_no_webpages}

      diff --git a/productMods/templates/freemarker/edit/forms/menuManagement--classIntersections.ftl b/productMods/templates/freemarker/edit/forms/menuManagement--classIntersections.ftl index 357b2231..d719a7fc 100644 --- a/productMods/templates/freemarker/edit/forms/menuManagement--classIntersections.ftl +++ b/productMods/templates/freemarker/edit/forms/menuManagement--classIntersections.ftl @@ -5,12 +5,12 @@ <#assign enableInternalClass = '' /> <#assign disableClass = 'class="inline"' /> <#else> - <#assign enableInternalClass = '

      To enable this option, you must first select an institutional internal class for your instance

      ' /> + <#assign enableInternalClass = '

      ${i18n().enable_internal_class_one} ${i18n().internal_class} ${i18n().enable_internal_class_two}

      ' /> <#assign disableClass = 'class="disable inline" disabled="disabled"' /> checked role="input" /> - + ${enableInternalClass}
      \ No newline at end of file diff --git a/productMods/templates/freemarker/edit/forms/newIndividualForm.ftl b/productMods/templates/freemarker/edit/forms/newIndividualForm.ftl index 53c036c0..28dadfc1 100644 --- a/productMods/templates/freemarker/edit/forms/newIndividualForm.ftl +++ b/productMods/templates/freemarker/edit/forms/newIndividualForm.ftl @@ -19,20 +19,20 @@ -

      Create a new ${typeName}

      +

      ${i18n().create_new} ${typeName}

      <#if submissionErrors?has_content > ${stylesheets.add('')} diff --git a/productMods/templates/freemarker/edit/forms/organizationHasPositionHistory.ftl b/productMods/templates/freemarker/edit/forms/organizationHasPositionHistory.ftl index b526f42e..0e06ec6c 100644 --- a/productMods/templates/freemarker/edit/forms/organizationHasPositionHistory.ftl +++ b/productMods/templates/freemarker/edit/forms/organizationHasPositionHistory.ftl @@ -11,17 +11,17 @@ <#if editMode == "edit"> - <#assign titleVerb="Edit"> - <#assign submitButtonText="Save Changes"> + <#assign titleVerb="${i18n().edit_capitalized}"> + <#assign submitButtonText="${i18n().save_changes}"> <#assign disabledVal="disabled"> <#else> - <#assign titleVerb="Create"> - <#assign submitButtonText="Create Entry"> + <#assign titleVerb="${i18n().create_capitalized}"> + <#assign submitButtonText="${i18n().create_entry}"> <#assign disabledVal=""/> <#assign requiredHint = " *" /> -<#assign yearHint = "(YYYY)" /> +<#assign yearHint = "(${i18n().year_hint_format})" /> <#assign blankSentinel = "" /> <#if editConfigurationConstants?has_content && editConfigurationConstants?keys?seq_contains("BLANK_SENTINEL")> @@ -44,36 +44,36 @@ Set this flag on the input acUriReceiver where you would like this behavior to o <#assign submissionErrors = editSubmission.validationErrors/> -

      ${titleVerb} position history entry for ${editConfiguration.subjectName}

      +

      ${titleVerb} ${i18n().posn_history_entry_for} ${editConfiguration.subjectName}

      <#if submissionErrors?has_content> <#if personLabelDisplayValue?has_content > <#assign personLabelValue = personLabelDisplayValue /> \ No newline at end of file diff --git a/productMods/templates/freemarker/edit/forms/personHasAdvisingRelationship.ftl b/productMods/templates/freemarker/edit/forms/personHasAdvisingRelationship.ftl index 6ad55a4c..dbacbe8f 100644 --- a/productMods/templates/freemarker/edit/forms/personHasAdvisingRelationship.ftl +++ b/productMods/templates/freemarker/edit/forms/personHasAdvisingRelationship.ftl @@ -44,19 +44,19 @@ Set this flag on the input acUriReceiver where you would like this behavior to o <#if editMode == "edit"> - <#assign titleVerb="Edit"> - <#assign submitButtonText="Save Changes"> + <#assign titleVerb="${i18n().edit_capitalized}"> + <#assign submitButtonText="${i18n().save_changes}"> <#assign disabledVal="disabled"> <#else> - <#assign titleVerb="Create"> - <#assign submitButtonText="Create Entry"> + <#assign titleVerb="${i18n().create_capitalized}"> + <#assign submitButtonText="${i18n().create_entry}"> <#assign disabledVal=""/> <#assign requiredHint = " *" /> -<#assign yearHint = "(YYYY)" /> +<#assign yearHint = "(${i18n().year_hint_format})" /> -

      ${titleVerb} advising relationship entry for ${editConfiguration.subjectName}

      +

      ${titleVerb} ${i18n().advising_relationship_entry_for} ${editConfiguration.subjectName}

      <#--Display error messages if any--> <#if submissionErrors?has_content> @@ -68,23 +68,23 @@ Set this flag on the input acUriReceiver where you would like this behavior to o