Updated i18N support

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@119402 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2015-10-05 16:23:45 +00:00
parent c3c55546dc
commit f2d091d308
20 changed files with 87 additions and 31 deletions

View File

@ -2,6 +2,7 @@
<Changeset component="org.gcube.portlets-user.tabular-data-portlet.2-9-0"
date="2015-10-15">
<Change>Added support to WorkspaceExplorer [issue #428]</Change>
<Change>Updated i18N support</Change>
</Changeset>
<Changeset component="org.gcube.portlets-user.tabular-data-portlet.2-8-0"
date="2015-07-03">

View File

@ -33,8 +33,8 @@ import org.gcube.portlets.user.td.mapwidget.client.MapWidgetTD;
import org.gcube.portlets.user.td.openwidget.client.TDOpen;
import org.gcube.portlets.user.td.replacebyexternalwidget.client.ReplaceByExternalTD;
import org.gcube.portlets.user.td.rulewidget.client.RuleActiveDialog;
import org.gcube.portlets.user.td.rulewidget.client.RuleOnColumnApplyDialog;
import org.gcube.portlets.user.td.rulewidget.client.RuleDeleteDialog;
import org.gcube.portlets.user.td.rulewidget.client.RuleOnColumnApplyDialog;
import org.gcube.portlets.user.td.rulewidget.client.RuleOpenDialog;
import org.gcube.portlets.user.td.rulewidget.client.RuleShareDialog;
import org.gcube.portlets.user.td.rulewidget.client.multicolumn.RuleOnTableApplyWizard;
@ -133,9 +133,17 @@ public class TabularDataController {
* Grid TableId
*/
private TRId openTRIdAfterServerUpdate;
/**
* Messages
*
*/
private TabularDataControllerMessages msgs;
public TabularDataController() {
eventBus = new SimpleEventBus();
msgs = GWT.create(TabularDataControllerMessages.class);
callHello();
checkSession();
pendingTasksRetrieve();
@ -1518,9 +1526,9 @@ public class TabularDataController {
openWizard();
String title;
if (switchState) {
title = "Switches Tabular Resource";
title = msgs.openSwitchesTR();
} else {
title = "Open Tabular Resource";
title = msgs.openTR();
}
TDOpen tdOpen = new TDOpen(trId, title, eventBus);
tdOpen.addListener(new WizardListener() {

View File

@ -0,0 +1,30 @@
package org.gcube.portlets.user.td.client;
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 TabularDataControllerMessages extends Messages {
/**
*
* @return
*/
@DefaultMessage("Open Tabular Resource")
String openTR();
/**
*
* @return
*/
@DefaultMessage("Switches Tabular Resource")
String openSwitchesTR();
}

View File

@ -587,7 +587,7 @@ public interface TabularDataResources extends ClientBundle {
ImageResource geometryPoint();
@Source("flag_gb.png")
ImageResource flagGB();
ImageResource flagEN();
@Source("flag_it.png")
ImageResource flagIT();
@ -595,6 +595,16 @@ public interface TabularDataResources extends ClientBundle {
@Source("flag_es.png")
ImageResource flagES();
@Source("sflag_en.png")
ImageResource sflagEN();
@Source("sflag_it.png")
ImageResource sflagIT();
@Source("sflag_es.png")
ImageResource sflagES();
@Source("language_32.png")
ImageResource language32();

Binary file not shown.

After

Width:  |  Height:  |  Size: 398 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 432 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 281 B

View File

@ -527,12 +527,12 @@ public class FileToolBar {
private Menu createLanguageMenu() {
Menu menuReplace = new Menu();
enItem = new MenuItem(msgs.english(),
TabularDataResources.INSTANCE.flagGB());
itItem = new MenuItem(msgs.italian(),
TabularDataResources.INSTANCE.flagIT());
esItem = new MenuItem(msgs.spanish(),
TabularDataResources.INSTANCE.flagES());
enItem = new MenuItem(msgs.english());
// TabularDataResources.INSTANCE.sflagEN());
itItem = new MenuItem(msgs.italian());
// TabularDataResources.INSTANCE.sflagIT());
esItem = new MenuItem(msgs.spanish());
// TabularDataResources.INSTANCE.sflagES());
enItem
.addSelectionHandler(new SelectionHandler<Item>() {

View File

@ -0,0 +1,2 @@
openTR = Open Tabular Resource
openSwitchesTR = Switches Tabular Resource

View File

@ -0,0 +1,2 @@
openTR = Abrir Tabular Resource
openSwitchesTR = Cambiar Tabular Resource

View File

@ -0,0 +1,2 @@
openTR = Apri Tabular Resource
openSwitchesTR = Cambia Tabular Resource

Binary file not shown.

After

Width:  |  Height:  |  Size: 398 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 432 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 281 B

View File

@ -1,8 +1,8 @@
validationGroupHeadingText = Validación
validationsShowButton = Muestra
validationsShowButtonToolTip = Muestra Validaciones
validationsDeleteButton = Eliminar
validationsDeleteButtonToolTip = Elimina validaciones
validationsDeleteButton = Borrar
validationsDeleteButtonToolTip = Borrar validaciones
duplicateDetectionButton = Detección Duplicados
duplicateDetectionButtonToolTip = Detección de duplicados
structureGroupHeadingText = Estructura
@ -16,8 +16,8 @@ columnTypeButton = Tipo Columna
columnTypeButtonToolTip = Cambio tipo de columna
addColumnButton = Añadir
addColumnButtonToolTip = Añadir la columna
deleteColumnButton = Eliminar
deleteColumnButtonToolTip = Eliminar columna
deleteColumnButton = Borrar
deleteColumnButtonToolTip = Borrar columna
splitColumnButton = Dividida
splitColumnButtonToolTip = Columna Dividida
mergeColumnButton = Fusionar
@ -27,7 +27,7 @@ denormalizeButtonToolTip = Desnormalizar
normalizeButton = Normalizar
normalizeButtonToolTip = Normalizar
helperGroupHeadingText = Asistente
extractCodelistButton = Extracto Codelist
extractCodelistButtonToolTip = Extracto Codelist
extractCodelistButton = Extraer Codelist
extractCodelistButtonToolTip = Extraer Codelist
codelistMappingButton = Mapa Importación
codelistMappingButtonToolTip = Codelist mapa importación

View File

@ -1,14 +1,14 @@
fileGroupHeadingText = Tabular Resource
openButton = Abre
openButtonToolTip = Abre Tabular Resource
closeButton = Cerca de todo
openButton = Abrir
openButtonToolTip = Abrir Tabular Resource
closeButton = Cerrar Todo
closeButtonToolTip = Cerrar todas las Tabular Resources
cloneButton = Clon
cloneButtonToolTip = Clon Tabular Resource
shareButton = Cuota
shareButtonToolTip = Cuota la Tabular Resource
shareButton = Compartir
shareButtonToolTip = Compartir la Tabular Resource
deleteButton = Borrar
deleteButtonToolTip = Eliminar la Tabular Resource
deleteButtonToolTip = Borrar la Tabular Resource
propertiesButton = Propiedades
propertiesButtonToolTip = Muestra las propiedades
importGroupHeadingText = Importaciòn

View File

@ -7,7 +7,7 @@ addRowButton = Añadir
addRowButtonToolTip = Añadir fila
filterButton = Filtrar
filterButtonToolTip = Filtrar líneas
tableGroupHeadingText = Mesa
tableGroupHeadingText = Tabla
groupbyButton = Agrupar
groupbyButtonToolTip = Realiza grupo en datos
timeAggregationButton = Agregación Temporal

View File

@ -1,10 +1,10 @@
ruleGroupHeadingText = Gestionar
ruleOpenButton = Abre
ruleOpenButtonToolTip = Abre
ruleOpenButton = Abrir
ruleOpenButtonToolTip = Abrir
ruleDeleteButton = Borrar
ruleDeleteButtonToolTip = Borrar
ruleShareButton = Cuota
ruleShareButtonToolTip = Cuota
ruleShareButton = Compartir
ruleShareButtonToolTip = Compartir
ruleActiveButton = Activo
ruleActiveToolTip = Activo
ruleOnColumnGroupHeadingText = On Columna

View File

@ -1,11 +1,11 @@
templateGroupHeadingText = Gestionar
templateNewButton = Nuevo
templateNewButtonToolTip = Nuevo
templateOpenButton = Abre
templateOpenButtonToolTip = Abre
templateOpenButton = Abrir
templateOpenButtonToolTip = Abrir
templateDeleteButton = Borrar
templateDeleteButtonToolTip = Borrar
templateApplyButton = Aplicar
templateApplyButtonToolTip = Aplicar
templateShareButton = Cuota
templateShareButtonToolTip = Cuota
templateShareButton = Compartir
templateShareButtonToolTip = Compartir

View File

@ -2,6 +2,7 @@
<Changeset component="org.gcube.portlets-user.tabular-data-portlet.2-9-0"
date="2015-10-15">
<Change>Added support to WorkspaceExplorer [issue #428]</Change>
<Change>Updated i18N support</Change>
</Changeset>
<Changeset component="org.gcube.portlets-user.tabular-data-portlet.2-8-0"
date="2015-07-03">