Revision: 637
Author:
craig....@unc.edu
Date: Mon Jun 11 12:24:38 2012
Log: Added support for localization of GWT interface
Added spanish translations
http://code.google.com/p/hive-mrc/source/detail?r=637
Added:
/trunk/hive-web/HIVEMessages-i18n
/trunk/hive-web/HIVEMessages-i18n.launch
/trunk/hive-web/src/org/unc/hive/client/HIVEMessages.java
/trunk/hive-web/src/org/unc/hive/client/HIVEMessages.properties
/trunk/hive-web/src/org/unc/hive/client/HIVEMessages_es.properties
/trunk/hive-web/war/ConceptBrowser_es.html
/trunk/hive-web/war/WEB-INF/lib/snowball.jar
/trunk/hive-web/war/home_es.html
/trunk/hive-web/war/indexing_es.html
Modified:
/trunk/hive-web/src/org/unc/hive/ConceptBrowser.gwt.xml
/trunk/hive-web/src/org/unc/hive/client/ConceptBrowser.java
/trunk/hive-web/src/org/unc/hive/client/HomePage.java
/trunk/hive-web/war/WEB-INF/lib/hive-core.jar
=======================================
--- /dev/null
+++ /trunk/hive-web/HIVEMessages-i18n Mon Jun 11 12:24:38 2012
@@ -0,0 +1,4 @@
+#!/bin/sh
+APPDIR=`dirname $0`;
+java
-cp "$APPDIR/src:$APPDIR/bin:/Users/cwillis/dev/mrc/gwt-2.3.0/gwt-user.jar:/Users/cwillis/dev/mrc/gwt-2.3.0/gwt-dev.jar"
com.google.gwt.i18n.tools.I18NSync -out $APPDIR/src
org.unc.hive.client.HIVEMessages -createMessages ;
+
=======================================
--- /dev/null
+++ /trunk/hive-web/HIVEMessages-i18n.launch Mon Jun 11 12:24:38 2012
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
+<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH"
value="false"/>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE"
value="com.google.gwt.i18n.tools.I18NSync"/>
+<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
+<listEntry value="<?xml version="1.0"
encoding="UTF-8"?> <runtimeClasspathEntry
containerPath="org.eclipse.jdt.launching.JRE_CONTAINER"
javaProject="HIVE" path="1"
type="4"/> "/>
+<listEntry value="<?xml version="1.0"
encoding="UTF-8"?> <runtimeClasspathEntry
internalArchive="/HIVE/src" path="3"
type="2"/> "/>
+<listEntry value="<?xml version="1.0"
encoding="UTF-8"?> <runtimeClasspathEntry
id="org.eclipse.jdt.launching.classpathentry.defaultClasspath"> <memento
project="HIVE"/> </runtimeClasspathEntry> "/>
+<listEntry value="<?xml version="1.0"
encoding="UTF-8"?> <runtimeClasspathEntry
externalArchive="/Users/cwillis/dev/mrc/gwt-2.3.0/gwt-dev.jar"
path="3" type="2"/> "/>
+</listAttribute>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="
org.unc.hive.client.HIVEMessages -out src -createMessages"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR"
value="HIVE"/>
+<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables"
value="true"/>
+</launchConfiguration>
=======================================
--- /dev/null
+++ /trunk/hive-web/src/org/unc/hive/client/HIVEMessages.java Mon Jun 11
12:24:38 2012
@@ -0,0 +1,1070 @@
+package org.unc.hive.client;
+
+/**
+ * Interface to represent the messages contained in resource bundle:
+ *
/Users/cwillis/dev/mrc/new_workspace/hive-web/src/org/unc/hive/client/HIVEMessages.properties'.
+ */
+public interface HIVEMessages extends com.google.gwt.i18n.client.Messages {
+
+ /**
+ * Translated "Add".
+ *
+ * @return translated "Add"
+ */
+ @DefaultMessage("Add")
+ @Key("conceptbrowser.addButton")
+ String conceptbrowser_addButton();
+
+ /**
+ * Translated "All vocabularies are open.".
+ *
+ * @return translated "All vocabularies are open."
+ */
+ @DefaultMessage("All vocabularies are open.")
+ @Key("conceptbrowser.allVocabOpen")
+ String conceptbrowser_allVocabOpen();
+
+ /**
+ * Translated "A".
+ *
+ * @return translated "A"
+ */
+ @DefaultMessage("A")
+ @Key("conceptbrowser.alphaDefault")
+ String conceptbrowser_alphaDefault();
+
+ /**
+ *
Translated "A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,[0-9]".
+ *
+ * @return
translated "A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,[0-9]"
+ */
+
@DefaultMessage("A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,[0-9]")
+ @Key("conceptbrowser.alphaList")
+ String conceptbrowser_alphaList();
+
+ /**
+ * Translated "Alternative Label".
+ *
+ * @return translated "Alternative Label"
+ */
+ @DefaultMessage("Alternative Label")
+ @Key("conceptbrowser.altLabel")
+ String conceptbrowser_altLabel();
+
+ /**
+ * Translated "Are you sure to close <span>{0}</span>?".
+ *
+ * @return translated "Are you sure to close <span>{0}</span>?"
+ */
+ @DefaultMessage("Are you sure to close <span>{0}</span>?")
+ @Key("conceptbrowser.areYouSure")
+ String conceptbrowser_areYouSure(String arg0);
+
+ /**
+ * Translated "Broader Concepts".
+ *
+ * @return translated "Broader Concepts"
+ */
+ @DefaultMessage("Broader Concepts")
+ @Key("conceptbrowser.broaderConcepts")
+ String conceptbrowser_broaderConcepts();
+
+ /**
+ * Translated "Cancel".
+ *
+ * @return translated "Cancel"
+ */
+ @DefaultMessage("Cancel")
+ @Key("conceptbrowser.cancel")
+ String conceptbrowser_cancel();
+
+ /**
+ * Translated "On CANCEL, the default vocabulary will be opened.".
+ *
+ * @return translated "On CANCEL, the default vocabulary will be opened."
+ */
+ @DefaultMessage("On CANCEL, the default vocabulary will be opened.")
+ @Key("conceptbrowser.cancelDefault")
+ String conceptbrowser_cancelDefault();
+
+ /**
+ * Translated "Cannot load the information!".
+ *
+ * @return translated "Cannot load the information!"
+ */
+ @DefaultMessage("Cannot load the information!")
+ @Key("conceptbrowser.cannotLoadError")
+ String conceptbrowser_cannotLoadError();
+
+ /**
+ * Translated "Please choose vocabularies to open".
+ *
+ * @return translated "Please choose vocabularies to open"
+ */
+ @DefaultMessage("Please choose vocabularies to open")
+ @Key("conceptbrowser.chooseVocabulary")
+ String conceptbrowser_chooseVocabulary();
+
+ /**
+ * Translated "please enter query.".
+ *
+ * @return translated "please enter query."
+ */
+ @DefaultMessage("please enter query.")
+ @Key("conceptbrowser.enterQueryMessage")
+ String conceptbrowser_enterQueryMessage();
+
+ /**
+ * Translated "Filter the result".
+ *
+ * @return translated "Filter the result"
+ */
+ @DefaultMessage("Filter the result")
+ @Key("conceptbrowser.filter")
+ String conceptbrowser_filter();
+
+ /**
+ * Translated "Get all vocabularies failed.".
+ *
+ * @return translated "Get all vocabularies failed."
+ */
+ @DefaultMessage("Get all vocabularies failed.")
+ @Key("conceptbrowser.getVocabulariesError")
+ String conceptbrowser_getVocabulariesError();
+
+ /**
+ * Translated "Loading...".
+ *
+ * @return translated "Loading..."
+ */
+ @DefaultMessage("Loading...")
+ @Key("conceptbrowser.loading")
+ String conceptbrowser_loading();
+
+ /**
+ * Translated "Narrower Concepts".
+ *
+ * @return translated "Narrower Concepts"
+ */
+ @DefaultMessage("Narrower Concepts")
+ @Key("conceptbrowser.narrowerConcepts")
+ String conceptbrowser_narrowerConcepts();
+
+ /**
+ * Translated "This concept does not have alternative labels.".
+ *
+ * @return translated "This concept does not have alternative labels."
+ */
+ @DefaultMessage("This concept does not have alternative labels.")
+ @Key("conceptbrowser.noAltLabels")
+ String conceptbrowser_noAltLabels();
+
+ /**
+ * Translated "This concept does not have broader terms.".
+ *
+ * @return translated "This concept does not have broader terms."
+ */
+ @DefaultMessage("This concept does not have broader terms.")
+ @Key("conceptbrowser.noBroaders")
+ String conceptbrowser_noBroaders();
+
+ /**
+ * Translated "This concept does not have narrower terms.".
+ *
+ * @return translated "This concept does not have narrower terms."
+ */
+ @DefaultMessage("This concept does not have narrower terms.")
+ @Key("conceptbrowser.noNarrowers")
+ String conceptbrowser_noNarrowers();
+
+ /**
+ * Translated "This concept does not have related concepts.".
+ *
+ * @return translated "This concept does not have related concepts."
+ */
+ @DefaultMessage("This concept does not have related concepts.")
+ @Key("conceptbrowser.noRelated")
+ String conceptbrowser_noRelated();
+
+ /**
+ * Translated "This concept does not have scope notes.".
+ *
+ * @return translated "This concept does not have scope notes."
+ */
+ @DefaultMessage("This concept does not have scope notes.")
+ @Key("conceptbrowser.noScopeNotes")
+ String conceptbrowser_noScopeNotes();
+
+ /**
+ * Translated "No vocabularies are open.".
+ *
+ * @return translated "No vocabularies are open."
+ */
+ @DefaultMessage("No vocabularies are open.")
+ @Key("conceptbrowser.noVocabularies")
+ String conceptbrowser_noVocabularies();
+
+ /**
+ * Translated "No results.</span>".
+ *
+ * @return translated "No results.</span>"
+ */
+ @DefaultMessage("No results.</span>")
+ @Key("conceptbrowser.noresults")
+ String conceptbrowser_noresults();
+
+ /**
+ * Translated "OK".
+ *
+ * @return translated "OK"
+ */
+ @DefaultMessage("OK")
+ @Key("conceptbrowser.ok")
+ String conceptbrowser_ok();
+
+ /**
+ * Translated "Opened vocabularies:".
+ *
+ * @return translated "Opened vocabularies:"
+ */
+ @DefaultMessage("Opened vocabularies:")
+ @Key("conceptbrowser.openedVocabularies")
+ String conceptbrowser_openedVocabularies();
+
+ /**
+ * Translated "Preferred Label".
+ *
+ * @return translated "Preferred Label"
+ */
+ @DefaultMessage("Preferred Label")
+ @Key("conceptbrowser.prefLabel")
+ String conceptbrowser_prefLabel();
+
+ /**
+ * Translated "Related Concepts".
+ *
+ * @return translated "Related Concepts"
+ */
+ @DefaultMessage("Related Concepts")
+ @Key("conceptbrowser.relatedConceptsj")
+ String conceptbrowser_relatedConceptsj();
+
+ /**
+ * Translated "Your search for<span>{0}</span> returns following
concepts:".
+ *
+ * @return translated "Your search for<span>{0}</span> returns following
concepts:"
+ */
+ @DefaultMessage("Your search for<span>{0}</span> returns following
concepts:")
+ @Key("conceptbrowser.results")
+ String conceptbrowser_results(String arg0);
+
+ /**
+ * Translated "Scope Notes".
+ *
+ * @return translated "Scope Notes"
+ */
+ @DefaultMessage("Scope Notes")
+ @Key("conceptbrowser.scoreNotes")
+ String conceptbrowser_scoreNotes();
+
+ /**
+ * Translated "Search".
+ *
+ * @return translated "Search"
+ */
+ @DefaultMessage("Search")
+ @Key("conceptbrowser.searchButton")
+ String conceptbrowser_searchButton();
+
+ /**
+ * Translated "selected".
+ *
+ * @return translated "selected"
+ */
+ @DefaultMessage("selected")
+ @Key("conceptbrowser.selectedLabel")
+ String conceptbrowser_selectedLabel();
+
+ /**
+ * Translated "Server is down, please try again later.".
+ *
+ * @return translated "Server is down, please try again later."
+ */
+ @DefaultMessage("Server is down, please try again later.")
+ @Key("conceptbrowser.serverDownError")
+ String conceptbrowser_serverDownError();
+
+ /**
+ * Translated "Server is unresponse, please try again later.".
+ *
+ * @return translated "Server is unresponse, please try again later."
+ */
+ @DefaultMessage("Server is unresponse, please try again later.")
+ @Key("conceptbrowser.serverError")
+ String conceptbrowser_serverError();
+
+ /**
+ * Translated "URI".
+ *
+ * @return translated "URI"
+ */
+ @DefaultMessage("URI")
+ @Key("conceptbrowser.uri")
+ String conceptbrowser_uri();
+
+ /**
+ * Translated "View in SKOS".
+ *
+ * @return translated "View in SKOS"
+ */
+ @DefaultMessage("View in SKOS")
+ @Key("conceptbrowser.viewSKOS")
+ String conceptbrowser_viewSKOS();
+
+ /**
+ * Translated "List of Vocabularies at HIVE".
+ *
+ * @return translated "List of Vocabularies at HIVE"
+ */
+ @DefaultMessage("List of Vocabularies at HIVE")
+ @Key("conceptbrowser.vocabularyList")
+ String conceptbrowser_vocabularyList();
+
+ /**
+ * Translated "Yes".
+ *
+ * @return translated "Yes"
+ */
+ @DefaultMessage("Yes")
+ @Key("conceptbrowser.yes")
+ String conceptbrowser_yes();
+
+ /**
+ * Translated "Browse and search concepts in selected vocabularies.".
+ *
+ * @return translated "Browse and search concepts in selected
vocabularies."
+ */
+ @DefaultMessage("Browse and search concepts in selected vocabularies.")
+ @Key("homepage.browseDesc")
+ String homepage_browseDesc();
+
+ /**
+ * Translated "ConceptBrowser.html".
+ *
+ * @return translated "ConceptBrowser.html"
+ */
+ @DefaultMessage("ConceptBrowser.html")
+ @Key("homepage.conceptBrowserURL")
+ String homepage_conceptBrowserURL();
+
+ /**
+ * Translated "Concepts".
+ *
+ * @return translated "Concepts"
+ */
+ @DefaultMessage("Concepts")
+ @Key("homepage.conceptsLabel")
+ String homepage_conceptsLabel();
+
+ /**
+ * Translated "<a href: 'mailto:
hive-co...@googlegroups.com'>
Contact us</a>".
+ *
+ * @return translated "<a
href: 'mailto:
hive-co...@googlegroups.com'> Contact us</a>"
+ */
+ @DefaultMessage("<a href: 'mailto:
hive-co...@googlegroups.com'>
Contact us</a>")
+ @Key("homepage.contact")
+ String homepage_contact();
+
+ /**
+ * Translated "Please enter a query!".
+ *
+ * @return translated "Please enter a query!"
+ */
+ @DefaultMessage("Please enter a query!")
+ @Key("homepage.enterQuery")
+ String homepage_enterQuery();
+
+ /**
+ * Translated "Automatically extract document concepts for subject
metadata creation.".
+ *
+ * @return translated "Automatically extract document concepts for
subject metadata creation."
+ */
+ @DefaultMessage("Automatically extract document concepts for subject
metadata creation.")
+ @Key("homepage.indexDesc")
+ String homepage_indexDesc();
+
+ /**
+ * Translated "Index a Document".
+ *
+ * @return translated "Index a Document"
+ */
+ @DefaultMessage("Index a Document")
+ @Key("homepage.indexLabel")
+ String homepage_indexLabel();
+
+ /**
+ * Translated "indexing.html".
+ *
+ * @return translated "indexing.html"
+ */
+ @DefaultMessage("indexing.html")
+ @Key("homepage.indexingURL")
+ String homepage_indexingURL();
+
+ /**
+ * Translated "This HIVE system is for demo purposes and may change in
response to your feedback.".
+ *
+ * @return translated "This HIVE system is for demo purposes and may
change in response to your feedback."
+ */
+ @DefaultMessage("This HIVE system is for demo purposes and may change in
response to your feedback.")
+ @Key("
homepage.info")
+ String homepage_info();
+
+ /**
+ * Translated "Last Updated".
+ *
+ * @return translated "Last Updated"
+ */
+ @DefaultMessage("Last Updated")
+ @Key("homepage.lastUpdatedLabel")
+ String homepage_lastUpdatedLabel();
+
+ /**
+ * Translated "Cannot get the information!".
+ *
+ * @return translated "Cannot get the information!"
+ */
+ @DefaultMessage("Cannot get the information!")
+ @Key("homepage.loadStatsError")
+ String homepage_loadStatsError();
+
+ /**
+ * Translated "Unable to retrieve vocabularies.".
+ *
+ * @return translated "Unable to retrieve vocabularies."
+ */
+ @DefaultMessage("Unable to retrieve vocabularies.")
+ @Key("homepage.loadVocabError")
+ String homepage_loadVocabError();
+
+ /**
+ * Translated "Relationships".
+ *
+ * @return translated "Relationships"
+ */
+ @DefaultMessage("Relationships")
+ @Key("homepage.relationshipslabel")
+ String homepage_relationshipslabel();
+
+ /**
+ * Translated "Search".
+ *
+ * @return translated "Search"
+ */
+ @DefaultMessage("Search")
+ @Key("homepage.searchButton")
+ String homepage_searchButton();
+
+ /**
+ * Translated "Search a Concept".
+ *
+ * @return translated "Search a Concept"
+ */
+ @DefaultMessage("Search a Concept")
+ @Key("homepage.searchLabel")
+ String homepage_searchLabel();
+
+ /**
+ * Translated "Vocabulary Statistics".
+ *
+ * @return translated "Vocabulary Statistics"
+ */
+ @DefaultMessage("Vocabulary Statistics")
+ @Key("homepage.stats")
+ String homepage_stats();
+
+ /**
+ * Translated "Upload".
+ *
+ * @return translated "Upload"
+ */
+ @DefaultMessage("Upload")
+ @Key("homepage.uploadButton")
+ String homepage_uploadButton();
+
+ /**
+ * Translated "Vocabulary".
+ *
+ * @return translated "Vocabulary"
+ */
+ @DefaultMessage("Vocabulary")
+ @Key("homepage.vocabLabel")
+ String homepage_vocabLabel();
+
+ /**
+ * Translated "Indexing algorithm".
+ *
+ * @return translated "Indexing algorithm"
+ */
+ @DefaultMessage("Indexing algorithm")
+ @Key("indexer.algorithm")
+ String indexer_algorithm();
+
+ /**
+ * Translated "Algorithm used when indexing a document or website.".
+ *
+ * @return translated "Algorithm used when indexing a document or
website."
+ */
+ @DefaultMessage("Algorithm used when indexing a document or website.")
+ @Key("indexer.algorithmDesc")
+ String indexer_algorithmDesc();
+
+ /**
+ * Translated "All vocabularies have been selected.".
+ *
+ * @return translated "All vocabularies have been selected."
+ */
+ @DefaultMessage("All vocabularies have been selected.")
+ @Key("indexer.allVocabsSelected")
+ String indexer_allVocabsSelected();
+
+ /**
+ * Translated "Alternative Label".
+ *
+ * @return translated "Alternative Label"
+ */
+ @DefaultMessage("Alternative Label")
+ @Key("indexer.altLabel")
+ String indexer_altLabel();
+
+ /**
+ * Translated "Broader Concepts".
+ *
+ * @return translated "Broader Concepts"
+ */
+ @DefaultMessage("Broader Concepts")
+ @Key("indexer.broaderConcepts")
+ String indexer_broaderConcepts();
+
+ /**
+ * Translated "Cancel".
+ *
+ * @return translated "Cancel"
+ */
+ @DefaultMessage("Cancel")
+ @Key("indexer.cancel")
+ String indexer_cancel();
+
+ /**
+ * Translated "Concept Selected".
+ *
+ * @return translated "Concept Selected"
+ */
+ @DefaultMessage("Concept Selected")
+ @Key("indexer.conceptSelected")
+ String indexer_conceptSelected();
+
+ /**
+ * Translated "Concepts Selected".
+ *
+ * @return translated "Concepts Selected"
+ */
+ @DefaultMessage("Concepts Selected")
+ @Key("indexer.conceptsSelected")
+ String indexer_conceptsSelected();
+
+ /**
+ * Translated "Confirm".
+ *
+ * @return translated "Confirm"
+ */
+ @DefaultMessage("Confirm")
+ @Key("indexer.confirm")
+ String indexer_confirm();
+
+ /**
+ * Translated "Index differences only".
+ *
+ * @return translated "Index differences only"
+ */
+ @DefaultMessage("Index differences only")
+ @Key("indexer.diffOnly")
+ String indexer_diffOnly();
+
+ /**
+ * Translated "Check this checkbox to index only the differences between
multiple pages in a multipage site. This will reduce the effect of repeated
components such as headers and menus.".
+ *
+ * @return translated "Check this checkbox to index only the differences
between multiple pages in a multipage site. This will reduce the effect of
repeated components such as headers and menus."
+ */
+ @DefaultMessage("Check this checkbox to index only the differences
between multiple pages in a multipage site. This will reduce the effect of
repeated components such as headers and menus.")
+ @Key("indexer.diffOnlyTip")
+ String indexer_diffOnlyTip();
+
+ /**
+ * Translated "Do you really want to close <span style : 'color:
#3399FF'>{0}</span>".
+ *
+ * @return translated "Do you really want to close <span
style : 'color: #3399FF'>{0}</span>"
+ */
+ @DefaultMessage("Do you really want to close <span style : 'color:
#3399FF'>{0}</span>")
+ @Key("indexer.doYouReally")
+ String indexer_doYouReally(String arg0);
+
+ /**
+ * Translated "<span>OR</span> Enter the URL".
+ *
+ * @return translated "<span>OR</span> Enter the URL"
+ */
+ @DefaultMessage("<span>OR</span> Enter the URL")
+ @Key("indexer.enterURL")
+ String indexer_enterURL();
+
+ /**
+ * Translated "An error has occurred. Please try again.".
+ *
+ * @return translated "An error has occurred. Please try again."
+ */
+ @DefaultMessage("An error has occurred. Please try again.")
+ @Key("indexer.errorMessage")
+ String indexer_errorMessage();
+
+ /**
+ * Translated "Extracted Concepts Cloud".
+ *
+ * @return translated "Extracted Concepts Cloud"
+ */
+ @DefaultMessage("Extracted Concepts Cloud")
+ @Key("indexer.extractedConceptsLabel")
+ String indexer_extractedConceptsLabel();
+
+ /**
+ * Translated "MODS/XML".
+ *
+ * @return translated "MODS/XML"
+ */
+ @DefaultMessage("MODS/XML")
+ @Key("indexer.foramtMODS")
+ String indexer_foramtMODS();
+
+ /**
+ * Translated "Dublin Core".
+ *
+ * @return translated "Dublin Core"
+ */
+ @DefaultMessage("Dublin Core")
+ @Key("indexer.formatDC")
+ String indexer_formatDC();
+
+ /**
+ * Translated "You can select multiple concepts from the cloud and view
in the following formats: SKOS RDF/XML, SKOS N triples, Dublin Core,
MARC/XML, and MODS/XML.".
+ *
+ * @return translated "You can select multiple concepts from the cloud
and view in the following formats: SKOS RDF/XML, SKOS N triples, Dublin
Core, MARC/XML, and MODS/XML."
+ */
+ @DefaultMessage("You can select multiple concepts from the cloud and
view in the following formats: SKOS RDF/XML, SKOS N triples, Dublin Core,
MARC/XML, and MODS/XML.")
+ @Key("indexer.formatDesc")
+ String indexer_formatDesc();
+
+ /**
+ * Translated "MARC/XML".
+ *
+ * @return translated "MARC/XML"
+ */
+ @DefaultMessage("MARC/XML")
+ @Key("indexer.formatMARC")
+ String indexer_formatMARC();
+
+ /**
+ * Translated "SKOS - N Triples".
+ *
+ * @return translated "SKOS - N Triples"
+ */
+ @DefaultMessage("SKOS - N Triples")
+ @Key("indexer.formatNT")
+ String indexer_formatNT();
+
+ /**
+ * Translated "SKOS - RDF/XML".
+ *
+ * @return translated "SKOS - RDF/XML"
+ */
+ @DefaultMessage("SKOS - RDF/XML")
+ @Key("indexer.formatSkos")
+ String indexer_formatSkos();
+
+ /**
+ * Translated "Hide advanced settings".
+ *
+ * @return translated "Hide advanced settings"
+ */
+ @DefaultMessage("Hide advanced settings")
+ @Key("indexer.hideAdvancedSettings")
+ String indexer_hideAdvancedSettings();
+
+ /**
+ * Translated "HIVE Automatic Concepts Extractor".
+ *
+ * @return translated "HIVE Automatic Concepts Extractor"
+ */
+ @DefaultMessage("HIVE Automatic Concepts Extractor")
+ @Key("indexer.indexerLabel")
+ String indexer_indexerLabel();
+
+ /**
+ * Translated "Minimum number of occurrences".
+ *
+ * @return translated "Minimum number of occurrences"
+ */
+ @DefaultMessage("Minimum number of occurrences")
+ @Key("indexer.minOccur")
+ String indexer_minOccur();
+
+ /**
+ * Translated "The minimum number of times a term or phrase must occur
in the document to be considered.".
+ *
+ * @return translated "The minimum number of times a term or phrase must
occur in the document to be considered."
+ */
+ @DefaultMessage("The minimum number of times a term or phrase must occur
in the document to be considered.")
+ @Key("indexer.minOccurTip")
+ String indexer_minOccurTip();
+
+ /**
+ * Translated "Narrower Concepts".
+ *
+ * @return translated "Narrower Concepts"
+ */
+ @DefaultMessage("Narrower Concepts")
+ @Key("indexer.narrowerConcepts")
+ String indexer_narrowerConcepts();
+
+ /**
+ * Translated "This concept does not have narrower terms.".
+ *
+ * @return translated "This concept does not have narrower terms."
+ */
+ @DefaultMessage("This concept does not have narrower terms.")
+ @Key("indexer.narrowers")
+ String indexer_narrowers();
+
+ /**
+ * Translated "This concept does not have alternative labels.".
+ *
+ * @return translated "This concept does not have alternative labels."
+ */
+ @DefaultMessage("This concept does not have alternative labels.")
+ @Key("indexer.noAltLabels")
+ String indexer_noAltLabels();
+
+ /**
+ * Translated "This concept does not have broader terms.".
+ *
+ * @return translated "This concept does not have broader terms."
+ */
+ @DefaultMessage("This concept does not have broader terms.")
+ @Key("indexer.noBroaders")
+ String indexer_noBroaders();
+
+ /**
+ * Translated "This concept does not have related concepts.".
+ *
+ * @return translated "This concept does not have related concepts."
+ */
+ @DefaultMessage("This concept does not have related concepts.")
+ @Key("indexer.noRelateds")
+ String indexer_noRelateds();
+
+ /**
+ * Translated "This concept does not have scope notes.".
+ *
+ * @return translated "This concept does not have scope notes."
+ */
+ @DefaultMessage("This concept does not have scope notes.")
+ @Key("indexer.noScopeNotes")
+ String indexer_noScopeNotes();
+
+ /**
+ * Translated "Number of hops".
+ *
+ * @return translated "Number of hops"
+ */
+ @DefaultMessage("Number of hops")
+ @Key("indexer.numHops")
+ String indexer_numHops();
+
+ /**
+ * Translated "Maximum number of links to follow when indexing a
website. Set to 0 to index the first page only. Increasing this value will
increase indexing time.".
+ *
+ * @return translated "Maximum number of links to follow when indexing a
website. Set to 0 to index the first page only. Increasing this value will
increase indexing time."
+ */
+ @DefaultMessage("Maximum number of links to follow when indexing a
website. Set to 0 to index the first page only. Increasing this value will
increase indexing time.")
+ @Key("indexer.numHopsDesc")
+ String indexer_numHopsDesc();
+
+ /**
+ * Translated "Maximum number of terms".
+ *
+ * @return translated "Maximum number of terms"
+ */
+ @DefaultMessage("Maximum number of terms")
+ @Key("indexer.numTerms")
+ String indexer_numTerms();
+
+ /**
+ * Translated "Maximum number of terms to suggest.".
+ *
+ * @return translated "Maximum number of terms to suggest."
+ */
+ @DefaultMessage("Maximum number of terms to suggest.")
+ @Key("indexer.numTermsTip")
+ String indexer_numTermsTip();
+
+ /**
+ * Translated "HIVE automatically extracts concepts from a document or
URL based on selected vocabularies.".
+ *
+ * @return translated "HIVE automatically extracts concepts from a
document or URL based on selected vocabularies."
+ */
+ @DefaultMessage("HIVE automatically extracts concepts from a document or
URL based on selected vocabularies.")
+ @Key("indexer.pageDesc")
+ String indexer_pageDesc();
+
+ /**
+ * Translated "Powered by".
+ *
+ * @return translated "Powered by"
+ */
+ @DefaultMessage("Powered by")
+ @Key("indexer.poweredBy")
+ String indexer_poweredBy();
+
+ /**
+ * Translated "Preferred Label".
+ *
+ * @return translated "Preferred Label"
+ */
+ @DefaultMessage("Preferred Label")
+ @Key("indexer.prefLabel")
+ String indexer_prefLabel();
+
+ /**
+ * Translated "Processing...".
+ *
+ * @return translated "Processing..."
+ */
+ @DefaultMessage("Processing...")
+ @Key("indexer.processingMessagej")
+ String indexer_processingMessagej();
+
+ /**
+ * Translated "Related Concepts".
+ *
+ * @return translated "Related Concepts"
+ */
+ @DefaultMessage("Related Concepts")
+ @Key("indexer.relatedConcepts")
+ String indexer_relatedConcepts();
+
+ /**
+ * Translated "Scope Notes".
+ *
+ * @return translated "Scope Notes"
+ */
+ @DefaultMessage("Scope Notes")
+ @Key("indexer.scopeNotes")
+ String indexer_scopeNotes();
+
+ /**
+ * Translated "Select".
+ *
+ * @return translated "Select"
+ */
+ @DefaultMessage("Select")
+ @Key("indexer.selectButton")
+ String indexer_selectButton();
+
+ /**
+ * Translated "Please select at least one concept.".
+ *
+ * @return translated "Please select at least one concept."
+ */
+ @DefaultMessage("Please select at least one concept.")
+ @Key("indexer.selectConceptMessage")
+ String indexer_selectConceptMessage();
+
+ /**
+ * Translated "Select Concepts to ".
+ *
+ * @return translated "Select Concepts to "
+ */
+ @DefaultMessage("Select Concepts to ")
+ @Key("indexer.selectConcepts")
+ String indexer_selectConcepts();
+
+ /**
+ * Translated "Select Format:".
+ *
+ * @return translated "Select Format:"
+ */
+ @DefaultMessage("Select Format:")
+ @Key("indexer.selectFormat")
+ String indexer_selectFormat();
+
+ /**
+ * Translated "Select vocabulary source ".
+ *
+ * @return translated "Select vocabulary source "
+ */
+ @DefaultMessage("Select vocabulary source ")
+ @Key("indexer.selectVocab")
+ String indexer_selectVocab();
+
+ /**
+ * Translated "Please select at least one vocabulary.".
+ *
+ * @return translated "Please select at least one vocabulary."
+ */
+ @DefaultMessage("Please select at least one vocabulary.")
+ @Key("indexer.selectVocabMessage")
+ String indexer_selectVocabMessage();
+
+ /**
+ * Translated "Show advanced settings".
+ *
+ * @return translated "Show advanced settings"
+ */
+ @DefaultMessage("Show advanced settings")
+ @Key("indexer.showAdvancedSettings")
+ String indexer_showAdvancedSettings();
+
+ /**
+ * Translated "Start Processing".
+ *
+ * @return translated "Start Processing"
+ */
+ @DefaultMessage("Start Processing")
+ @Key("indexer.startButton")
+ String indexer_startButton();
+
+ /**
+ * Translated "Start Over".
+ *
+ * @return translated "Start Over"
+ */
+ @DefaultMessage("Start Over")
+ @Key("indexer.startOver")
+ String indexer_startOver();
+
+ /**
+ * Translated "Step 1: Select a vocabulary".
+ *
+ * @return translated "Step 1: Select a vocabulary"
+ */
+ @DefaultMessage("Step 1: Select a vocabulary")
+ @Key("indexer.step1")
+ String indexer_step1();
+
+ /**
+ * Translated "Step 2: Upload a document <span>OR</span> provide the URL
for a document".
+ *
+ * @return translated "Step 2: Upload a document <span>OR</span> provide
the URL for a document"
+ */
+ @DefaultMessage("Step 2: Upload a document <span>OR</span> provide the
URL for a document")
+ @Key("indexer.step2")
+ String indexer_step2();
+
+ /**
+ * Translated "Step 3: Click Start Processing button".
+ *
+ * @return translated "Step 3: Click Start Processing button"
+ */
+ @DefaultMessage("Step 3: Click Start Processing button")
+ @Key("indexer.step3")
+ String indexer_step3();
+
+ /**
+ * Translated "Upload".
+ *
+ * @return translated "Upload"
+ */
+ @DefaultMessage("Upload")
+ @Key("indexer.uploadButton")
+ String indexer_uploadButton();
+
+ /**
+ * Translated "Upload a document".
+ *
+ * @return translated "Upload a document"
+ */
+ @DefaultMessage("Upload a document")
+ @Key("indexer.uploadLabel")
+ String indexer_uploadLabel();
+
***The diff for this file has been truncated for email.***
=======================================
--- /dev/null
+++ /trunk/hive-web/src/org/unc/hive/client/HIVEMessages.properties Mon Jun
11 12:24:38 2012
@@ -0,0 +1,131 @@
+#sample message property to be translated in language specific versions of
this property file
+#this message takes a single argument, which will replace the {0}
+#welcome: Welcome. The current time is {0}.
+
+
+# Concept Browser strings
+conceptbrowser.results: Your search for<span>{0}</span> returns following
concepts:
+conceptbrowser.alphaList:
A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,[0-9]
+conceptbrowser.alphaDefault: A
+conceptbrowser.loading: Loading...
+conceptbrowser.getVocabulariesError: Get all vocabularies failed.
+conceptbrowser.serverError: Server is unresponse, please try again later.
+conceptbrowser.noresults: No results.</span>
+conceptbrowser.chooseVocabulary: Please choose vocabularies to open
+conceptbrowser.vocabularyList: List of Vocabularies at HIVE
+conceptbrowser.ok: OK
+conceptbrowser.cancel: CANCEL
+conceptbrowser.cancelDefault: On CANCEL, the default vocabulary will be
opened.
+conceptbrowser.openedVocabularies: Opened vocabularies:
+conceptbrowser.filter: Filter the result
+conceptbrowser.enterQueryMessage: Please enter a query.
+conceptbrowser.searchButton: Search
+conceptbrowser.enterQueryMessage: please enter query.
+conceptbrowser.addButton: Add
+conceptbrowser.selectedLabel: selected
+conceptbrowser.cannotLoadError: Cannot load the information!
+conceptbrowser.serverDownError: Server is down, please try again later.
+conceptbrowser.yes: Yes
+conceptbrowser.cancel: Cancel
+conceptbrowser.areYouSure: Are you sure to close <span>{0}</span>?
+conceptbrowser.noVocabularies: No vocabularies are open.
+conceptbrowser.viewSKOS: View in SKOS
+conceptbrowser.prefLabel: Preferred Label
+conceptbrowser.uri: URI
+conceptbrowser.altLabel: Alternative Label
+conceptbrowser.broaderConcepts: Broader Concepts
+conceptbrowser.narrowerConcepts: Narrower Concepts
+conceptbrowser.relatedConceptsj: Related Concepts
+conceptbrowser.scoreNotes: Scope Notes
+conceptbrowser.noAltLabels: This concept does not have alternative labels.
+conceptbrowser.noBroaders: This concept does not have broader terms.
+conceptbrowser.noNarrowers: This concept does not have narrower terms.
+conceptbrowser.noRelated: This concept does not have related concepts.
+conceptbrowser.noScopeNotes: This concept does not have scope notes.
+conceptbrowser.allVocabOpen: All vocabularies are open.
+
+# Home Page Strings
+homepage.stats: Vocabulary Statistics
+homepage.searchLabel: Search a Concept
+homepage.indexLabel: Index a Document
+homepage.enterQuery: Please enter a query!
+homepage.searchButton: Search
+homepage.browseDesc: Browse and search concepts in selected vocabularies.
+homepage.indexDesc: Automatically extract document concepts for subject
metadata creation.
+homepage.uploadButton: Upload
+
homepage.info: This HIVE system is for demo purposes and may change in
response to your feedback.
+homepage.contact: <a href: 'mailto:
hive-co...@googlegroups.com'>
Contact us</a>
+homepage.loadStatsError: Cannot get the information!
+homepage.loadVocabError: Unable to retrieve vocabularies.
+homepage.vocabLabel: Vocabulary
+homepage.conceptsLabel: Concepts
+homepage.relationshipslabel: Relationships
+homepage.lastUpdatedLabel: Last Updated
+homepage.conceptBrowserURL: ConceptBrowser.html
+homepage.indexingURL: indexing.html
+
+# Indexer strings
+indexer.startOver: Start Over
+indexer.selectButton: Select
+indexer.allVocabsSelected: All vocabularies have been selected.
+indexer.uploadingMessage: Uploading...
+indexer.pageDesc: HIVE automatically extracts concepts from a document or
URL based on selected vocabularies.
+indexer.step1: Step 1: Select a vocabulary
+indexer.step2: Step 2: Upload a document <span>OR</span> provide the URL
for a document
+indexer.step3: Step 3: Click Start Processing button
+indexer.indexerLabel: HIVE Automatic Concepts Extractor
+indexer.selectVocab: Select vocabulary source
+indexer.uploadButton: Upload
+indexer.uploadMessage: Please choose a file to upload.
+indexer.uploadLabel: Upload a document
+indexer.poweredBy: Powered by
+indexer.enterURL: <span>OR</span> Enter the URL
+indexer.showAdvancedSettings: Show advanced settings
+indexer.hideAdvancedSettings: Hide advanced settings
+indexer.algorithm: Indexing algorithm
+indexer.algorithmDesc: Algorithm used when indexing a document or website.
+indexer.numHops: Number of hops
+indexer.numHopsDesc: Maximum number of links to follow when indexing a
website. Set to 0 to index the first page only. Increasing this value will
increase indexing time.
+indexer.numTerms: Maximum number of terms
+indexer.numTermsTip: Maximum number of terms to suggest.
+indexer.minOccur: Minimum number of occurrences
+indexer.minOccurTip: The minimum number of times a term or phrase must
occur in the document to be considered.
+indexer.diffOnly: Index differences only
+indexer.diffOnlyTip: Check this checkbox to index only the differences
between multiple pages in a multipage site. This will reduce the effect of
repeated components such as headers and menus.
+indexer.startButton: Start Processing
+indexer.selectVocabMessage: Please select at least one vocabulary.
+indexer.uploadOrUrlError: You can only upload a document or enter a URL,
but not both.
+indexer.uploadOrUrlMessage Please upload a document or enter a URL (use
http://).
+indexer.processingMessagej: Processing...
+indexer.errorMessage: An error has occurred. Please try again.
+indexer.extractedConceptsLabel: Extracted Concepts Cloud
+indexer.formatDesc: You can select multiple concepts from the cloud and
view in the following formats: SKOS RDF/XML, SKOS N triples, Dublin Core,
MARC/XML, and MODS/XML.
+indexer.selectConcepts: Select Concepts to<br>View in multiple formats
+indexer.confirm: Confirm
+indexer.yes: Yes
+indexer.cancel Cancel
+indexer.doYouReally: Do you really want to close <span style : 'color:
#3399FF'>{0}</span>
+indexer.selectConceptMessage: Please select at least one concept.
+indexer.selectFormat: Select Format:
+indexer.formatSkos: SKOS - RDF/XML
+indexer.formatNT: SKOS - N Triples
+indexer.formatDC: Dublin Core
+indexer.foramtMODS: MODS/XML
+indexer.formatMARC: MARC/XML
+indexer.viewSKOS: View in SKOS
+indexer.prefLabel: Preferred Label
+indexer.uri: URI
+indexer.altLabel: Alternative Label
+indexer.noAltLabels:This concept does not have alternative labels.
+indexer.broaderConcepts: Broader Concepts
+indexer.noBroaders: This concept does not have broader terms.
+indexer.narrowerConcepts: Narrower Concepts
+indexer.narrowers: This concept does not have narrower terms.
+indexer.relatedConcepts: Related Concepts
+indexer.noRelateds: This concept does not have related concepts.
+indexer.scopeNotes: Scope Notes
+indexer.noScopeNotes: This concept does not have scope notes.
+indexer.selectConcepts: Select Concepts to
+indexer.conceptSelected: Concept Selected
+indexer.conceptsSelected: Concepts Selected
+indexer.viewMultipleFormats: View in multiple formats
=======================================
--- /dev/null
+++ /trunk/hive-web/src/org/unc/hive/client/HIVEMessages_es.properties Mon
Jun 11 12:24:38 2012
@@ -0,0 +1,127 @@
+#sample message property to be translated in language specific versions of
this property file
+#this message takes a single argument, which will replace the {0}
+#welcome: Welcome. The current time is {0}.
+
+
+# Concept Browser strings
+conceptbrowser.results: Su búsqueda: <span>{0}</span> ofrece como
resultado los siguientes conceptos:
+conceptbrowser.alphaList:
A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,[0-9]
+conceptbrowser.alphaDefault: A
+conceptbrowser.loading: Cargando...
+conceptbrowser.getVocabulariesError: No ha sido posible seleccionar ningún
vocabulario.
+conceptbrowser.serverError: El servidor no responde. Por favor, inténtelo
de nuevo más tarde.
+conceptbrowser.noresults: No hay resultados.</span>
+conceptbrowser.chooseVocabulary: Por favor, elija un vocabulario.
+conceptbrowser.vocabularyList: Lista de vocabularios en HIVE-ES
+conceptbrowser.ok: OK
+conceptbrowser.cancel: CANCELAR
+conceptbrowser.cancelDefault: Si pulsa CANCELAR, el sistema elegirá el
vocabulario por defecto.
+conceptbrowser.openedVocabularies: Vocabularios elegidos:
+conceptbrowser.filter: Filtrar a partir de los resultados obtenidos
+conceptbrowser.enterQueryMessage: Por favor, realice una búsqueda.
+conceptbrowser.searchButton: Buscar
+conceptbrowser.enterQueryMessage: Por favor, realice una consulta.
+conceptbrowser.addButton: Añadir
+conceptbrowser.selectedLabel: seleccionado
+conceptbrowser.cannotLoadError: No se puede cargar la información
+conceptbrowser.serverDownError: El servidor no está disponible. Por favor,
inténtelo má tarde.
+conceptbrowser.yes: Sí
+conceptbrowser.cancel: Cancelar
+conceptbrowser.areYouSure: ¿Está seguro de cerrar <span>{0}</span>?
+conceptbrowser.noVocabularies: No se ha elegido ningún vocabulario.
+conceptbrowser.viewSKOS: Ver en SKOS
+conceptbrowser.prefLabel: Término preferido
+conceptbrowser.uri: URI
+conceptbrowser.altLabel: Términos alternativos
+conceptbrowser.broaderConcepts: Términos genéricos
+conceptbrowser.narrowerConcepts: Términos específicos
+conceptbrowser.relatedConceptsj: Términos relacionados
+conceptbrowser.scoreNotes: Notas de alcance
+conceptbrowser.noAltLabels: Este concepto no tiene términos alternativos.
+conceptbrowser.noBroaders: Este concepto no tiene términos genéricos.
+conceptbrowser.noNarrowers: Este concepto no tiene términos específicos.
+conceptbrowser.noRelated: Este concepto no tiene términos relacionados.
+conceptbrowser.noScopeNotes: Este concepto no tiene notas de alcance.
+conceptbrowser.allVocabOpen: Todos los vocabularios han sido elegidos.
+
+# Home Page Strings
+homepage.stats: Estadísticas sobre los vocabularios.
+homepage.searchLabel: Buscar un concepto
+homepage.indexLabel: Indizar un documento
+homepage.enterQuery: Por favor, introduzca una consulta.
+homepage.searchButton: Buscar
+homepage.browseDesc: Navegar y buscar entre los conceptos de los
vocabularios seleccionados.
+homepage.indexDesc: Extraer automáticamente conceptos de los documentos
para la creación de metadatos temáticos.
+homepage.uploadButton: Cargar
+
homepage.info: El sistema HIVE-ES está en pruebas y puede cambiar en
respuesta a su interacción con el mismo.
+homepage.contact: <a href: '
http://klingon.uc3m.es/hive-es/wiki'> Contacte
con la comunidad HIVE</a>
+homepage.loadStatsError: No es posible ofrecer la informació que solicita.
+homepage.loadVocabError: No es posible acceder a los vocabularios.
+homepage.vocabLabel: Vocabulario
+homepage.conceptsLabel: Conceptos
+homepage.relationshipslabel: Relaciones
+homepage.lastUpdatedLabel: última actualización
+
+# Indexer strings
+indexer.startOver: Volver a empezar
+indexer.selectButton: Seleccionar
+indexer.allVocabsSelected: Todos los vocabularios han sido seleccionados.
+indexer.uploadingMessage: Cargando...
+indexer.pageDesc: HIVE extrae automáticamente conceptos basados en un
docuemnto o URI, empleando uno o varios de los vocabularios ofrecidos.
+indexer.step1: Paso 1: Elija un vocabulario.
+indexer.step2: Paso 2: Cargue un documento <span>O</span> indique la URL
de un documento
+indexer.step3: Paso 3: Pulse el botón "Iniciar proceso"
+indexer.indexerLabel: Extractor automático de procesos de HIVE-ES
+indexer.selectVocab: Elija un vocabulario
+indexer.uploadButton: Cargar
+indexer.uploadMessage: Por favor, elija el fichero que quiere subir al
sistema.
+indexer.uploadLabel: Cargar
+indexer.poweredBy: Ofrecido por
+indexer.enterURL: <span>O</span> Introduzca la URL
+indexer.showAdvancedSettings: Mostrar opciones avanzadas
+indexer.hideAdvancedSettings: Ocultar opciones avanzadas
+indexer.algorithm: Algoritmo de indización
+indexer.algorithmDesc: Algoritmo empleado para indizar un documento o un
sitio web.
+indexer.numHops: Número de niveles de profundidad
+indexer.numHopsDesc: Máximo nú de enlaces a seguir cuando se indiza un
sitio web. Seleccione "0" para indizar ú la página principal. Un valor más
alto incrementará el tiempo necesario para la indización.
+indexer.numTerms: Número máximo de términos
+indexernumTermsTip: Número máximo de términos que se sugerirán
+indexer.diffOnly: Indizar solo las diferencias
+indexer.diffOnlyTip: Seleccione esta opción para indizar solo las
diferencias entre múltiples páginas en un sitio. Esta opción reducirá el
efecto de componentes repetidos en las páginas, como los títulos y los menús
+indexer.startButton: Comenzar el proceso
+indexer.selectVocabMessage: Por favor, seleccione al menos un vocabulario.
+indexer.uploadOrUrlError: Solo puede cargar un documento o introducir una
URL, pero no ambas opciones.
+indexer.uploadOrUrlMessage Por favor, cargue un documento o introduzca una
URL (use http://)
+indexer.processingMessagej: Procesando...
+indexer.errorMessage: Ha ocurrido un error. Por favor, inténtelo de nuevo
más tarde.
+indexer.extractedConceptsLabel: Nube de conceptos extraídos
+indexer.formatDesc: Puede seleccionar múltiples conceptos de la nube, y
verlos en los siguientes formatos: SKOS RDF/XML, SKOS N triples, Dublin
Core, MARC/XML, y MODS/XML.
+indexer.selectConcepts: Selecciones conceptos para <br>mostrarlos en
múltiples formatos
+indexer.confirm: Confirmar
+indexer.yes: Sí
+indexer.cancel Cancelar
+indexer.doYouReally: ¿Realmente quiere cerrar <span style : 'color:
#3399FF'>{0}</span>
+indexer.selectConceptMessage: Por favor, seleccione al menos un concepto.
+indexer.selectFormat: Seleccione un formato:
+indexer.formatSkos: SKOS - RDF/XML
+indexer.formatNT: SKOS - N Triples
+indexer.formatDC: Dublin Core
+indexer.foramtMODS: MODS/XML
+indexer.formatMARC: MARC/XML
+indexer.viewSKOS: Ver en SKOS
+indexer.prefLabel: Término preferido
+indexer.uri: URI
+indexer.altLabel: Términos alternativos
+indexer.noAltLabels: Este concepto no tiene términos alternativos.
+indexer.broaderConcepts: Términos genéricos
+indexer.noBroaders: Este concepto no tiene términos genéricos.
+indexer.narrowerConcepts: Términos específicos
+indexer.narrowers: Este concepto no tiene términos específicos
+indexer.relatedConcepts: Términos relacionados
+indexer.noRelateds: Este concepto no tiene términos relacionados.
+indexer.scopeNotes: Notas de alcance
+indexer.noScopeNotes: Este concepto no tiene notas de alcance.
+indexer.selectConcepts: Seleccionar conceptos sobre
+indexer.conceptSelected: Concepto seleccionado
+indexer.conceptsSelected: Conceptos seleccionados
+indexer.viewMultipleFormats: Ver en múltiples formatos
=======================================
--- /dev/null
+++ /trunk/hive-web/war/ConceptBrowser_es.html Mon Jun 11 12:24:38 2012
@@ -0,0 +1,68 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<!-- The HTML 4.01 Transitional DOCTYPE declaration-->
+<!-- above set at the top of the file will set -->
+<!-- the browser's rendering engine into -->
+<!-- "Quirks Mode". Replacing this declaration -->
+<!-- with a "Standards Mode" doctype is supported, -->
+<!-- but may lead to some differences in layout. -->
+
+<html>
+<head>
+<meta http-equiv="content-type" content="text/html; charset=UTF-8">
+<meta name="gwt:property" content="locale=es">
+
+<!-- -->
+<!-- Consider inlining CSS to reduce the number of requested files -->
+<!-- -->
+
+
+<!-- -->
+<!-- Any title is fine -->
+<!-- -->
+<title>HIVE Web Interface</title>
+
+<!-- -->
+<!-- This script loads your compiled module. -->
+<!-- If you add any GWT meta tags, they must -->
+<!-- be added before this line. -->
+<!-- -->
+<script type="text/javascript" language="javascript"
src="hivewebrowser/hivewebrowser.nocache.js"></script>
+</head>
+
+<!-- -->
+<!-- The body can have arbitrary html, or -->
+<!-- you can leave the body empty if you want -->
+<!-- to create a completely dynamic UI. -->
+<!-- -->
+<body class = "hive-body">
+<!-- OPTIONAL: include this if you want history support -->
+<iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1'
+ style="position: absolute; width: 0; height: 0; border: 0"></iframe>
+
+
+
+<div id = "main">
+<div id="logo">
+<img alt="HIVE Vocabulary Server" src="img/logo_vocabulary-server.jpg"
class="logo_img"/>
+<div id = "tab">
+<h1><span>H</span>elping with <span>I</span>nterdisciplinary
<span>V</span>ocabulary <span>E</span>ngineering</h1>
+<ul>
+<li><a href="home_es.html">Inicio</a></li>
+<li><a href="ConceptBrowser_es.html" class="selectedTab">Lista de
términos</a></li>
+<li><a href="indexing_es.html">Indización</a></li>
+</ul>
+</div>
+</div>
+<div id="content">
+
+</div>
+
+</div>
+
+<div id = "footer">
+<p>© <a href="
http://ils.unc.edu/mrc/hive/" target="_blank">Metadata
Research Center</a> and <a href="
http://www.nescent.org/index.php"
target="_blank">National Evolutionary Synthesis Center</a>
+<br>Versión en español: <a href="
http://tecnodoc.uc3m.es"
target="_blank">Grupo Tecnodoc</a>, de la <a href="
http://www.uc3m.es"
target="_blank">Universidad Carlos III de Madrid</a></p>
+
+</div>
+
+</html>
=======================================
--- /dev/null
+++ /trunk/hive-web/war/WEB-INF/lib/snowball.jar Mon Jun 11 12:24:38 2012
Binary file, no diff available.
=======================================
--- /dev/null
+++ /trunk/hive-web/war/home_es.html Mon Jun 11 12:24:38 2012
@@ -0,0 +1,55 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<meta name="gwt:property" content="locale=es">
+<script type="text/javascript" language="javascript"
src="hivewebrowser/hivewebrowser.nocache.js"></script>
+<title>Interfaz web de HIVE-ES - HIVE-ES Web Interface</title>
+<link type="text/css" href="hive.css" rel="stylesheet"/>
+</head>
+<body>
+
+
+<div id = "main">
+<div id="logo">
+<img alt="HIVE Vocabulary Server" src="img/logo_vocabulary-server.jpg"
class="logo_img"/>
+<div id = "tab">
+<h1><span>H</span>elping with <span>I</span>nterdisciplinary
<span>V</span>ocabulary <span>E</span>ngineering</h1>
+<ul>
+<li><a href="home_es.html" class="selectedTab">Inicio</a></li>
+<li><a href="ConceptBrowser_es.html">Lista de términos</a></li>
+<li><a href="indexing_es.html">Indización</a></li>
+</ul>
+</div>
+
+</div>
+
+<div id="home">
+
+<div id="welcome">
+
+<h1>¡Bienvenido a HIVE-ES!</h1>
+
+<p><span>H</span>elping <span>I</span>nterdisciplinary
<span>V</span>ocabulary <span>E</span>ngineering(HIVE) es un proyecto
financiado por el <a
href="
http://www.imls.gov/news/2008/091008a_list.shtm#NC"
target="_blank">IMLS</a> en el que participan el <a
href="
http://ils.unc.edu/mrc/" target="
+">Metadata Research Center (MRC)</a> de la <a href="
sils.unc.edu" target="
+">School of Information and Library Science</a>, <a href="
www.unc.edu"
target="_blank">University of North Carolina at Chapel Hill</a>, y el <a
href="
http://www.nescent.org/index.php" target="_blank">National
Evolutionary Synthesis Center (NESCent)</a> in Durham, North Carolina.
<br><b>HIVE-ES</b> es la versión en español, mantenida por el
<a href="
http://tecnodoc.uc3m.es" target="_blank">Grupo Tecnodoc</a>, de la
<a href="
http://www.uc3m.es" target="_blank">Universidad Carlos III de
Madrid</a>. <br>Aquí encontrará una versión preliminar de
HIVE-ES, aunque ya en funcionamiento. Le invitamos a probar nuestro
sistema, basado en SKOS, de listas navegables de términos
procedentes de vocabularios interdisciplinares, o experimentar una nueva
propuesta de generación automática de metadatos usando nuestra
herramienta de indización.
+</p>
+
+</div>
+
+<div id = "majorPart">
+
+
+</div>
+
+</div>
+
+</div>
+
+<div id = "footer">
+<p>© <a href="
http://ils.unc.edu/mrc/hive/" target="_blank">Metadata
Research Center</a> and <a href="
http://www.nescent.org/index.php"
target="_blank">National Evolutionary Synthesis Center</a>
+<br>Versión en español: <a href="
http://tecnodoc.uc3m.es"
target="_blank">Grupo Tecnodoc</a>, de la <a href="
http://www.uc3m.es"
target="_blank">Universidad Carlos III de Madrid</a></p>
+
+</div>
+</body>
+</html>
=======================================
--- /dev/null
+++ /trunk/hive-web/war/indexing_es.html Mon Jun 11 12:24:38 2012
@@ -0,0 +1,42 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<meta name="gwt:property" content="locale=es">
+<link href="hive.css" rel="stylesheet" type="text/css" />
+<script type="text/javascript" language="javascript"
src="hivewebrowser/hivewebrowser.nocache.js"></script>
+<title>Interfaz web HIVE-ES - HIVE Web Interface</title>
+</head>
+<body class = "hive-body">
+
+
+<div id = "main">
+<div id="logo">
+ <img alt="HIVE Vocabulary Server" src="img/logo_vocabulary-server.jpg"
class="logo_img"/>
+
+ <div id = "tab">
+ <h1><span>H</span>elping with <span>I</span>nterdisciplinary
<span>V</span>ocabulary <span>E</span>ngineering</h1>
+<ul>
+<li><a href="home_es.html">Inicio</a></li>
+<li><a href="ConceptBrowser_es.html">Lista de términos</a></li>
+<li><a href="indexing_es.html"
class="selectedTab">Indización</a></li>
+</ul>
+</div>
+</div>
+
+<div id = "content">
+
+<div id = "indexer">
+
+</div>
+
+</div>
+
+</div>
+
+<div id = "footer">
+<p>© <a href="
http://ils.unc.edu/mrc/hive/" target="_blank">Metadata
Research Center</a> and <a href="
http://www.nescent.org/index.php"
target="_blank">National Evolutionary Synthesis Center</a>
+<br>Versión en español: <a href="
http://tecnodoc.uc3m.es"
target="_blank">Grupo Tecnodoc</a>, de la <a href="
http://www.uc3m.es"
target="_blank">Universidad Carlos III de Madrid</a></p>
+</div>
+</body>
+</html>
=======================================
--- /trunk/hive-web/src/org/unc/hive/ConceptBrowser.gwt.xml Fri Oct 28
07:53:51 2011
+++ /trunk/hive-web/src/org/unc/hive/ConceptBrowser.gwt.xml Mon Jun 11
12:24:38 2012
@@ -2,6 +2,7 @@
<inherits name='com.google.gwt.user.User' />
<inherits name='com.google.gwt.user.theme.standard.Standard' />
<inherits name='org.gwtmultipage.gwtmultipage' />
+ <inherits name="com.google.gwt.i18n.I18N"/>
<!-- Use this EntryPoint instead of your own one. -->
<entry-point class='org.gwtmultipage.client.EntrypointDispatcher'/>
@@ -16,5 +17,8 @@
<stylesheet src="../hive.css" />
<stylesheet src="../Upload.css" />
-
+
+ <extend-property name="locale" values="es"/>
+ <extend-property name="locale" values="en"/>
+
</module>
=======================================
--- /trunk/hive-web/src/org/unc/hive/client/ConceptBrowser.java Fri May 11
12:40:36 2012
+++ /trunk/hive-web/src/org/unc/hive/client/ConceptBrowser.java Mon Jun 11
12:24:38 2012
@@ -55,7 +55,8 @@
import com.google.gwt.user.client.ui.Widget;
-@UrlPatternEntryPoint(value = "ConceptBrowser.html(\\\\#.*)?" )
+//@UrlPatternEntryPoint(value = "ConceptBrowser.html(\\\\#.*)?" )
+@UrlPatternEntryPoint(value
= "ConceptBrowser([^.]*).html(\\\\?.*)?(\\\\#.*)?" )
/*
* Entry point classes define <code>onModuleLoad()</code>.
*/
@@ -88,13 +89,13 @@
// vocabularies in client side
private List<String> allVocabulary; // store the name of all vocabularies
// that hive have
- private String[] alphabetical = { "A", "B", "C", "D", "E", "F", "G", "H",
- "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U",
- "V", "W", "X", "Y", "Z", "[0-9]" };
+
private List<ConceptProxy> resultStorage;
private List<String> filteringVocabularies;
private String queryfromhome = "";
private String currentViewing; // store the name of the vocabulary the
user currently is browsing
+
+ private HIVEMessages messages =
(HIVEMessages)GWT.create(HIVEMessages.class);
// private ConceptProxy randomConcept;
@@ -107,7 +108,7 @@
public void onModuleLoad() {
final PopupPanel loadingPopup = new PopupPanel();
- loadingPopup.add(new Label("Loading..."));
+ loadingPopup.add(new Label(messages.conceptbrowser_loading()));
loadingPopup.addStyleName("z-index");
loadingPopup.setGlassEnabled(true);
loadingPopup.show();
@@ -119,16 +120,12 @@
@Override
public void onFailure(Throwable caught) {
- // TODO Auto-generated method stub
-
- Window.alert("Get all vocabularies failed.");
-
+ Window.alert(messages.conceptbrowser_getVocabulariesError());
}
@Override
public void onSuccess(List<String> result)
{
- // TODO Auto-generated method stub
loadingPopup.hide();
allVocabulary = result;
@@ -154,7 +151,9 @@
public void onFailure(Throwable caught) {
// TODO Auto-generated method stub
HTML reminder = new HTML(
- "<span style = 'color:red'>Server is unresponse, please try
again later.</span>");
+ "<span style = 'color:red'>"
+ + messages.conceptbrowser_serverError()
+ + "</span>");
resultList.clear();
filteringPanel.clear();
resultList.add(reminder);
@@ -162,11 +161,9 @@
@Override
public void onSuccess(List<ConceptProxy> result) {
- // TODO Auto-generated method stub
-
if (result.size() == 0) {
HTML reminder = new HTML(
- "<span style = 'color:red'> No results.</span>");
+ "<span style = 'color:red'>" +
messages.conceptbrowser_noresults() + "</span>");
resultList.clear();
filteringPanel.clear();
resultList.add(reminder);
@@ -312,10 +309,10 @@
choosePanel.setGlassEnabled(true);
choosePanel.addStyleName("choose-panel");
DockPanel dock = new DockPanel();
- Label lb = new Label("Please choose vocabularies to open");
+ Label lb = new Label(messages.conceptbrowser_chooseVocabulary());
lb.addStyleName("heading");
dock.add(lb, DockPanel.NORTH);
- CaptionPanel caption = new CaptionPanel("List of Vocabularies at
HIVE");
+ CaptionPanel caption = new
CaptionPanel(messages.conceptbrowser_vocabularyList());
FlowPanel flow = new FlowPanel();
for(String c : allVocabulary)
{
@@ -344,7 +341,7 @@
caption.setHeight("200px");
dock.add(caption, DockPanel.CENTER);
HorizontalPanel hp = new HorizontalPanel();
- Button okButton = new Button("OK");
+ Button okButton = new Button(messages.conceptbrowser_ok());
okButton.addClickHandler(new ClickHandler()
{
@@ -381,7 +378,7 @@
}
});
- Button cancelButton = new Button("CANCEL");
+ Button cancelButton = new Button(messages.conceptbrowser_cancel());
cancelButton.addClickHandler(new ClickHandler()
{
@@ -416,7 +413,7 @@
}
});
- Label tip = new Label("On CANCEL, the default vocabulary will be
opened.");
+ Label tip = new Label(messages.conceptbrowser_cancelDefault() );
tip.setWidth("250px");
tip.addStyleName("tip");
hp.add(okButton);
@@ -449,7 +446,7 @@
SimplePanel configureWrapper = new SimplePanel();
configureWrapper.add(configure);
configureWrapper.setStyleName("configure");
- final Label lb1 = new Label("Opened vocabularies:");
+ final Label lb1 = new
Label(messages.conceptbrowser_openedVocabularies());
lb1.setWidth("150px");
lb1.addStyleName("label");
configure.add(lb1);
@@ -488,7 +485,7 @@
searchResult.addStyleName("border-default");
searchResult.addStyleName("background-default");
filteringPanel = new VerticalPanel();
- captionForFiltering = new CaptionPanel("Filter the result");
+ captionForFiltering = new CaptionPanel(messages.conceptbrowser_filter());
captionForFiltering.add(filteringPanel);
captionForFiltering.addStyleName("add-margin");
captionForFiltering.setWidth("120px");
@@ -540,14 +537,14 @@
if (event.getCharCode() == KeyCodes.KEY_ENTER) {
String query = queryBox.getValue();
if (query.equals("")) {
- Window.alert("Please enter a query.");
+ Window.alert(messages.conceptbrowser_enterQueryMessage());
} else {
loadingResultList(query);
}
}
}
});
- final Button searchButton = new Button("Search");
+ final Button searchButton = new
Button(messages.conceptbrowser_searchButton());
searchButton.addClickHandler(new ClickHandler() {
@Override
@@ -555,7 +552,7 @@
final String query = queryBox.getValue();
if (query.equals("")) {
- Window.alert("please enter query.");
+ Window.alert(messages.conceptbrowser_enterQueryMessage());
} else {
loadingResultList(query);
}
@@ -610,7 +607,7 @@
openNewVocabulary.addClickHandler(new OpenNewVocabularyHandler());
configure.add(openNewVocabulary);
configure.setCellHorizontalAlignment(openNewVocabulary,
HasHorizontalAlignment.ALIGN_LEFT);
- Label lb = new Label("Add");
+ Label lb = new Label(messages.conceptbrowser_addButton());
lb.addClickHandler(new OpenNewVocabularyHandler());
lb.addStyleName("addlabel");
configure.add(lb);
@@ -624,6 +621,8 @@
int i = 0;
int j = 0;
+ String alphaList = messages.conceptbrowser_alphaList();
+ String[] alphabetical = alphaList.split(",");
for (final String c : alphabetical) {
final Hyperlink hp = new Hyperlink(c, c);
@@ -741,7 +740,7 @@
@Override
public void onFailure(Throwable caught) {
// TODO Auto-generated method stub
- TreeItem error = new TreeItem("Cannot load the information!");
+ TreeItem error = new
TreeItem(messages.conceptbrowser_cannotLoadError() );
thisItem.addItem(error);
thisItem.setState(true, false);
}
@@ -864,7 +863,7 @@
public void onFailure(Throwable caught) {
// TODO Auto-generated method stub
HTML reminder = new HTML(
- "<span style = 'color:red'>Server is down, please try again
later.</span>");
+ "<span style = 'color:red'>" +
messages.conceptbrowser_serverDownError() + "</span>");
resultList.clear();
filteringPanel.clear();
resultList.add(reminder);
@@ -876,7 +875,7 @@
if (result.size() == 0) {
HTML reminder = new HTML(
- "<span style = 'color:red'> No results.</span>");
+ "<span style = 'color:red'>" +
messages.conceptbrowser_noresults() + "</span>");
resultList.clear();
filteringPanel.clear();
resultList.add(reminder);
@@ -998,15 +997,14 @@
associateVoc = vocabulary;
vocIndex = openedVocabularies.indexOf(associateVoc.toLowerCase());
com.google.gwt.user.client.ui.Button yesBtn = new
com.google.gwt.user.client.ui.Button(
- "Yes");
+ messages.conceptbrowser_yes() );
com.google.gwt.user.client.ui.Button cancelBtn = new
com.google.gwt.user.client.ui.Button(
- "Cancel");
+ messages.conceptbrowser_cancel());
VerticalPanel vp = new VerticalPanel();
vp.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
vp.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
vp.setSpacing(10);
- HTML msg = new HTML("Are you sure to close <span style = 'color:
#3399FF'>"
- + associateVoc + "</span>?", true);
+ HTML msg = new HTML(messages.conceptbrowser_areYouSure(associateVoc),
true);
vp.add(msg);
yesBtn.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent e) {
@@ -1024,7 +1022,7 @@
}
else
{
- conceptList.add(new Label("No vocabularies are open."));
+ conceptList.add(new Label(messages.conceptbrowser_noVocabularies()));
}
}
});
@@ -1080,7 +1078,7 @@
VerticalPanel header = new VerticalPanel();
Label htext = new Label(result.getOrigin() + "->" +
result.getPreLabel());
htext.addStyleName("concept-name-style");
- Button showSKOSBtn = new Button("View in SKOS");
+ Button showSKOSBtn = new Button(messages.conceptbrowser_viewSKOS());
showSKOSBtn.setStyleName("skos-btn");
showSKOSBtn.addClickHandler(new SKOSHandler(result.getSkosCode()));
header.addStyleName("concept-name-header");
@@ -1094,23 +1092,23 @@
Label preLabel = new Label(result.getPreLabel());
FlexTable conceptTable = new FlexTable();
- conceptTable.setText(0, 0, "Preferred Label");
+ conceptTable.setText(0, 0, messages.conceptbrowser_prefLabel());
conceptTable.setWidget(0, 1, preLabel);
- conceptTable.setText(1, 0, "URI");
+ conceptTable.setText(1, 0, messages.conceptbrowser_uri() );
conceptTable.setText(1, 1, result.getURI());
List<String> altLabel = result.getAltLabel();
- conceptTable.setText(2, 0, "Alternative Label");
+ conceptTable.setText(2, 0, messages.conceptbrowser_altLabel() );
String altlabels = "";
if (altLabel != null) {
for (String c : altLabel) {
altlabels = altlabels + c + "; ";
}
} else {
- altlabels = "This concept does not have alternative labels.";
+ altlabels = messages.conceptbrowser_noAltLabels();
}
conceptTable.setText(2, 1, altlabels);
HashMap<String, String> broader = result.getBroader();
- conceptTable.setText(3, 0, "Broader Concepts");
+ conceptTable.setText(3, 0, messages.conceptbrowser_broaderConcepts() );
if (broader != null) {
FlowPanel broaderPanel = new FlowPanel();
Set<String> keys = broader.keySet();
@@ -1131,10 +1129,10 @@
conceptTable.setWidget(3, 1, broaderPanel);
} else {
conceptTable.setText(3, 1,
- "This concept does not have broader terms.");
+ messages.conceptbrowser_noBroaders());
}
- conceptTable.setText(4, 0, "Narrower Concepts");
+ conceptTable.setText(4, 0, messages.conceptbrowser_narrowerConcepts());
HashMap<String, String> narrower = result.getNarrower();
if (narrower != null) {
FlowPanel narrowerPanel = new FlowPanel();
@@ -1156,11 +1154,11 @@
else
{
conceptTable.setText(4, 1,
- "This concept does not have narrower terms.");
+ messages.conceptbrowser_noNarrowers());
}
HashMap<String, String> related = result.getRelated();
- conceptTable.setText(5, 0, "Related Concepts");
+ conceptTable.setText(5, 0, messages.conceptbrowser_relatedConceptsj());
if (related != null) {
FlowPanel relatedPanel = new FlowPanel();
Set<String> keys = related.keySet();
@@ -1178,11 +1176,11 @@
}
} else {
conceptTable.setText(5, 1,
- "This concept does not have related concepts.");
+ messages.conceptbrowser_noRelated());
}
List<String> scopeNotes = result.getScopeNotes();
- conceptTable.setText(6, 0, "Scope Notes");
+ conceptTable.setText(6, 0, messages.conceptbrowser_scoreNotes());
String sn = "";
if (scopeNotes != null) {
for (String s : scopeNotes) {
@@ -1190,7 +1188,7 @@
}
} else {
- sn = "This concept does not have scope notes.";
+ sn = messages.conceptbrowser_noScopeNotes();
}
conceptTable.setText(6, 1, sn);
@@ -1292,7 +1290,7 @@
}
}
if (addVocabularyPanel.getWidgetCount() == 0) {
- Label msg = new Label("All vocabularies are open.");
+ Label msg = new Label(messages.conceptbrowser_allVocabOpen());
addVocabularyPanel.add(msg);
}
pop.add(addVocabularyPanel);
=======================================
--- /trunk/hive-web/src/org/unc/hive/client/HomePage.java Fri Oct 28
07:53:51 2011
+++ /trunk/hive-web/src/org/unc/hive/client/HomePage.java Mon Jun 11
12:24:38 2012
@@ -1,6 +1,8 @@
package org.unc.hive.client;
import java.util.List;
+import java.util.Locale;
+
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
@@ -8,6 +10,7 @@
import com.google.gwt.event.dom.client.KeyCodes;
import com.google.gwt.event.dom.client.KeyPressEvent;
import com.google.gwt.event.dom.client.KeyPressHandler;
+import com.google.gwt.i18n.client.LocaleInfo;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.Button;
@@ -26,7 +29,9 @@
import com.google.gwt.user.client.ui.VerticalPanel;
import org.gwtmultipage.client.UrlPatternEntryPoint;
-@UrlPatternEntryPoint(value = "home.html")
+
+//@UrlPatternEntryPoint(value = "home.html")
+@UrlPatternEntryPoint(value = "home([^.]*).html(\\\\?.*)?")
public class HomePage implements EntryPoint {
@@ -39,15 +44,20 @@
private final ConceptBrowserServiceAsync conceptBrowserService = GWT
.create(ConceptBrowserService.class);
+
+
+ private HIVEMessages messages =
(HIVEMessages)GWT.create(HIVEMessages.class);
public void onModuleLoad() {
// TODO Auto-generated method stub
- vocabularyStatistics = new CaptionPanel("Vocabulary Statistics");
+ vocabularyStatistics = new CaptionPanel(messages.homepage_stats() );
vocabularyStatistics.setWidth("100%");
vocabularyStatistics.setStyleName("caption");
- searchConcept = new CaptionPanel("<a href = 'ConceptBrowser.html'>
Search a Concept </a>", true);
+ searchConcept = new CaptionPanel("<a href = '" +
messages.homepage_conceptBrowserURL() + "'> " +
+ messages.homepage_searchLabel() + " </a>", true);
searchConcept.setStyleName("caption");
- indexing = new CaptionPanel("<a href = 'indexing.html'> Index a Document
</a>", true);
+ indexing = new CaptionPanel("<a href = '" +
messages.homepage_indexingURL() + "'> "+
+ messages.homepage_indexLabel() +" </a>", true);
indexing.setStyleName("caption");
demoServerStmt = new CaptionPanel("");
demoServerStmt.setStyleName("caption");
@@ -65,31 +75,32 @@
String query = queryBox.getValue();
if(query.equals(""))
{
- Window.alert("Please enter a query!");
+ Window.alert(messages.homepage_enterQuery());
}
else
{
- String url = "../ConceptBrowser.html#query=" + query;
+ String url = "../" + messages.homepage_conceptBrowserURL()
+ "#query=" + query;
redirect(url);
}
}
}
});
- searchBtn = new Button("Search");
+
+
+ searchBtn = new Button(messages.homepage_searchButton());
searchBtn.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
// TODO Auto-generated method stub
String query = queryBox.getValue();
if (query.equals("")!= true) {
- String url = "ConceptBrowser.html#query=" + query;
+ String url = messages.homepage_conceptBrowserURL() + "#query=" +
query;
redirect(url);
}
}
});
- final HTML introCB = new HTML(
- "Browse and search concepts in selected vocabularies.", true);
+ final HTML introCB = new HTML(messages.homepage_browseDesc(), true);
final HorizontalPanel search = new HorizontalPanel();
search.setSpacing(5);
// 2011/1/20 craig.willis: Disabled non-functioning search box and
button.
@@ -101,10 +112,10 @@
searchVP.add(search);
searchConcept.add(searchVP);
final HTML introIndex = new HTML(
- "Automatically extract document concepts for subject metadata
creation.",
+ messages.homepage_indexDesc(),
true);
- final Button submitBtn = new Button("Upload");
+ final Button submitBtn = new Button(messages.homepage_uploadButton());
submitBtn.addStyleName("uploadBtn");
final HorizontalPanel uploaderPanel = new HorizontalPanel();
@@ -120,8 +131,7 @@
final VerticalPanel demoVP = new VerticalPanel();
final HTML demoStmt = new HTML(
- "<i>This HIVE system is for demo purposes and may change in response
to your feedback.</i>" +
- "<a href='mailto:
hive-co...@googlegroups.com'> Contact us</a>",
true);
+ "<i>"+messages.homepage_info()+"</i>" + messages.homepage_contact(),
true);
demoVP.add(demoStmt);
demoVP.add(uploaderPanel);
demoServerStmt.add(demoVP);
@@ -146,9 +156,9 @@
// TODO Auto-generated method stub
vocabularyStatistics.add(new Label(
- "Cannot get the information!"));
-
- Window.alert("Unable to retrieve vocabularies.");
+ messages.homepage_loadStatsError()));
+
+ Window.alert(messages.homepage_loadVocabError());
}
@@ -160,13 +170,13 @@
for (int i = 0; i < result.size() + 1; i++) {
if (i == 0) {
vocabulariesGrid.setWidget(i, 0, new Label(
- "Vocabulary"));
+ messages.homepage_vocabLabel() ));
vocabulariesGrid.setWidget(i, 1, new Label(
- "Concepts"));
+ messages.homepage_conceptsLabel()));
vocabulariesGrid.setWidget(i, 2, new Label(
- "Relationships"));
+ messages.homepage_relationshipslabel()));
vocabulariesGrid.setWidget(i, 3, new Label(
- "Last Updated"));
+ messages.homepage_lastUpdatedLabel()));
} else {
List<String> vocabularyInfo = result.get(i - 1);
for (int j = 0; j < vocabularyInfo.size(); j++) {
@@ -178,7 +188,8 @@
@Override
public void onClick(ClickEvent event) {
// TODO Auto-generated method stub
- String url = "../ConceptBrowser.html#voc=" +
hp.getTargetHistoryToken();
+ String url = "../" + messages.homepage_conceptBrowserURL() +
+ "#voc=" + hp.getTargetHistoryToken();
redirect(url);
}
});
=======================================
--- /trunk/hive-web/war/WEB-INF/lib/hive-core.jar Fri May 11 12:40:36 2012
+++ /trunk/hive-web/war/WEB-INF/lib/hive-core.jar Mon Jun 11 12:24:38 2012
Binary file, no diff available.