Added i18n

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-toolbox-widget@113884 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2015-04-02 16:42:46 +00:00 committed by Giancarlo Panichi
parent 6d2cd2896e
commit 3dd61dbcfe
9 changed files with 116 additions and 35 deletions

View File

@ -2,7 +2,9 @@
<module rename-to='ToolBox'>
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User' />
<inherits name="com.google.gwt.i18n.I18N" />
<!-- We need the JUnit module in the main module, -->
<!-- otherwise eclipse complains (Google plugin bug?) -->
<inherits name='com.google.gwt.junit.JUnit' />
@ -10,7 +12,7 @@
<!-- Inherit the default GWT style sheet. You can change -->
<!-- the theme of your GWT application by uncommenting -->
<!-- any one of the following lines. -->
<inherits name='com.google.gwt.user.theme.standard.Standard' />
<!-- <inherits name='com.google.gwt.user.theme.standard.Standard' /> -->
<!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
<!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/> -->
@ -34,6 +36,25 @@
<!-- Specify the app entry point class. -->
<!-- <entry-point class='org.gcube.portlets.user.td.toolboxwidget.client.ToolBoxEntry'
/> -->
<set-configuration-property name="locale.cookie"
value="TDLangCookie" />
<set-configuration-property name="locale.queryparam"
value="TDLang" />
<set-configuration-property name="locale.usemeta"
value="Y" />
<set-configuration-property name="locale.useragent"
value="Y" />
<set-configuration-property name="locale.searchorder"
value="cookie,queryparam,meta,useragent" />
<extend-property name="locale" values="en" />
<extend-property name="locale" values="it" />
<extend-property name="locale" values="es" />
<set-property name="locale" value="en, it, es" />
<set-property-fallback name="locale" value="en" />
<!-- Specify the paths for translatable code -->
<source path='client' />

View File

@ -1,7 +1,6 @@
package org.gcube.portlets.user.td.toolboxwidget.client.help;
import java.util.HashMap;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.HTML;
import com.google.web.bindery.event.shared.EventBus;
import com.sencha.gxt.core.client.util.Margins;
@ -17,20 +16,21 @@ import com.sencha.gxt.widget.core.client.form.FieldSet;
*
*/
public class HelpPanel extends FramedPanel {
private HelpPanelMessages msgs;
//private String headingTitle;
//private HashMap<String, String> tabularResourcePropertiesMap;
private VerticalLayoutContainer vl;
//private EventBus eventBus;
private FieldSet contents;
private VerticalLayoutContainer layoutCaptions;
protected String headingTitle;
protected HashMap<String, String> tabularResourcePropertiesMap;
protected VerticalLayoutContainer vl;
protected EventBus eventBus;
protected FieldSet contents;
protected VerticalLayoutContainer layoutCaptions;
public HelpPanel(String name, EventBus eventBus) {
super();
msgs = GWT.create(HelpPanelMessages.class);
setId(name);
this.eventBus = eventBus;
forceLayoutOnResize = true;
setBodyBorder(false);
setBorders(false);
@ -40,26 +40,21 @@ public class HelpPanel extends FramedPanel {
this.add(vl);
}
public void addContents() {
HTML title = new HTML("<H2>Tabular Data Manager Help<H2>");
HTML title = new HTML("<H2>"+msgs.helpPanelTitle()+"<H2>");
vl.add(title, new VerticalLayoutData(-1, -1, new Margins(1, 1, 10, 1)));
contents = new FieldSet();
contents.setHeadingText("Contents");
contents.setHeadingText(msgs.contents());
contents.setCollapsible(true);
contents.setResize(true);
layoutCaptions = new VerticalLayoutContainer();
contents.add(layoutCaptions);
HTML info = new HTML(
"<p><em><b>Tabular Data Manager</b></em> offers facilities supporting the management of the entire life-cycle"
+ "(creation, curation, manipulation and publication) of <em>Tabular Resources</em> such as datasets, codelist or generic table."
+ " i.e. tabular data representing observations of a given event or phenomenon at different time intervals."
+ " Tabular Resource are used in many domains ranging from statistics to signal processing and econometrics."
+ " Tabular Data Manager offers a rich set of facilities ranging from those supporting the assessment"
+ " of data correctness to those supporting the verification of the compliance of data with given code lists,"
+ " the aggregation and filtering of data.</p>");
HTML info = new HTML(msgs.info());
layoutCaptions
.add(info, new VerticalLayoutData(1, -1, new Margins(1)));

View File

@ -0,0 +1,24 @@
package org.gcube.portlets.user.td.toolboxwidget.client.help;
import com.google.gwt.i18n.client.Messages;
/**
*
* @author giancarlo
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
*
*/
public interface HelpPanelMessages extends Messages {
//
@DefaultMessage("Tabular Data Manager Help")
String helpPanelTitle();
@DefaultMessage("Contents")
String contents();
@DefaultMessage("Tabular Data Resource")
String info();
}

View File

@ -2,18 +2,12 @@
<module rename-to='ToolBox'>
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User' />
<inherits name="com.google.gwt.i18n.I18N" />
<!-- We need the JUnit module in the main module, -->
<!-- otherwise eclipse complains (Google plugin bug?) -->
<inherits name='com.google.gwt.junit.JUnit' />
<!-- Inherit the default GWT style sheet. You can change -->
<!-- the theme of your GWT application by uncommenting -->
<!-- any one of the following lines. -->
<inherits name='com.google.gwt.user.theme.standard.Standard' />
<!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
<!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/> -->
<!-- Other module inherits -->
<inherits name='com.sencha.gxt.ui.GXT' />
<!-- <inherits name="com.extjs.gxt.ui.GXT" /> -->
@ -36,6 +30,24 @@
<!-- <entry-point class='org.gcube.portlets.user.td.toolboxwidget.client.ToolBoxEntry'
/> -->
<set-configuration-property name="locale.cookie"
value="TDLangCookie" />
<set-configuration-property name="locale.queryparam"
value="TDLang" />
<set-configuration-property name="locale.usemeta"
value="Y" />
<set-configuration-property name="locale.useragent"
value="Y" />
<set-configuration-property name="locale.searchorder"
value="cookie,queryparam,meta,useragent" />
<extend-property name="locale" values="en" />
<extend-property name="locale" values="it" />
<extend-property name="locale" values="es" />
<set-property name="locale" value="en, it, es" />
<set-property-fallback name="locale" value="en" />
<!-- Specify the paths for translatable code -->
<source path='client' />
<source path='shared' />

View File

@ -1,2 +0,0 @@
sendButton = Send
nameField = Enter your name

View File

@ -1,2 +0,0 @@
sendButton = Envoyer
nameField = Entrez votre nom

View File

@ -0,0 +1,11 @@
helpPanelTitle = Tabular Data Manager Help
contents = Contents
info = <p><em><b>Tabular Data Manager</b></em> offers facilities supporting the management of the entire life-cycle \
(creation, curation, manipulation and publication) of <em>Tabular Resources</em> \
such as datasets, codelist or generic table. i.e. tabular data representing observations \
of a given event or phenomenon at different time intervals. \
Tabular Resource are used in many domains ranging from statistics to signal processing \
and econometrics. Tabular Data Manager offers a rich set of facilities ranging \
from those supporting the assessment of data correctness to those supporting \
the verification of the compliance of data with given code lists, \
the aggregation and filtering of data.</p>

View File

@ -0,0 +1,11 @@
helpPanelTitle = Tabular Data Manager Ayuda
contents = Contenido
info = <p> <em> <b> Tabular Data Manager </b> </em> ofrece servicios de apoyo a la gestión de todo el ciclo de vida \
(creación, conservación, manipulación y publicación) de <em> Recursos tabulares </em> \
tales como bases de datos, lista de códigos o cuadro genérico. es decir, datos tabulares que representa observaciones \
de un determinado evento o fenómeno en diferentes intervalos de tiempo. \
Recursos tabulares se utilizan en muchos ámbitos que van desde las estadísticas de procesamiento de la señal \
y econometría. Tabular Data Manager ofrece un amplio conjunto de servicios que van \
por quienes soliciten la evaluación de la corrección de datos a los que apoyan \
la verificación del cumplimiento de los datos con listas de códigos dados, \
la agregación y filtrado de datos. </p>

View File

@ -0,0 +1,11 @@
helpPanelTitle = Tabular Data Manager Aiuto
contents = Contenuti
info = <p><em><b>Tabular Data Manager</b></em> offers facilities supporting the management of the entire life-cycle \
(creazione, curation, manipolazione e pubblicazione) di <em>Tabular Resources</em> \
come datasets, codelist or generic table. Ad esempio dati tabellari che rappresentano osservazioni \
di un dato evento o fenomeno in differenti intervalli di tempo. \
Tabular Resource sono usati in molti domini dalla statistica al processamento di segnali \
e econometria. Tabular Data Manager offre un ricco insieme di strumenti da \
quelli che sostengono la valutazione della correttezza dei dati a quelli di supporto \
alla verifica della conformità dei dati con determinati codelist, \
l''aggregazione e il filtraggio dei dati.</p>