Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
BZ:1063284 - Translation issues BPMS
Browse files Browse the repository at this point in the history
(cherry picked from commit 7ef2b4c)
  • Loading branch information
nmirasch committed Feb 12, 2014
1 parent d1d38a1 commit bff7e25
Show file tree
Hide file tree
Showing 11 changed files with 115 additions and 15 deletions.
Expand Up @@ -12,6 +12,7 @@
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.RequiresResize;
import org.guvnor.m2repo.client.resources.i18n.M2RepoEditorConstants;
import org.guvnor.m2repo.client.widgets.ArtifactListPresenter;
import org.guvnor.m2repo.model.JarListPageRow;
import org.uberfire.security.Identity;
Expand Down Expand Up @@ -44,7 +45,7 @@ public void init() {
setSize( ButtonSize.MINI );
}} ) {
public String getValue( JarListPageRow row ) {
return "Download";
return M2RepoEditorConstants.INSTANCE.Download();
}
};

Expand All @@ -53,12 +54,12 @@ public void update( int index,
JarListPageRow row,
String value ) {
Window.open( getFileDownloadURL( row.getPath() ),
"downloading",
M2RepoEditorConstants.INSTANCE.Downloading(),
"resizable=no,scrollbars=yes,status=no" );
}
} );

presenter.getView().addColumn( downloadColumn, null, "Download" );
presenter.getView().addColumn( downloadColumn, null, M2RepoEditorConstants.INSTANCE.Download() );
}

initWidget( presenter.getView().asWidget() );
Expand Down
Expand Up @@ -92,4 +92,28 @@ public interface M2RepoEditorConstants

String M2RepositoryContent();

String Path();

String LastModified();

String Open();

String Download();

String NoArtifactAvailable();

String Downloading();

String ArtifactUpload();

String Cancel();

String SelectFileUpload();

String UploadedSuccessfully();

String InvalidJarNotPom();

String UploadFailed();

}
Expand Up @@ -36,6 +36,7 @@
import com.google.gwt.user.client.ui.PopupPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import org.guvnor.m2repo.client.event.M2RepoSearchEvent;
import org.guvnor.m2repo.client.resources.i18n.M2RepoEditorConstants;
import org.guvnor.m2repo.model.HTMLFileManagerFields;
import org.uberfire.client.common.BusyPopup;
import org.uberfire.client.common.FileUpload;
Expand All @@ -61,15 +62,15 @@ public class UploadForm

@PostConstruct
public void init() {
popup.add( new ModalFooter( new Button( "Cancel" ) {{
popup.add( new ModalFooter( new Button( M2RepoEditorConstants.INSTANCE.Cancel() ) {{
addClickHandler( new ClickHandler() {
@Override
public void onClick( ClickEvent event ) {
hide();
}
} );
}} ) );
popup.setTitle( "Artifact Upload" );
popup.setTitle(M2RepoEditorConstants.INSTANCE.ArtifactUpload() );
popup.add( doUploadForm() );
}

Expand Down Expand Up @@ -103,7 +104,7 @@ public void onSubmit( final Form.SubmitEvent event ) {
String fileName = up.getFilename();
if ( fileName == null || "".equals( fileName ) ) {
BusyPopup.close();
Window.alert( "Please select a file to upload" );
Window.alert( M2RepoEditorConstants.INSTANCE.SelectFileUpload() );
event.cancel();
}
}
Expand All @@ -113,7 +114,7 @@ public void onSubmit( final Form.SubmitEvent event ) {
public void onSubmitComplete( final Form.SubmitCompleteEvent event ) {
if ( "OK".equalsIgnoreCase( event.getResults() ) ) {
BusyPopup.close();
Window.alert( "Uploaded successfully" );
Window.alert( M2RepoEditorConstants.INSTANCE.UploadedSuccessfully() );
hiddenFieldsPanel.setVisible( false );
hiddenArtifactIdField.setText( null );
hiddenGroupIdField.setText( null );
Expand All @@ -125,12 +126,12 @@ public void onSubmitComplete( final Form.SubmitCompleteEvent event ) {
hide();
} else if ( "NO VALID POM".equalsIgnoreCase( event.getResults() ) ) {
BusyPopup.close();
Window.alert( "The Jar does not contain a valid POM file. Please specify GAV info manually." );
Window.alert( M2RepoEditorConstants.INSTANCE.InvalidJarNotPom());
hiddenFieldsPanel.setVisible( true );

} else {
BusyPopup.close();
ErrorPopup.showMessage( "Upload failed:" + event.getResults() );
ErrorPopup.showMessage( M2RepoEditorConstants.INSTANCE.UploadFailed() + event.getResults() );

hiddenFieldsPanel.setVisible( false );
hiddenArtifactIdField.setText( null );
Expand Down
Expand Up @@ -38,6 +38,7 @@
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.view.client.HasData;
import org.guvnor.m2repo.client.editor.JarDetailPopup;
import org.guvnor.m2repo.client.resources.i18n.M2RepoEditorConstants;
import org.guvnor.m2repo.model.JarListPageRow;
import org.guvnor.m2repo.service.M2RepoService;
import org.jboss.errai.common.client.api.Caller;
Expand Down Expand Up @@ -87,7 +88,7 @@ public void init( final ArtifactListPresenter presenter ) {
this.presenter = presenter;

// Set the message to display when the table is empty.
final Label emptyTable = new Label( "No artifacts available" );
final Label emptyTable = new Label( M2RepoEditorConstants.INSTANCE.NoArtifactAvailable() );
emptyTable.setStyleName( "" );
cellTable.setEmptyTableWidget( emptyTable );

Expand All @@ -113,7 +114,7 @@ public String getValue( JarListPageRow row ) {
return row.getName();
}
};
cellTable.addColumn( nameColumn, new ResizableHeader( "Name",
cellTable.addColumn( nameColumn, new ResizableHeader(M2RepoEditorConstants.INSTANCE.Name(),
cellTable,
nameColumn ) );

Expand All @@ -123,7 +124,7 @@ public String getValue( JarListPageRow row ) {
return row.getPath();
}
};
cellTable.addColumn( pathColumn, new ResizableHeader( "Path",
cellTable.addColumn( pathColumn, new ResizableHeader( M2RepoEditorConstants.INSTANCE.Path(),
cellTable,
pathColumn ) );

Expand All @@ -133,7 +134,7 @@ public Date getValue( JarListPageRow row ) {
return row.getLastModified();
}
};
cellTable.addColumn( lastModifiedColumn, new ResizableHeader( "LastModified",
cellTable.addColumn( lastModifiedColumn, new ResizableHeader( M2RepoEditorConstants.INSTANCE.LastModified(),
cellTable,
lastModifiedColumn ) );

Expand All @@ -142,7 +143,7 @@ public Date getValue( JarListPageRow row ) {
setSize( ButtonSize.MINI );
}} ) {
public String getValue( JarListPageRow row ) {
return "Open";
return M2RepoEditorConstants.INSTANCE.Open();
}
};
openColumn.setFieldUpdater( new FieldUpdater<JarListPageRow, String>() {
Expand All @@ -158,7 +159,7 @@ public void callback( final String response ) {
} ).loadPOMStringFromJar( row.getPath() );
}
} );
cellTable.addColumn( openColumn, new ResizableHeader( "Open",
cellTable.addColumn( openColumn, new ResizableHeader( M2RepoEditorConstants.INSTANCE.Open(),
cellTable,
openColumn ) );
}
Expand Down
Expand Up @@ -46,3 +46,18 @@ Text=Text
AreYouSureYouWantToDeleteTheseItems=Are you sure you want to delete these jars?
JarDetails=JAR details
M2RepositoryContent=M2 Repository Content
Path=Path
LastModified=LastModified
Open=Open
Download=Download
ArtifactUpload=Artifact upload
NoArtifactAvailable=No artifacts available
Downloading=Downloading
Cancel=Cancel
SelectFileUpload=Please select a file to upload
UploadedSuccessfully=Uploaded successfully
InvalidJarNotPom=The Jar does not contain a valid POM file. Please specify GAV info manually.
UploadFailed=Upload failed:



Expand Up @@ -30,3 +30,13 @@ Text=Text
AreYouSureYouWantToDeleteTheseItems=Sind Sie sicher, dass Sie diese jars löschen möchten?
JarDetails=JAR details
M2RepositoryContent=M2 Repository Content
Path=Pfad
Open=Öffnen
Download=Herunterladen
ArtifactUpload=Artifact Hochladen
NoArtifactAvailable=Keine artifact verfügbar
Downloading=Herunterladen
Cancel=Abbrechen
SelectFileUpload=Datei zum Hochladen
UploadedSuccessfully=Erfolgreich hochgeladen
UploadFailed=Hochladen fehlgeschlagen\:
Expand Up @@ -30,3 +30,15 @@ Text=Texto
AreYouSureYouWantToDeleteTheseItems=¿Está seguro que desea borrar estos JAR?
JarDetails=Detalles del JAR
M2RepositoryContent=Repositorio de contenido M2
Path=Ruta
LastModified=Fecha última modificación
Open=Abrir
Download=Descargar
ArtifactUpload=Cargar artefacto
NoArtifactAvailable=No hay artefactos disponibles
Downloading=Descargando
Cancel=Cancelar
SelectFileUpload=Por favor seleccione el archivo a cargar
UploadedSuccessfully=Guardado exitósamente
InvalidJarNotPom=El Jar no contiene un fichero POM válido. Especificar GAV manualmente.
UploadFailed=Carga fallida\:
Expand Up @@ -30,3 +30,14 @@ Text=Texte
AreYouSureYouWantToDeleteTheseItems=Êtes-vous certain de vouloir supprimer ces jars ?
JarDetails=JAR Détails
M2RepositoryContent=M2 Référentiel Contenu
Path=Chemin
LastModified=Dernière modification
Open=Ouvrir
Download=Télécharger
ArtifactUpload=Artefact télécharger
NoArtifactAvailable=Aucun artefact disponible
Downloading=Téléchargement
Cancel=Annuler
SelectFileUpload=Veuillez sélectionner un fichier à télécharger
UploadedSuccessfully=Téléchargé
UploadFailed=Échec Téléchargement \:
Expand Up @@ -30,3 +30,10 @@ Text=テキスト
AreYouSureYouWantToDeleteTheseItems=jarを削除してよろしいですか?
JarDetails=詳細
M2RepositoryContent=M2 リポジトリのコンテンツ
Path=パス
Open=開く
Download=ダウンロード
Cancel=キャンセル
SelectFileUpload=アップロードするファイル を選択してください
UploadedSuccessfully=正常にアップロードされました
UploadFailed=アップロードに失敗しました\:
Expand Up @@ -30,3 +30,13 @@ Text=Texto
AreYouSureYouWantToDeleteTheseItems=Você tem certeza que deseja excluir esses jars?
JarDetails=JAR Detalhes
M2RepositoryContent=M2 Repositório do Conteúdo
Path=Caminho
Open=Abrir
Download=Download
ArtifactUpload=Carregar artefato
NoArtifactAvailable=Nenhum artefato disponível
Downloading=O download
Cancel=Cancelar
SelectFileUpload=Arquivo para Upload
UploadedSuccessfully=Carregando com Êxito
UploadFailed=Falha no carregamento\:
Expand Up @@ -30,3 +30,11 @@ Text=文本
AreYouSureYouWantToDeleteTheseItems=你确定要删除这些 JAR 文件吗?
JarDetails=细节
M2RepositoryContent=M2存儲庫內容
Path=路径
Open=打开
Download=下载
ArtifactUpload=上传
Cancel=取消
SelectFileUpload=请选择一个文件上传
UploadedSuccessfully=成功上传
UploadFailed=上传失败:

0 comments on commit bff7e25

Please sign in to comment.