i18n updates to javascript files and related templates

This commit is contained in:
tworrall 2013-06-11 12:25:01 -04:00
parent 57c962e82a
commit d74176f18d
40 changed files with 373 additions and 106 deletions

View file

@ -55,6 +55,9 @@ var proxyContextInfo = {
baseUrl: '${urls.base}',
ajaxUrl: '${formUrls.proxyAjax}'
};
var i18nStrings = {
selectEditorAndProfile: '${i18n().select_editor_and_profile}'
};
</script>
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/edit/forms/css/autocomplete.css" />',

View file

@ -41,6 +41,12 @@
<p class="requiredHint">* ${i18n().required_fields}</p>
</form>
</section>
<script type="text/javascript">
var i18nStrings = {
pleaseFormatEmail: '${i18n().please_format_email}',
enterValidAddress: '${i18n().or_enter_valid_address}'
};
</script>
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/templates/freemarker/edit/forms/css/customForm.css" />',
'<link rel="stylesheet" href="${urls.base}/css/jquery_plugins/jquery.realperson.css" />')}

View file

@ -51,6 +51,10 @@
reorderUrl: '${reorderUrl}',
positionPredicate: '${positionPredicate}'
};
var i18nStrings = {
dragDropMenus: '${i18n().drag_drop_to_reorder_menus}',
reorderingFailed: '${i18n().reordering_menus_failed}'
};
</script>
${scripts.add('<script type="text/javascript" src="${urls.base}/js/individual/menuManagement.js"></script>')}

View file

@ -69,6 +69,13 @@
var individualRdfUrl = '${rdfUrl}';
</script>
</#if>
<script>
var i18nStringsUriRdf = {
shareProfileUri: '${i18n().share_profile_uri}',
viewRDFProfile: '${i18n().view_profile_in_rdf}',
closeString: '${i18n().close}'
};
</script>
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/individual/individual.css" />')}

View file

@ -55,6 +55,9 @@ var customFormData = {
processingUrl: '${urls.base}/edit/primitiveRdfEdit',
individualUri: '${subjectUri!}'
};
var i18nStrings = {
errorProcessingLabels: '${i18n().error_processing_labels}'
};
</script>
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/js/jquery-ui/css/smoothness/jquery-ui-1.8.9.custom.css" />')}

View file

@ -188,6 +188,9 @@ var proxyContextInfo = {
baseUrl: '${urls.base}',
ajaxUrl: '${formUrls.ajax}'
};
var i18nStrings = {
selectEditorAndProfile: '${i18n().select_editor_and_profile}'
};
</script>
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/account/account.css" />')}

View file

@ -73,7 +73,11 @@
<p style="margin-top:10px">${i18n().use_capitalized} <a id="menuMgmtLink" href="${urls.base}/individual?uri=http%3A%2F%2Fvitro.mannlib.cornell.edu%2Fontologies%2Fdisplay%2F1.1%23DefaultMenu&switchToDisplayModel=true" title="">${i18n().menu_orering}</a> ${i18n().to_order_menu_items}</p>
</section>
<script>
var i18nStrings = {
confirmPageDeletion: '${i18n().confirm_page_deletion}'
};
</script>
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/js/jquery-ui/css/smoothness/jquery-ui-1.8.9.custom.css" />',
'<link rel="stylesheet" href="${urls.base}/css/menupage/pageList.css" />')}

View file

@ -71,6 +71,11 @@ ${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/browseClassGrou
defaultBrowseClassGroupUri: '${firstPopulatedClassGroup.uri!}',
defaultBrowseClassGroupCount: '${firstPopulatedClassGroup.individualCount!}'
};
var i18nStrings = {
browseAllString: '${i18n().browse_all}',
contentString: '${i18n().content}'
};
</script>
${scripts.add('<script type="text/javascript" src="${urls.base}/js/browseClassGroups.js"></script>')}

View file

@ -20,7 +20,7 @@
<#elseif property.localName == "organizationForPosition" && editable >
<h3 id="${property.localName}">${property.name} <@p.addLink property editable /> <@p.verboseDisplay property />
<a id="managePeopleLink" class="manageLinks" href="${urls.base}/managePeople?subjectUri=${subjectUri[1]!}" title="${i18n().manage_affiliated_people}" <#if verbose>style="padding-top:10px"</#if> >
${i18n().manage_affiliated_people}
${i18n().manage_affiliated_people_link}
</a>
</h3>
<#else>

View file

@ -29,6 +29,16 @@
</#if>
defaultBrowseVClassUri: firstBrowseClass //'${firstNonEmptyVClass}'
};
var i18nStrings = {
pageString: '${i18n().page}',
viewPageString: '${i18n().view_page}',
ofTheResults: '${i18n().of_the_results}',
thereAreNo: '${i18n().there_are_no}',
indNamesStartWith: '${i18n().individuals_names_starting_with}',
tryAnotherLetter: '${i18n().try_another_letter}',
indsInSystem: '${i18n().individuals_in_system}',
selectAnotherClass: '${i18n().select_another_class}'
};
</script>

View file

@ -32,6 +32,17 @@
</section>
<script language="javascript" type="text/javascript" >
var json = [${jsonTree!}];
var i18nStrings = {
hideSubclasses: '${i18n().hide_subclasses}',
showSubclasses: '${i18n().show_subclasses}',
classGroup: '${i18n().class_group_all_caps}',
ontologyString: '${i18n().ontology_capitalized}',
subclassesString: '${i18n().subclasses_capitalized}',
expandAll: '${i18n().expand_all}',
collapseAll: '${i18n().collapse_all}',
classesString: '${i18n().classes_capitalized}',
displayRank: '${i18n().display_rank}'
};
</script>
<script language="javascript" type="text/javascript" >

View file

@ -45,6 +45,20 @@
</section>
<script language="javascript" type="text/javascript" >
var json = [${jsonTree!}];
var i18nStrings = {
hideProperties: '${i18n().hide_properties}',
showProperties: '${i18n().show_properties}',
localNameString: '${i18n().local_name}',
groupString: '${i18n().group_capitalized}',
domainClass: '${i18n().domain_class}',
rangeClass: '${i18n().range_class}',
expandAll: '${i18n().expand_all}',
collapseAll: '${i18n().collapse_all}',
subProperties: '${i18n().sub_properties}',
displayRank: '${i18n().display_rank}',
subProperty: '${i18n().subproperty}',
propertiesString: '${i18n().properties_capitalized}'
};
</script>