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

Commit

Permalink
1052858 - i18n is incomplete, code changes needed
Browse files Browse the repository at this point in the history
  • Loading branch information
nmirasch committed Feb 5, 2014
1 parent bae6f21 commit 5916927
Show file tree
Hide file tree
Showing 18 changed files with 40 additions and 4 deletions.
Expand Up @@ -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;
Expand Down Expand Up @@ -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";
Expand Down
Expand Up @@ -37,5 +37,8 @@ public interface InboxConstants
public String name();

public String createdDate();
public String incomingChanges();
public String recentlyOpened();
public String recentlyEdited();

}
Expand Up @@ -18,3 +18,6 @@ from=From
format=Format
name=Name
createdDate=Created Date
incomingChanges=Incoming Changes
recentlyOpened=Recently Opened
recentlyEdited=Recently Edited
Expand Up @@ -3,3 +3,6 @@ from=Von
format=Format
name=Name
createdDate=Erstellungsdatum
incomingChanges=Eingehende Änderungen
recentlyOpened=Vor kurzem geöffnet
recentlyEdited=Vor kurzem bearbeitet
Expand Up @@ -3,3 +3,6 @@ from=Desde
format=Formato
name=Nombre
createdDate=Fecha de creación\:
incomingChanges=Cambios entrantes
recentlyOpened=Abierto recientemente
recentlyEdited=Modificado recientemente
Expand Up @@ -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
@@ -1,4 +1,8 @@
open=開く
from=から
format=フォーマット
name=名前
createdDate=作成日
incomingChanges=他の人が編集
recentlyOpened=最近開いたアイテム
recentlyEdited=最近編集したアイテム
Expand Up @@ -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
Expand Up @@ -3,3 +3,6 @@ from=从
format=格式
name=名称
createdDate=创建日期\:
incomingChanges=将要进行的修改
recentlyOpened=最近打开
recentlyEdited=最近编辑
Expand Up @@ -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;
Expand All @@ -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 ) {
Expand Down
Expand Up @@ -90,4 +90,6 @@ public interface M2RepoEditorConstants

String JarDetails();

String M2RepositoryContent();

}
Expand Up @@ -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
Expand Up @@ -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
Expand Up @@ -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
Expand Up @@ -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
Expand Up @@ -29,3 +29,4 @@ DecimalNumber=10 進数
Text=テキスト
AreYouSureYouWantToDeleteTheseItems=jarを削除してよろしいですか?
JarDetails=詳細
M2RepositoryContent=M2 リポジトリのコンテンツ
Expand Up @@ -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
Expand Up @@ -29,3 +29,4 @@ DecimalNumber=十进制数
Text=文本
AreYouSureYouWantToDeleteTheseItems=你确定要删除这些 JAR 文件吗?
JarDetails=细节
M2RepositoryContent=M2存儲庫內容

0 comments on commit 5916927

Please sign in to comment.