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
This commit is contained in:
Giancarlo Panichi 2015-10-02 16:20:47 +00:00 committed by Giancarlo Panichi
parent 487911b633
commit d1237ffde9
5 changed files with 69 additions and 11 deletions

View File

@ -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();
}

View File

@ -87,6 +87,8 @@ public class TabResourcesSelectionPanel extends ContentPanel implements
SafeHtml format(String value, String desc);
}
private Grid<TabResource> 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<TabResource> identity = new IdentityValueProvider<TabResource>();
@ -166,19 +171,19 @@ public class TabResourcesSelectionPanel extends ContentPanel implements
store.setEnableFilters(true);
ColumnConfig<TabResource, String> nameColumn = new ColumnConfig<TabResource, String>(
properties.name(), 90, "Name");
properties.name(), 90, msgsTDOpen.tabResourcesSelectionPanelColumnNameLabel());
ColumnConfig<TabResource, String> typeColumn = new ColumnConfig<TabResource, String>(
properties.tabResourceType(), 30, "Type");
properties.tabResourceType(), 30, msgsTDOpen.tabResourcesSelectionPanelColumnTypeLabel());
ColumnConfig<TabResource, String> tableTypeNameColumn = new ColumnConfig<TabResource, String>(
properties.tableTypeName(), 30, "Table Type");
properties.tableTypeName(), 30, msgsTDOpen.tabResourcesSelectionPanelColumnTableTypeLabel());
ColumnConfig<TabResource, Boolean> lockedColumn = new ColumnConfig<TabResource, Boolean>(
properties.locked(), 20, "Lock");
properties.locked(), 20, msgsTDOpen.tabResourcesSelectionPanelColumnLockLabel());
ColumnConfig<TabResource, String> agencyColumn = new ColumnConfig<TabResource, String>(
properties.agency(), 60, "Agency");
properties.agency(), 60, msgsTDOpen.tabResourcesSelectionPanelColumnAgencyLabel());
ColumnConfig<TabResource, String> ownerColumn = new ColumnConfig<TabResource, String>(
properties.ownerLogin(), 70, "Owner");
properties.ownerLogin(), 70, msgsTDOpen.tabResourcesSelectionPanelColumnOwnerLabel());
ColumnConfig<TabResource, Date> dateColumn = new ColumnConfig<TabResource, Date>(
properties.date(), 50, "Creation Date");
properties.date(), 50, msgsTDOpen.tabResourcesSelectionPanelColumnCreationDateLabel());
dateColumn.setCell(new DateCell(sdf));

View File

@ -1 +1,9 @@
buttonOpenLabel = Open
buttonSearchLabel = Search
buttonReloadLabel = Reload
tabResourcesSelectionPanelColumnNameLabel = Name
tabResourcesSelectionPanelColumnTypeLabel = Type
tabResourcesSelectionPanelColumnTableTypeLabel = Table Type
tabResourcesSelectionPanelColumnLockLabel = Lock
tabResourcesSelectionPanelColumnAgencyLabel = Agency
tabResourcesSelectionPanelColumnOwnerLabel = Owner

View File

@ -1 +1,9 @@
buttonOpenLabel = Abre
buttonOpenLabel = Abre
buttonSearchLabel = Búsqueda
buttonReloadLabel = Recargar
tabResourcesSelectionPanelColumnNameLabel = Nombre
tabResourcesSelectionPanelColumnTypeLabel = Tipo
tabResourcesSelectionPanelColumnTableTypeLabel = Tipo Tabla
tabResourcesSelectionPanelColumnLockLabel = Lock
tabResourcesSelectionPanelColumnAgencyLabel = Agencia
tabResourcesSelectionPanelColumnOwnerLabel = Propietario

View File

@ -1 +1,9 @@
buttonOpenLabel = Apri
buttonOpenLabel = Apri
buttonSearchLabel = Cerca
buttonReloadLabel = Reload
tabResourcesSelectionPanelColumnNameLabel = Nome
tabResourcesSelectionPanelColumnTypeLabel = Tipo
tabResourcesSelectionPanelColumnTableTypeLabel = Tipo Tabella
tabResourcesSelectionPanelColumnLockLabel = Lock
tabResourcesSelectionPanelColumnAgencyLabel = Agenzia
tabResourcesSelectionPanelColumnOwnerLabel = Propietario