summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-12-04 09:15:44 (EST)
committer Stephan Born2012-12-04 09:15:44 (EST)
commit6220972e3f651749c5c35ba56ae5d3e7e8f8ae18 (patch)
tree64fd2e38df1108113324cadf06f537e793f7d225
parentc939bc6576471202af30d56386c77d43f8c29550 (diff)
downloadorg.eclipse.stardust.ui.web-6220972e3f651749c5c35ba56ae5d3e7e8f8ae18.zip
org.eclipse.stardust.ui.web-6220972e3f651749c5c35ba56ae5d3e7e8f8ae18.tar.gz
org.eclipse.stardust.ui.web-6220972e3f651749c5c35ba56ae5d3e7e8f8ae18.tar.bz2
JiraID: CRNT-27233
I18N missing in web based modeler for some hard coded labels git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@61333 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/model/element/DefaultNames.java34
-rw-r--r--web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/model/element/ProcessChangeCommandHandler.java6
-rw-r--r--web-modeler/src/main/resources/bpm-modeler-messages_de.properties9
-rw-r--r--web-modeler/src/main/resources/bpm-modeler-messages_en.properties10
-rw-r--r--web-modeler/src/main/resources/bpm-modeler-messages_zh_CN.properties10
5 files changed, 54 insertions, 15 deletions
diff --git a/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/model/element/DefaultNames.java b/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/model/element/DefaultNames.java
new file mode 100644
index 0000000..d955709
--- /dev/null
+++ b/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/model/element/DefaultNames.java
@@ -0,0 +1,34 @@
+/*******************************************************************************
+ * Copyright (c) 2011 SunGard CSA LLC and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * SunGard CSA LLC - initial API and implementation and/or initial documentation
+ *******************************************************************************/
+package org.eclipse.stardust.ui.web.modeler.edit.model.element;
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+public class DefaultNames
+{
+ private static final String BUNDLE_NAME = "bpm-modeler-messages"; //$NON-NLS-1$
+
+ private DefaultNames()
+ {}
+
+ public static String getString(String key)
+ {
+ try
+ {
+ return ResourceBundle.getBundle(BUNDLE_NAME).getString(key);
+ }
+ catch (MissingResourceException e)
+ {
+ return '!' + key + '!';
+ }
+ }
+}
diff --git a/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/model/element/ProcessChangeCommandHandler.java b/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/model/element/ProcessChangeCommandHandler.java
index baa5acd..b148477 100644
--- a/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/model/element/ProcessChangeCommandHandler.java
+++ b/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/edit/model/element/ProcessChangeCommandHandler.java
@@ -4,8 +4,6 @@
*/
package org.eclipse.stardust.ui.web.modeler.edit.model.element;
-import static org.eclipse.stardust.engine.api.model.PredefinedConstants.ADMINISTRATOR_ROLE;
-import static org.eclipse.stardust.model.xpdl.builder.BpmModelBuilder.newManualTrigger;
import static org.eclipse.stardust.model.xpdl.builder.BpmModelBuilder.newProcessDefinition;
import static org.eclipse.stardust.model.xpdl.builder.utils.ModelerConstants.ID_PROPERTY;
import static org.eclipse.stardust.ui.web.modeler.marshaling.GsonUtils.extractString;
@@ -79,7 +77,7 @@ public class ProcessChangeCommandHandler
poolSymbol.setYPos(0);
poolSymbol.setWidth(500);
poolSymbol.setHeight(600);
- poolSymbol.setName("DEFAULT POOL");
+ poolSymbol.setName(DefaultNames.getString("views.diagram.defaultPool"));
poolSymbol.setId("_default_pool__1");
poolSymbol.setOrientation(OrientationType.VERTICAL_LITERAL);
@@ -90,7 +88,7 @@ public class ProcessChangeCommandHandler
laneSymbol.setElementOid(++maxOid);
laneSymbol.setId(ModelerConstants.DEF_LANE_ID);
- laneSymbol.setName(ModelerConstants.DEF_LANE_NAME);
+ laneSymbol.setName(DefaultNames.getString("views.modelView.defaultLane"));
// Setting the x,y for default swimlane
//TODO - Move this code to javascript
laneSymbol.setXPos(12);
diff --git a/web-modeler/src/main/resources/bpm-modeler-messages_de.properties b/web-modeler/src/main/resources/bpm-modeler-messages_de.properties
index 21963f9..c7675f0 100644
--- a/web-modeler/src/main/resources/bpm-modeler-messages_de.properties
+++ b/web-modeler/src/main/resources/bpm-modeler-messages_de.properties
@@ -10,12 +10,13 @@
##############################################################################
perspectives.ippBpmModeler.label = Prozessmodellierung
+
views.modelView.label = Modell ${viewParams.modelName}[20]
views.modelView.labelTitle = Modell
views.processDefinitionView.label = Prozess ${viewParams.processName}[20]
views.processDefinitionView.labelTitle = Prozess
views.roleView.label = ${viewParams.roleName}[20]
-views.roleView.labelTitle = Rolle
+views.roleView.labelTitle = Rolle
views.organizationView.label = ${viewParams.organizationName}[20]
views.organizationView.labelTitle = Organisation
views.conditionalPerformerView.label = ${viewParams.conditionalPerformerName}[20]
@@ -36,6 +37,8 @@ views.modelingWorklistView.label = +Übersicht Modellierungsarbeiten
views.modelingWorkAssignmentView.label = +Zuweisung Modellierungsaufgaben
views.genericApplicationView.label = Allgemeiner Dienst ${viewParams.applicationName}[20]
views.genericApplicationView.labelTitle = Allgemeiner Dienst
+views.diagram.defaultPool = DEFAULT POOL
+views.diagram.defaultLane = Default Lane
perspectives.test.label = Test
launchPanels.ippBpmAdministrativeActions.labelTitle = Administrative Aktivitäten
@@ -47,7 +50,7 @@ launchpanels.profileSelector.list.selectYourProfile = Profil auswählen
launchpanels.profileSelector.list1.businessAnalyst = Fachanalytiker
launchpanels.profileSelector.list2.integrator = Integrator
launchpanels.panelHeader.title.myModelingSession = Meine Modellierungssitzungen
-launchpanels.panelHeader.myModelingSession.inviteParticipants.heading = Teilnehmer einladen
+launchpanels.panelHeader.myModelingSession.inviteParticipants.heading = Teilnehmer einladen
launchpanels.panelHeader.myModelingSession.inviteParticipants.filter = Filter
launchpanels.panelHeader.myModelingSession.inviteParticipants.participant = Teilnehmer
launchpanels.panelHeader.myModelingSession.inviteParticipants.notify = Benachrichtigung über E-Mail
@@ -61,7 +64,7 @@ uploadmodelfile.message.confirmation = Bestätigen
uploadmodelfile.message.upload = Hochladen in eigene Prozessmodeller
uploadmodelfile.message.uploadFileName = Prozessmodell #{modelFileUploadDialog.uploadedFileName}
uploadmodelfile.message.exists = Existiert bereits.
-uploadmodelfile.message.continue = Möchten Sie eine neue Version
+uploadmodelfile.message.continue = Möchten Sie eine neue Version
uploadmodelfile.message.existingProcessModel = des aktuallen Modells anlegen?
diff --git a/web-modeler/src/main/resources/bpm-modeler-messages_en.properties b/web-modeler/src/main/resources/bpm-modeler-messages_en.properties
index f1d3870..d92afe2 100644
--- a/web-modeler/src/main/resources/bpm-modeler-messages_en.properties
+++ b/web-modeler/src/main/resources/bpm-modeler-messages_en.properties
@@ -15,7 +15,7 @@ views.modelView.labelTitle = Model
views.processDefinitionView.label = Process ${viewParams.processName}[20]
views.processDefinitionView.labelTitle = Process
views.roleView.label = Role ${viewParams.roleName}[20]
-views.roleView.labelTitle = Role
+views.roleView.labelTitle = Role
views.organizationView.label = Organization ${viewParams.organizationName}[20]
views.organizationView.labelTitle = Organization
views.conditionalPerformerView.label = Conditional Performer ${viewParams.conditionalPerformerName}[20]
@@ -36,6 +36,8 @@ views.modelingWorklistView.label = Modeling Work Dashboard
views.modelingWorkAssignmentView.label = Modeling Work Assignment
views.genericApplicationView.label = Unsupported Application ${viewParams.applicationName}[20]
views.genericApplicationView.labelTitle = Unsupported Application
+views.diagram.defaultPool = DEFAULT POOL
+views.diagram.defaultLane = Default Lane
perspectives.test.label = Test
launchPanels.ippBpmAdministrativeActions.labelTitle = Administrative Actions
@@ -47,11 +49,11 @@ launchpanels.profileSelector.list.selectYourProfile = Select Your Profile
launchpanels.profileSelector.list1.businessAnalyst = Business Analyst
launchpanels.profileSelector.list2.integrator = Integrator
launchpanels.panelHeader.title.myModelingSession = My Modeling Session
-launchpanels.panelHeader.myModelingSession.inviteParticipants.heading = Invite Participants
+launchpanels.panelHeader.myModelingSession.inviteParticipants.heading = Invite Participants
launchpanels.panelHeader.myModelingSession.inviteParticipants.filter = Filter
launchpanels.panelHeader.myModelingSession.inviteParticipants.participant = Participant
launchpanels.panelHeader.myModelingSession.inviteParticipants.notify = Notify via E-Mail
-launchpanels.panelHeader.myModelingSession.inviteParticipants.alert = Notify via Portal Alert
+launchpanels.panelHeader.myModelingSession.inviteParticipants.alert = Notify via Portal Alert
launchpanels.panelHeader.myModelingSession.inviteParticipants.invite = Invite
launchpanels.panelHeader.myModelingSession.inviteParticipants.cancel = Cancel
@@ -76,7 +78,7 @@ modeling.workassignment.view.informationMsg = You can use our <b>Consultin
modeling.workassignment.view.feeModel = Consulting Fee Models
modeling.workassignment.view.feeModel.message = The following consulting fee models apply to modeling support. Please select your preference
modeling.workassignment.view.termsAndConditions = Terms and Conditions
-modeling.workassignment.view.acceptTerms = Confirm that you have read and accept the
+modeling.workassignment.view.acceptTerms = Confirm that you have read and accept the
modeling.worklist.overview.heading = Modeling Work Overview
modeling.worklist.overview.select = Select a model
modeling.worklist.overview.activities.heading = Modeling Activities
diff --git a/web-modeler/src/main/resources/bpm-modeler-messages_zh_CN.properties b/web-modeler/src/main/resources/bpm-modeler-messages_zh_CN.properties
index cfc817c..2c6303b 100644
--- a/web-modeler/src/main/resources/bpm-modeler-messages_zh_CN.properties
+++ b/web-modeler/src/main/resources/bpm-modeler-messages_zh_CN.properties
@@ -15,7 +15,7 @@ views.modelView.labelTitle = +Model
views.processDefinitionView.label = +Process ${viewParams.processName}[20]
views.processDefinitionView.labelTitle = +Process
views.roleView.label = +Role ${viewParams.roleName}[20]
-views.roleView.labelTitle = +Role
+views.roleView.labelTitle = +Role
views.organizationView.label = +Organization ${viewParams.organizationName}[20]
views.organizationView.labelTitle = +Organization
views.conditionalPerformerView.label = +Conditional Performer ${viewParams.conditionalPerformerName}[20]
@@ -36,6 +36,8 @@ views.modelingWorklistView.label = +Modeling Work Dashboard
views.modelingWorkAssignmentView.label = +Modeling Work Assignment
views.genericApplicationView.label = +Unsupported Application ${viewParams.applicationName}[20]
views.genericApplicationView.labelTitle = +Unsupported Application
+views.diagram.defaultPool = +DEFAULT POOL
+views.diagram.defaultLane = +Default Lane
perspectives.test.label = +Test
launchPanels.ippBpmAdministrativeActions.labelTitle = +Administrative Actions
@@ -47,11 +49,11 @@ launchpanels.profileSelector.list.selectYourProfile = +Select Your Profile
launchpanels.profileSelector.list1.businessAnalyst = +Business Analyst
launchpanels.profileSelector.list2.integrator = +Integrator
launchpanels.panelHeader.title.myModelingSession = +My Modeling Session
-launchpanels.panelHeader.myModelingSession.inviteParticipants.heading = +Invite Participants
+launchpanels.panelHeader.myModelingSession.inviteParticipants.heading = +Invite Participants
launchpanels.panelHeader.myModelingSession.inviteParticipants.filter = +Filter
launchpanels.panelHeader.myModelingSession.inviteParticipants.participant = +Participant
launchpanels.panelHeader.myModelingSession.inviteParticipants.notify = +Notify via E-Mail
-launchpanels.panelHeader.myModelingSession.inviteParticipants.alert = +Notify via Portal Alert
+launchpanels.panelHeader.myModelingSession.inviteParticipants.alert = +Notify via Portal Alert
launchpanels.panelHeader.myModelingSession.inviteParticipants.invite = +Invite
launchpanels.panelHeader.myModelingSession.inviteParticipants.cancel = +Cancel
@@ -76,7 +78,7 @@ modeling.workassignment.view.informationMsg = +You can use our <b>Consulti
modeling.workassignment.view.feeModel = +Consulting Fee Models
modeling.workassignment.view.feeModel.message = +The following consulting fee models apply to modeling support. Please select your preference
modeling.workassignment.view.termsAndConditions = +Terms and Conditions
-modeling.workassignment.view.acceptTerms = +Confirm that you have read and accept the
+modeling.workassignment.view.acceptTerms = +Confirm that you have read and accept the
modeling.worklist.overview.heading = +Modeling Work Overview
modeling.worklist.overview.select = +Select a model
modeling.worklist.overview.activities.heading = +Modeling Activities