915: TDM - Support the Spanish language
Task-Url: https://support.d4science.org/issues/915 Updated Spanish Support git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-csv-import-widget@119854 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
82e71a03c4
commit
34b1288053
8
pom.xml
8
pom.xml
|
@ -176,6 +176,14 @@
|
|||
<build>
|
||||
<!-- Generate compiled stuff in the folder used for developing mode -->
|
||||
<outputDirectory>${webappDirectory}/WEB-INF/classes</outputDirectory>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
<includes>
|
||||
<include>**/*.*</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
|
||||
<plugins>
|
||||
<plugin>
|
||||
|
|
|
@ -4,8 +4,8 @@ import com.google.gwt.i18n.client.Messages;
|
|||
|
||||
/**
|
||||
*
|
||||
* @author giancarlo
|
||||
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
* @author giancarlo email: <a
|
||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public interface CSVImportWizardTDMessages extends Messages {
|
||||
|
@ -196,6 +196,4 @@ public interface CSVImportWizardTDMessages extends Messages {
|
|||
@DefaultMessage("Error uploading the csv file")
|
||||
String errorUploadingCSVFileHead();
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -54,8 +54,9 @@ public class FileUploadPanel extends FormPanel {
|
|||
|
||||
public FileUploadPanel(ResourceBundle res, final CSVUploadFileCard card,
|
||||
final CSVImportSession importSession) {
|
||||
|
||||
initMessages();
|
||||
setId("LocalUploadPanel");
|
||||
|
||||
setLabelAlign(LabelAlign.TOP);
|
||||
getElement().setPadding(new Padding(5));
|
||||
|
||||
|
@ -81,9 +82,10 @@ public class FileUploadPanel extends FormPanel {
|
|||
fUpField.setName("uploadFormElement");
|
||||
fUpField.setWidth("100%");
|
||||
|
||||
content.add(new FieldLabel(fUpField,
|
||||
msgs.fUpFieldLabel()),
|
||||
new VerticalLayoutData(-2, -1));
|
||||
FieldLabel fUpFieldLabel = new FieldLabel(fUpField,
|
||||
msgs.fUpFieldLabel());
|
||||
|
||||
content.add(fUpFieldLabel, new VerticalLayoutData(-2, -1));
|
||||
|
||||
btnUpload = new TextButton(msgs.btnUploadText());
|
||||
content.add(btnUpload, new VerticalLayoutData(-1, -1));
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
*/
|
||||
package org.gcube.portlets.user.td.csvimportwidget.client;
|
||||
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.client.CommonMessages;
|
||||
import org.gcube.portlets.user.td.wizardwidget.client.WizardCard;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.csv.CSVImportSession;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.source.FileSource;
|
||||
|
@ -34,11 +35,13 @@ public class SourceSelectionCard extends WizardCard {
|
|||
|
||||
private final CSVImportSession importSession;
|
||||
|
||||
private CommonMessages msgsCommon;
|
||||
|
||||
|
||||
|
||||
public SourceSelectionCard(final CSVImportSession importSession) {
|
||||
super(msgs.csvSourceSelection(), "");
|
||||
|
||||
initMessages();
|
||||
this.importSession = importSession;
|
||||
// Default
|
||||
importSession.setSource(fileSource);
|
||||
|
@ -49,8 +52,8 @@ public class SourceSelectionCard extends WizardCard {
|
|||
|
||||
Radio radioFileSource = new Radio();
|
||||
radioFileSource.setBoxLabel("<p style='display:inline-table;'><b>"
|
||||
+ fileSource.getName() + "</b><br>"
|
||||
+ fileSource.getDescription() + "</p>");
|
||||
+ msgsCommon.fileSourceName() + "</b><br>"
|
||||
+ msgsCommon.fileSourceDescription() + "</p>");
|
||||
radioFileSource.setName(fileSource.getName());
|
||||
radioFileSource.setStylePrimaryName(res.wizardCSS()
|
||||
.getImportSelectionSource());
|
||||
|
@ -58,8 +61,8 @@ public class SourceSelectionCard extends WizardCard {
|
|||
|
||||
Radio radioWorkspaceSource = new Radio();
|
||||
radioWorkspaceSource.setBoxLabel("<p style='display:inline-table;'><b>"
|
||||
+ workspaceSource.getName() + "</b><br>"
|
||||
+ workspaceSource.getDescription() + "</p>");
|
||||
+ msgsCommon.workspaceSourceName() + "</b><br>"
|
||||
+ msgsCommon.workspaceSourceDescription() + "</p>");
|
||||
radioWorkspaceSource.setName(workspaceSource.getName());
|
||||
radioWorkspaceSource.setStylePrimaryName(res.wizardCSS()
|
||||
.getImportSelectionSource());
|
||||
|
@ -104,6 +107,10 @@ public class SourceSelectionCard extends WizardCard {
|
|||
|
||||
}
|
||||
|
||||
protected void initMessages(){
|
||||
msgsCommon = GWT.create(CommonMessages.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setup() {
|
||||
Log.debug("Setup Card");
|
||||
|
|
|
@ -30,7 +30,7 @@ fieldNameEmptyText = Introducir nombre...
|
|||
fieldNameLabel = Nombre
|
||||
txtAreaDescriptionEmptyText = Introducir descripción...
|
||||
txtAreaDescriptionLabel = Descripción
|
||||
txtAreaRightsEmptyText = Introducir licencia...
|
||||
txtAreaRightsEmptyText = Introducir derèchos...
|
||||
txtAreaRightsLabel = Derèchos
|
||||
fieldValidFromLabel = Válida Desde
|
||||
fieldValidUntilToLabel = Válida Hasta
|
||||
|
|
Loading…
Reference in New Issue