Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Commit

Permalink
BZ-1070148: internactionalize resource definition descriptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrenaat committed Mar 4, 2014
1 parent 8597727 commit ff0eb57
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
Expand Up @@ -9,4 +9,6 @@ public interface DesignerEditorConstants extends
DesignerEditorConstants INSTANCE = GWT.create(DesignerEditorConstants.class);

String businessProcess();

String businessProcessResourceTypeDescription();
}
Expand Up @@ -4,6 +4,7 @@

import com.google.gwt.user.client.ui.IsWidget;
import org.jbpm.designer.client.resources.DesignerEditorResources;
import org.jbpm.designer.client.resources.i18n.DesignerEditorConstants;
import org.jbpm.designer.type.Bpmn2TypeDefinition;
import org.uberfire.client.workbench.type.ClientResourceType;
import com.google.gwt.user.client.ui.Image;
Expand All @@ -19,4 +20,11 @@ public class Bpmn2Type
public IsWidget getIcon() {
return IMAGE;
}

@Override
public String getDescription() {
String desc = DesignerEditorConstants.INSTANCE.businessProcessResourceTypeDescription();
if ( desc == null || desc.isEmpty() ) return super.getDescription();
return desc;
}
}
@@ -1 +1,2 @@
businessProcess=Business Process
businessProcess=Business Process
businessProcessResourceTypeDescription=Business Processes
@@ -1,2 +1,3 @@
# translation auto-copied from project jbpm-designer, version 6.0.0, document org.jbpm/jbpm-designer-client/org/jbpm/designer/client/resources/i18n/DesignerEditorConstants, author nmirasch
businessProcess=Proceso de Negocio
businessProcessResourceTypeDescription=Procesos de Negocio

0 comments on commit ff0eb57

Please sign in to comment.