diff --git a/guvnor-inbox/guvnor-inbox-client/src/main/java/org/guvnor/inbox/client/InboxPresenter.java b/guvnor-inbox/guvnor-inbox-client/src/main/java/org/guvnor/inbox/client/InboxPresenter.java index 4a861d0014..1a2e1f090e 100644 --- a/guvnor-inbox/guvnor-inbox-client/src/main/java/org/guvnor/inbox/client/InboxPresenter.java +++ b/guvnor-inbox/guvnor-inbox-client/src/main/java/org/guvnor/inbox/client/InboxPresenter.java @@ -20,6 +20,7 @@ import javax.inject.Inject; import com.google.gwt.user.client.ui.IsWidget; +import org.guvnor.inbox.client.resources.i18n.InboxConstants; import org.guvnor.inbox.model.InboxPageRow; import org.guvnor.inbox.service.InboxService; import org.jboss.errai.common.client.api.Caller; @@ -79,11 +80,11 @@ public IsWidget getWidget() { public String getTitle() { //TODO: this does not work. if ( INCOMING_ID.equals( inboxName ) ) { - return "Incoming Changes"; + return InboxConstants.INSTANCE.incomingChanges(); } else if ( RECENT_EDITED_ID.equals( inboxName ) ) { - return "Recently Edited"; + return InboxConstants.INSTANCE.recentlyEdited(); } else if ( RECENT_VIEWED_ID.equals( inboxName ) ) { - return "Recently Opened"; + return InboxConstants.INSTANCE.recentlyOpened(); } return "Incoming Changes"; diff --git a/guvnor-inbox/guvnor-inbox-client/src/main/java/org/guvnor/inbox/client/resources/i18n/InboxConstants.java b/guvnor-inbox/guvnor-inbox-client/src/main/java/org/guvnor/inbox/client/resources/i18n/InboxConstants.java index 4b104ff44a..68b9dc19f1 100644 --- a/guvnor-inbox/guvnor-inbox-client/src/main/java/org/guvnor/inbox/client/resources/i18n/InboxConstants.java +++ b/guvnor-inbox/guvnor-inbox-client/src/main/java/org/guvnor/inbox/client/resources/i18n/InboxConstants.java @@ -37,5 +37,8 @@ public interface InboxConstants public String name(); public String createdDate(); + public String incomingChanges(); + public String recentlyOpened(); + public String recentlyEdited(); } diff --git a/guvnor-inbox/guvnor-inbox-client/src/main/resources/org/guvnor/inbox/client/resources/i18n/InboxConstants.properties b/guvnor-inbox/guvnor-inbox-client/src/main/resources/org/guvnor/inbox/client/resources/i18n/InboxConstants.properties index 455c6eef99..7875a8e22e 100644 --- a/guvnor-inbox/guvnor-inbox-client/src/main/resources/org/guvnor/inbox/client/resources/i18n/InboxConstants.properties +++ b/guvnor-inbox/guvnor-inbox-client/src/main/resources/org/guvnor/inbox/client/resources/i18n/InboxConstants.properties @@ -18,3 +18,6 @@ from=From format=Format name=Name createdDate=Created Date +incomingChanges=Incoming Changes +recentlyOpened=Recently Opened +recentlyEdited=Recently Edited diff --git a/guvnor-inbox/guvnor-inbox-client/src/main/resources/org/guvnor/inbox/client/resources/i18n/InboxConstants_de.properties b/guvnor-inbox/guvnor-inbox-client/src/main/resources/org/guvnor/inbox/client/resources/i18n/InboxConstants_de.properties index be77605f2a..34ff4771e2 100644 --- a/guvnor-inbox/guvnor-inbox-client/src/main/resources/org/guvnor/inbox/client/resources/i18n/InboxConstants_de.properties +++ b/guvnor-inbox/guvnor-inbox-client/src/main/resources/org/guvnor/inbox/client/resources/i18n/InboxConstants_de.properties @@ -3,3 +3,6 @@ from=Von format=Format name=Name createdDate=Erstellungsdatum +incomingChanges=Eingehende Änderungen +recentlyOpened=Vor kurzem geöffnet +recentlyEdited=Vor kurzem bearbeitet diff --git a/guvnor-inbox/guvnor-inbox-client/src/main/resources/org/guvnor/inbox/client/resources/i18n/InboxConstants_es.properties b/guvnor-inbox/guvnor-inbox-client/src/main/resources/org/guvnor/inbox/client/resources/i18n/InboxConstants_es.properties index 2ba233eb49..24adcc0aa4 100644 --- a/guvnor-inbox/guvnor-inbox-client/src/main/resources/org/guvnor/inbox/client/resources/i18n/InboxConstants_es.properties +++ b/guvnor-inbox/guvnor-inbox-client/src/main/resources/org/guvnor/inbox/client/resources/i18n/InboxConstants_es.properties @@ -3,3 +3,6 @@ from=Desde format=Formato name=Nombre createdDate=Fecha de creación\: +incomingChanges=Cambios entrantes +recentlyOpened=Abierto recientemente +recentlyEdited=Modificado recientemente diff --git a/guvnor-inbox/guvnor-inbox-client/src/main/resources/org/guvnor/inbox/client/resources/i18n/InboxConstants_fr.properties b/guvnor-inbox/guvnor-inbox-client/src/main/resources/org/guvnor/inbox/client/resources/i18n/InboxConstants_fr.properties index 66a512764b..b7078bfeb5 100644 --- a/guvnor-inbox/guvnor-inbox-client/src/main/resources/org/guvnor/inbox/client/resources/i18n/InboxConstants_fr.properties +++ b/guvnor-inbox/guvnor-inbox-client/src/main/resources/org/guvnor/inbox/client/resources/i18n/InboxConstants_fr.properties @@ -3,3 +3,6 @@ from=De format=Format name=Nom createdDate=Date de création\: +incomingChanges=Changements imminents +recentlyOpened=Ouvert récemment +recentlyEdited=Modifié récemment diff --git a/guvnor-inbox/guvnor-inbox-client/src/main/resources/org/guvnor/inbox/client/resources/i18n/InboxConstants_ja.properties b/guvnor-inbox/guvnor-inbox-client/src/main/resources/org/guvnor/inbox/client/resources/i18n/InboxConstants_ja.properties index b1c86d1673..09673ac3c7 100644 --- a/guvnor-inbox/guvnor-inbox-client/src/main/resources/org/guvnor/inbox/client/resources/i18n/InboxConstants_ja.properties +++ b/guvnor-inbox/guvnor-inbox-client/src/main/resources/org/guvnor/inbox/client/resources/i18n/InboxConstants_ja.properties @@ -1,4 +1,8 @@ open=開く +from=から format=フォーマット name=名前 createdDate=作成日 +incomingChanges=他の人が編集 +recentlyOpened=最近開いたアイテム +recentlyEdited=最近編集したアイテム diff --git a/guvnor-inbox/guvnor-inbox-client/src/main/resources/org/guvnor/inbox/client/resources/i18n/InboxConstants_pt_BR.properties b/guvnor-inbox/guvnor-inbox-client/src/main/resources/org/guvnor/inbox/client/resources/i18n/InboxConstants_pt_BR.properties index 02fa8ad73c..3c5fe1437d 100644 --- a/guvnor-inbox/guvnor-inbox-client/src/main/resources/org/guvnor/inbox/client/resources/i18n/InboxConstants_pt_BR.properties +++ b/guvnor-inbox/guvnor-inbox-client/src/main/resources/org/guvnor/inbox/client/resources/i18n/InboxConstants_pt_BR.properties @@ -3,3 +3,6 @@ from=A partir de format=Formato name=Nome createdDate=Data criada\: +incomingChanges=Recebendo Alterações +recentlyOpened=Aberto recentemente +recentlyEdited=Editado recentemente diff --git a/guvnor-inbox/guvnor-inbox-client/src/main/resources/org/guvnor/inbox/client/resources/i18n/InboxConstants_zh_CN.properties b/guvnor-inbox/guvnor-inbox-client/src/main/resources/org/guvnor/inbox/client/resources/i18n/InboxConstants_zh_CN.properties index 077b66f4d1..fd5dbd0e47 100644 --- a/guvnor-inbox/guvnor-inbox-client/src/main/resources/org/guvnor/inbox/client/resources/i18n/InboxConstants_zh_CN.properties +++ b/guvnor-inbox/guvnor-inbox-client/src/main/resources/org/guvnor/inbox/client/resources/i18n/InboxConstants_zh_CN.properties @@ -3,3 +3,6 @@ from=从 format=格式 name=名称 createdDate=创建日期\: +incomingChanges=将要进行的修改 +recentlyOpened=最近打开 +recentlyEdited=最近编辑 diff --git a/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/java/org/guvnor/m2repo/client/M2RepoEditorPresenter.java b/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/java/org/guvnor/m2repo/client/M2RepoEditorPresenter.java index 20602e0a8d..3e9db9343c 100644 --- a/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/java/org/guvnor/m2repo/client/M2RepoEditorPresenter.java +++ b/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/java/org/guvnor/m2repo/client/M2RepoEditorPresenter.java @@ -23,6 +23,7 @@ import org.guvnor.m2repo.client.editor.MavenRepositoryPagedJarTable; import org.guvnor.m2repo.client.event.M2RepoRefreshEvent; import org.guvnor.m2repo.client.event.M2RepoSearchEvent; +import org.guvnor.m2repo.client.resources.i18n.M2RepoEditorConstants; import org.uberfire.client.annotations.WorkbenchPartTitle; import org.uberfire.client.annotations.WorkbenchPartView; import org.uberfire.client.annotations.WorkbenchScreen; @@ -47,7 +48,7 @@ public MavenRepositoryPagedJarTable getWidget() { @WorkbenchPartTitle public String getTitle() { - return "M2 Repository Content"; + return M2RepoEditorConstants.INSTANCE.M2RepositoryContent(); } public void refreshEvent( @Observes final M2RepoRefreshEvent event ) { diff --git a/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/java/org/guvnor/m2repo/client/resources/i18n/M2RepoEditorConstants.java b/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/java/org/guvnor/m2repo/client/resources/i18n/M2RepoEditorConstants.java index ae4a158048..fbdabd3a21 100644 --- a/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/java/org/guvnor/m2repo/client/resources/i18n/M2RepoEditorConstants.java +++ b/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/java/org/guvnor/m2repo/client/resources/i18n/M2RepoEditorConstants.java @@ -90,4 +90,6 @@ public interface M2RepoEditorConstants String JarDetails(); + String M2RepositoryContent(); + } diff --git a/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/resources/org/guvnor/m2repo/client/resources/i18n/M2RepoEditorConstants.properties b/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/resources/org/guvnor/m2repo/client/resources/i18n/M2RepoEditorConstants.properties index 7857f7c4dd..569a0a8311 100644 --- a/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/resources/org/guvnor/m2repo/client/resources/i18n/M2RepoEditorConstants.properties +++ b/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/resources/org/guvnor/m2repo/client/resources/i18n/M2RepoEditorConstants.properties @@ -45,3 +45,4 @@ DecimalNumber=Decimal number Text=Text AreYouSureYouWantToDeleteTheseItems=Are you sure you want to delete these jars? JarDetails=JAR details +M2RepositoryContent=M2 Repository Content diff --git a/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/resources/org/guvnor/m2repo/client/resources/i18n/M2RepoEditorConstants_de.properties b/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/resources/org/guvnor/m2repo/client/resources/i18n/M2RepoEditorConstants_de.properties index f7e7c6b301..b195e576c5 100644 --- a/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/resources/org/guvnor/m2repo/client/resources/i18n/M2RepoEditorConstants_de.properties +++ b/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/resources/org/guvnor/m2repo/client/resources/i18n/M2RepoEditorConstants_de.properties @@ -29,3 +29,4 @@ DecimalNumber=Dezimalzahl Text=Text AreYouSureYouWantToDeleteTheseItems=Sind Sie sicher, dass Sie diese jars löschen möchten? JarDetails=JAR details +M2RepositoryContent=M2 Repository Content diff --git a/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/resources/org/guvnor/m2repo/client/resources/i18n/M2RepoEditorConstants_es.properties b/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/resources/org/guvnor/m2repo/client/resources/i18n/M2RepoEditorConstants_es.properties index 3eb496d237..213aec4c42 100644 --- a/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/resources/org/guvnor/m2repo/client/resources/i18n/M2RepoEditorConstants_es.properties +++ b/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/resources/org/guvnor/m2repo/client/resources/i18n/M2RepoEditorConstants_es.properties @@ -29,3 +29,4 @@ DecimalNumber=Número decimal Text=Texto AreYouSureYouWantToDeleteTheseItems=¿Está seguro que desea borrar estos JAR? JarDetails=Detalles del JAR +M2RepositoryContent=Repositorio de contenido M2 diff --git a/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/resources/org/guvnor/m2repo/client/resources/i18n/M2RepoEditorConstants_fr.properties b/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/resources/org/guvnor/m2repo/client/resources/i18n/M2RepoEditorConstants_fr.properties index 8a2953ed6e..24c9f05619 100644 --- a/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/resources/org/guvnor/m2repo/client/resources/i18n/M2RepoEditorConstants_fr.properties +++ b/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/resources/org/guvnor/m2repo/client/resources/i18n/M2RepoEditorConstants_fr.properties @@ -29,3 +29,4 @@ DecimalNumber=Nombre décimal Text=Texte AreYouSureYouWantToDeleteTheseItems=Êtes-vous certain de vouloir supprimer ces jars ? JarDetails=JAR Détails +M2RepositoryContent=M2 Référentiel Contenu diff --git a/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/resources/org/guvnor/m2repo/client/resources/i18n/M2RepoEditorConstants_ja.properties b/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/resources/org/guvnor/m2repo/client/resources/i18n/M2RepoEditorConstants_ja.properties index c9242f89d4..29f2555d8f 100644 --- a/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/resources/org/guvnor/m2repo/client/resources/i18n/M2RepoEditorConstants_ja.properties +++ b/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/resources/org/guvnor/m2repo/client/resources/i18n/M2RepoEditorConstants_ja.properties @@ -29,3 +29,4 @@ DecimalNumber=10 進数 Text=テキスト AreYouSureYouWantToDeleteTheseItems=jarを削除してよろしいですか? JarDetails=詳細 +M2RepositoryContent=M2 リポジトリのコンテンツ diff --git a/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/resources/org/guvnor/m2repo/client/resources/i18n/M2RepoEditorConstants_pt_BR.properties b/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/resources/org/guvnor/m2repo/client/resources/i18n/M2RepoEditorConstants_pt_BR.properties index faa468055d..dc19ee690b 100644 --- a/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/resources/org/guvnor/m2repo/client/resources/i18n/M2RepoEditorConstants_pt_BR.properties +++ b/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/resources/org/guvnor/m2repo/client/resources/i18n/M2RepoEditorConstants_pt_BR.properties @@ -29,3 +29,4 @@ DecimalNumber=Numero decimal Text=Texto AreYouSureYouWantToDeleteTheseItems=Você tem certeza que deseja excluir esses jars? JarDetails=JAR Detalhes +M2RepositoryContent=M2 Repositório do Conteúdo diff --git a/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/resources/org/guvnor/m2repo/client/resources/i18n/M2RepoEditorConstants_zh_CN.properties b/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/resources/org/guvnor/m2repo/client/resources/i18n/M2RepoEditorConstants_zh_CN.properties index 2d082c3477..779aeade68 100644 --- a/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/resources/org/guvnor/m2repo/client/resources/i18n/M2RepoEditorConstants_zh_CN.properties +++ b/guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/resources/org/guvnor/m2repo/client/resources/i18n/M2RepoEditorConstants_zh_CN.properties @@ -29,3 +29,4 @@ DecimalNumber=十进制数 Text=文本 AreYouSureYouWantToDeleteTheseItems=你确定要删除这些 JAR 文件吗? JarDetails=细节 +M2RepositoryContent=M2存儲庫內容