Updated Support to i18N

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-open-widget@119393 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2015-10-05 16:14:58 +00:00 committed by Giancarlo Panichi
parent b2db6b5a3f
commit 13418b7b40
12 changed files with 136 additions and 11 deletions

View File

@ -1,7 +1,9 @@
The gCube System - tabular-data-open-widget
------------------------------------------------------------
This work has been supported by the following European projects: iMarine (FP7-INFRASTRUCTURES-2011-2)
This work has been partially supported by the following European projects: DILIGENT (FP6-2003-IST-2),
D4Science (FP7-INFRA-2007-1.2.2), D4Science-II (FP7-INFRA-2008-1.2.2), iMarine (FP7-INFRASTRUCTURES-2011-2),
and EUBrazilOpenBio (FP7-ICT-2011-EU-Brazil), Parthenos (H2020-INFRADEV-1-2014-1), BlueBridge (H2020-EINFRA-2015-1).
Authors
-------

View File

@ -43,7 +43,12 @@ public interface TDOpenMessages extends Messages {
@DefaultMessage("Creation Date")
String tabResourcesSelectionPanelColumnCreationDateLabel();
@DefaultMessage("Delete")
String tabResourcesSelectionPanelContextMenuDelete();
@DefaultMessage("Info")
String tabResourcesSelectionPanelContextMenuInfo();
}

View File

@ -42,14 +42,14 @@ public class TabResourceInfoDialog extends Dialog {
private static final int WIDTH = 500;
private static final DateTimeFormat sdf=DateTimeFormat.getFormat("yyyy-MM-dd HH:mm");
private TabResource tabResource;
private TabResourcesInfoDialogPropertiesMessages msgs;
private TabResourcesInfoDialogMessages msgs;
private EventBus eventBus;
private ArrayList<LicenceData> licencesList;
public TabResourceInfoDialog(TabResource tabResource, EventBus eventBus) {
this.tabResource = tabResource;
this.eventBus=eventBus;
this.msgs = GWT.create(TabResourcesInfoDialogPropertiesMessages.class);
this.msgs = GWT.create(TabResourcesInfoDialogMessages.class);
initWindow();
retrieveLicencesList();
}

View File

@ -8,7 +8,7 @@ import com.google.gwt.i18n.client.Messages;
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
*
*/
public interface TabResourcesInfoDialogPropertiesMessages extends Messages {
public interface TabResourcesInfoDialogMessages extends Messages {
@DefaultMessage("Tabular Resource Info")
String tabResourceInfoDialogHeadingText();
@ -16,7 +16,6 @@ public interface TabResourcesInfoDialogPropertiesMessages extends Messages {
@DefaultMessage("Detail")
String tabResourceDetailFieldSet();
//
@DefaultMessage("Name")
String nameLabel();

View File

@ -299,7 +299,7 @@ public class TabResourcesSelectionPanel extends ContentPanel implements
protected void createContextMenu() {
contextMenu = new Menu();
MenuItem deleteTRItem = new MenuItem("Delete");
MenuItem deleteTRItem = new MenuItem(msgsTDOpen.tabResourcesSelectionPanelContextMenuDelete());
deleteTRItem.setId("DeleteTR");
deleteTRItem.setIcon(ResourceBundleTDOpen.INSTANCE.delete());
deleteTRItem.addSelectionHandler(new SelectionHandler<Item>() {
@ -316,7 +316,7 @@ public class TabResourcesSelectionPanel extends ContentPanel implements
contextMenu.add(deleteTRItem);
MenuItem infoItem = new MenuItem();
infoItem.setText("Info");
infoItem.setText(msgsTDOpen.tabResourcesSelectionPanelContextMenuInfo());
infoItem.setIcon(ResourceBundleTDOpen.INSTANCE.information());
infoItem.addSelectionHandler(new SelectionHandler<Item>() {

View File

@ -8,3 +8,5 @@ tabResourcesSelectionPanelColumnTableTypeLabel = Table Type
tabResourcesSelectionPanelColumnLockLabel = Lock
tabResourcesSelectionPanelColumnAgencyLabel = Agency
tabResourcesSelectionPanelColumnOwnerLabel = Owner
tabResourcesSelectionPanelContextMenuDelete = Delete
tabResourcesSelectionPanelContextMenuInfo = Info

View File

@ -1,4 +1,4 @@
buttonOpenLabel = Abre
buttonOpenLabel = Abrir
tabResourcesSelectionCardSelectLabel = Seleccione una Tabular Resource
buttonSearchLabel = Búsqueda
buttonReloadLabel = Recargar
@ -7,4 +7,6 @@ tabResourcesSelectionPanelColumnTypeLabel = Tipo
tabResourcesSelectionPanelColumnTableTypeLabel = Tipo Tabla
tabResourcesSelectionPanelColumnLockLabel = Lock
tabResourcesSelectionPanelColumnAgencyLabel = Agencia
tabResourcesSelectionPanelColumnOwnerLabel = Propietario
tabResourcesSelectionPanelColumnOwnerLabel = Propietario
tabResourcesSelectionPanelContextMenuDelete = Borrar
tabResourcesSelectionPanelContextMenuInfo = Información

View File

@ -7,4 +7,6 @@ tabResourcesSelectionPanelColumnTypeLabel = Tipo
tabResourcesSelectionPanelColumnTableTypeLabel = Tipo Tabella
tabResourcesSelectionPanelColumnLockLabel = Lock
tabResourcesSelectionPanelColumnAgencyLabel = Agenzia
tabResourcesSelectionPanelColumnOwnerLabel = Propietario
tabResourcesSelectionPanelColumnOwnerLabel = Propietario
tabResourcesSelectionPanelContextMenuDelete = Elimina
tabResourcesSelectionPanelContextMenuInfo = Informazioni

View File

@ -0,0 +1,37 @@
tabResourceInfoDialogHeadingText = Tabular Resource Info
tabResourceDetailFieldSet = Detail
nameLabel = Name
lockLabel = Lock
nameLabelToolTip = Name of tabular resource
descriptionLabel = Description
descriptionLabelToolTip = Description of tabular resource
typeLabel = Type
typeLabelToolTip = Type of tabular resource
agencyLabel = Agency
agencyLabelToolTip = Agency
dateLabel = Creation Date
dateLabelToolTip = Creation Date
tableTypeNameLabel = Table Type
tableTypeNameLabelToolTip = Table Type
rightLabel = Rights
rightLabelToolTip = Rights
validFromLabel = Valid From
validFromLabelToolTip = Valid From
validUntilToLabel = valid Until To
validUntilToLabelToolTip = Valid Until To
licencesLabel = Licence
licencesLabelToolTip = Licence
ownerLabel = Owner
ownerLabelToolTip = Owner
shareLabel = Share
shareLabelToolTip = Share
validLabel = Valid
validLabelToolTip = Valid
finalizedLabel = Final
finalizedLabelToolTip = Final
saveButton = Save
saveButtonToolTip = Save
validationsButton = Validations
validationsButtonToolTip = Validations
resourcesButton = Resources
resourcesButtonToolTip = Resources

View File

@ -0,0 +1,37 @@
tabResourceInfoDialogHeadingText = Tabular Resource Información
tabResourceDetailFieldSet = Detalles
nameLabel = Nombre
nameLabelToolTip = Nombre de la Tabular Resource
lockLabel = Lock
descriptionLabel = Descripción
descriptionLabelToolTip = Descripción de la Tabular Resource
typeLabel = Tipo
typeLabelToolTip = Tipo de Tabular Resource
agencyLabel = Agencia
agencyLabelToolTip = Agencia
dateLabel = Fecha Creacion
dateLabelToolTip = Fecha Creacion
tableTypeNameLabel = Tipo Tabla
tableTypeNameLabelToolTip = Tipo Tabla
rightLabel = Derechos
rightLabelToolTip = Derechos
validFromLabel = Válida Desde
validFromLabelToolTip = Válida Desde
validUntilToLabel = Válido Hasta
validUntilToLabelToolTip = Válido Hasta
licencesLabel = Licencia
licencesLabelToolTip = Licencia
ownerLabel = Propietario
ownerLabelToolTip = Propietario
shareLabel = Cuota
shareLabelToolTip = Cuota
validLabel = Válido
validLabelToolTip = Válido
finalizedLabel = Final
finalizedLabelToolTip = Final
saveButton = Guardar
saveButtonToolTip = Guardar
validationsButton = Validación
validationsButtonToolTip = Validación
resourcesButton = Recursos
resourcesButtonToolTip = Recursos

View File

@ -0,0 +1,37 @@
tabResourceInfoDialogHeadingText = Tabular Resource Informazioni
tabResourceDetailFieldSet = Dettagli
nameLabel = Nome
nameLabelToolTip = Nome della Tabular Resource
lockLabel = Lock
descriptionLabel = Descrizione
descriptionLabelToolTip = Descrizione della Tabular Resource
typeLabel = Tipo
typeLabelToolTip = Tipo di Tabular Resource
agencyLabel = Agenzia
agencyLabelToolTip = Agenzia
dateLabel = Data Creazione
dateLabelToolTip = Data Creazione
tableTypeNameLabel = Tipo Tabella
tableTypeNameLabelToolTip = Tipo Tabella
rightLabel = Diritti
rightLabelToolTip = Diritti
validFromLabel = Valida Da
validFromLabelToolTip = Valida Da
validUntilToLabel = Valida Fino Al
validUntilToLabelToolTip = Valida Fino Al
licencesLabel = Licenza
licencesLabelToolTip = Licenza
ownerLabel = Proprietario
ownerLabelToolTip = Proprietario
shareLabel = Condivisione
shareLabelToolTip = Condivisione
validLabel = Valida
validLabelToolTip = Valida
finalizedLabel = Finale
finalizedLabelToolTip = Finale
saveButton = Salva
saveButtonToolTip = Salva
validationsButton = Validazioni
validationsButtonToolTip = Validazioni
resourcesButton = Risorse
resourcesButtonToolTip = Risorse

View File

@ -1,7 +1,9 @@
The gCube System - ${name}
------------------------------------------------------------
This work has been supported by the following European projects: iMarine (FP7-INFRASTRUCTURES-2011-2)
This work has been partially supported by the following European projects: DILIGENT (FP6-2003-IST-2),
D4Science (FP7-INFRA-2007-1.2.2), D4Science-II (FP7-INFRA-2008-1.2.2), iMarine (FP7-INFRASTRUCTURES-2011-2),
and EUBrazilOpenBio (FP7-ICT-2011-EU-Brazil), Parthenos (H2020-INFRADEV-1-2014-1), BlueBridge (H2020-EINFRA-2015-1).
Authors
-------