From d1237ffde9f2eced0648042731292799a002a13e Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Fri, 2 Oct 2015 16:20:47 +0000 Subject: [PATCH] Updated i18N git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-open-widget@119359 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../td/openwidget/client/TDOpenMessages.java | 29 +++++++++++++++++++ .../client/TabResourcesSelectionPanel.java | 23 +++++++++------ .../client/TDOpenMessages.properties | 8 +++++ .../client/TDOpenMessages_es.properties | 10 ++++++- .../client/TDOpenMessages_it.properties | 10 ++++++- 5 files changed, 69 insertions(+), 11 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/td/openwidget/client/TDOpenMessages.java b/src/main/java/org/gcube/portlets/user/td/openwidget/client/TDOpenMessages.java index 8eadbda..64d38df 100644 --- a/src/main/java/org/gcube/portlets/user/td/openwidget/client/TDOpenMessages.java +++ b/src/main/java/org/gcube/portlets/user/td/openwidget/client/TDOpenMessages.java @@ -14,4 +14,33 @@ public interface TDOpenMessages extends Messages { @DefaultMessage("Open") String buttonOpenLabel(); + @DefaultMessage("Search") + String buttonSearchLabel(); + + @DefaultMessage("Reload") + String buttonReloadLabel(); + + @DefaultMessage("Name") + String tabResourcesSelectionPanelColumnNameLabel(); + + @DefaultMessage("Type") + String tabResourcesSelectionPanelColumnTypeLabel(); + + @DefaultMessage("Table Type") + String tabResourcesSelectionPanelColumnTableTypeLabel(); + + @DefaultMessage("Lock") + String tabResourcesSelectionPanelColumnLockLabel(); + + @DefaultMessage("Agency") + String tabResourcesSelectionPanelColumnAgencyLabel(); + + @DefaultMessage("Owner") + String tabResourcesSelectionPanelColumnOwnerLabel(); + + @DefaultMessage("Creation Date") + String tabResourcesSelectionPanelColumnCreationDateLabel(); + + + } diff --git a/src/main/java/org/gcube/portlets/user/td/openwidget/client/TabResourcesSelectionPanel.java b/src/main/java/org/gcube/portlets/user/td/openwidget/client/TabResourcesSelectionPanel.java index 333f2ff..e5e7055 100644 --- a/src/main/java/org/gcube/portlets/user/td/openwidget/client/TabResourcesSelectionPanel.java +++ b/src/main/java/org/gcube/portlets/user/td/openwidget/client/TabResourcesSelectionPanel.java @@ -87,6 +87,8 @@ public class TabResourcesSelectionPanel extends ContentPanel implements SafeHtml format(String value, String desc); } + + private Grid grid; private ResourceBundle res; @@ -95,11 +97,14 @@ public class TabResourcesSelectionPanel extends ContentPanel implements private TabResource removableTR; private TabResourcesSelectionCard parent; + private TDOpenMessages msgsTDOpen; public TabResourcesSelectionPanel(TabResourcesSelectionCard parent, ResourceBundle res) { this.res = res; this.parent = parent; + this.msgsTDOpen = GWT.create(TDOpenMessages.class); + Log.debug("TabResourcesSelectionPanel"); init(); try { @@ -124,14 +129,14 @@ public class TabResourcesSelectionPanel extends ContentPanel implements protected void buildPanel() { ToolBar toolBar = new ToolBar(); - toolBar.add(new LabelToolItem("Search: ")); + toolBar.add(new LabelToolItem(msgsTDOpen.buttonSearchLabel()+": ")); final TextField searchField = new TextField(); toolBar.add(searchField); TextButton btnReload = new TextButton(); // btnReload.setText("Reload"); btnReload.setIcon(res.refresh16()); - btnReload.setToolTip("Reload"); + btnReload.setToolTip(msgsTDOpen.buttonReloadLabel()); toolBar.add(btnReload); IdentityValueProvider identity = new IdentityValueProvider(); @@ -166,19 +171,19 @@ public class TabResourcesSelectionPanel extends ContentPanel implements store.setEnableFilters(true); ColumnConfig nameColumn = new ColumnConfig( - properties.name(), 90, "Name"); + properties.name(), 90, msgsTDOpen.tabResourcesSelectionPanelColumnNameLabel()); ColumnConfig typeColumn = new ColumnConfig( - properties.tabResourceType(), 30, "Type"); + properties.tabResourceType(), 30, msgsTDOpen.tabResourcesSelectionPanelColumnTypeLabel()); ColumnConfig tableTypeNameColumn = new ColumnConfig( - properties.tableTypeName(), 30, "Table Type"); + properties.tableTypeName(), 30, msgsTDOpen.tabResourcesSelectionPanelColumnTableTypeLabel()); ColumnConfig lockedColumn = new ColumnConfig( - properties.locked(), 20, "Lock"); + properties.locked(), 20, msgsTDOpen.tabResourcesSelectionPanelColumnLockLabel()); ColumnConfig agencyColumn = new ColumnConfig( - properties.agency(), 60, "Agency"); + properties.agency(), 60, msgsTDOpen.tabResourcesSelectionPanelColumnAgencyLabel()); ColumnConfig ownerColumn = new ColumnConfig( - properties.ownerLogin(), 70, "Owner"); + properties.ownerLogin(), 70, msgsTDOpen.tabResourcesSelectionPanelColumnOwnerLabel()); ColumnConfig dateColumn = new ColumnConfig( - properties.date(), 50, "Creation Date"); + properties.date(), 50, msgsTDOpen.tabResourcesSelectionPanelColumnCreationDateLabel()); dateColumn.setCell(new DateCell(sdf)); diff --git a/src/main/resources/org/gcube/portlets/user/td/openwidget/client/TDOpenMessages.properties b/src/main/resources/org/gcube/portlets/user/td/openwidget/client/TDOpenMessages.properties index d1e1db0..b0e2f04 100644 --- a/src/main/resources/org/gcube/portlets/user/td/openwidget/client/TDOpenMessages.properties +++ b/src/main/resources/org/gcube/portlets/user/td/openwidget/client/TDOpenMessages.properties @@ -1 +1,9 @@ buttonOpenLabel = Open +buttonSearchLabel = Search +buttonReloadLabel = Reload +tabResourcesSelectionPanelColumnNameLabel = Name +tabResourcesSelectionPanelColumnTypeLabel = Type +tabResourcesSelectionPanelColumnTableTypeLabel = Table Type +tabResourcesSelectionPanelColumnLockLabel = Lock +tabResourcesSelectionPanelColumnAgencyLabel = Agency +tabResourcesSelectionPanelColumnOwnerLabel = Owner diff --git a/src/main/resources/org/gcube/portlets/user/td/openwidget/client/TDOpenMessages_es.properties b/src/main/resources/org/gcube/portlets/user/td/openwidget/client/TDOpenMessages_es.properties index 66e3197..2be967c 100644 --- a/src/main/resources/org/gcube/portlets/user/td/openwidget/client/TDOpenMessages_es.properties +++ b/src/main/resources/org/gcube/portlets/user/td/openwidget/client/TDOpenMessages_es.properties @@ -1 +1,9 @@ -buttonOpenLabel = Abre \ No newline at end of file +buttonOpenLabel = Abre +buttonSearchLabel = Búsqueda +buttonReloadLabel = Recargar +tabResourcesSelectionPanelColumnNameLabel = Nombre +tabResourcesSelectionPanelColumnTypeLabel = Tipo +tabResourcesSelectionPanelColumnTableTypeLabel = Tipo Tabla +tabResourcesSelectionPanelColumnLockLabel = Lock +tabResourcesSelectionPanelColumnAgencyLabel = Agencia +tabResourcesSelectionPanelColumnOwnerLabel = Propietario \ No newline at end of file diff --git a/src/main/resources/org/gcube/portlets/user/td/openwidget/client/TDOpenMessages_it.properties b/src/main/resources/org/gcube/portlets/user/td/openwidget/client/TDOpenMessages_it.properties index 3415fa0..400ba3f 100644 --- a/src/main/resources/org/gcube/portlets/user/td/openwidget/client/TDOpenMessages_it.properties +++ b/src/main/resources/org/gcube/portlets/user/td/openwidget/client/TDOpenMessages_it.properties @@ -1 +1,9 @@ -buttonOpenLabel = Apri \ No newline at end of file +buttonOpenLabel = Apri +buttonSearchLabel = Cerca +buttonReloadLabel = Reload +tabResourcesSelectionPanelColumnNameLabel = Nome +tabResourcesSelectionPanelColumnTypeLabel = Tipo +tabResourcesSelectionPanelColumnTableTypeLabel = Tipo Tabella +tabResourcesSelectionPanelColumnLockLabel = Lock +tabResourcesSelectionPanelColumnAgencyLabel = Agenzia +tabResourcesSelectionPanelColumnOwnerLabel = Propietario \ No newline at end of file