Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2008-12-08 14:56:44 -0500
committerspingel2008-12-08 14:56:44 -0500
commita50cb39eefd871ffc010057c88c3abb9e254f79d (patch)
tree0b2fd6524c4c516fed26e649bbd8fdd8e010ca55
parent1a46fc50ef72341ea32c15ca149e003ba427d0ba (diff)
downloadorg.eclipse.mylyn.tasks-a50cb39eefd871ffc010057c88c3abb9e254f79d.tar.gz
org.eclipse.mylyn.tasks-a50cb39eefd871ffc010057c88c3abb9e254f79d.tar.xz
org.eclipse.mylyn.tasks-a50cb39eefd871ffc010057c88c3abb9e254f79d.zip
REOPENED - bug 253125: externalize strings for org.eclipse.mylyn.tasks.*
https://bugs.eclipse.org/bugs/show_bug.cgi?id=253125
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/provisional/tasks/ui/wizards/AbstractRepositoryQueryPage2.java14
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/provisional/tasks/ui/wizards/Messages.java41
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/provisional/tasks/ui/wizards/messages.properties7
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/CommentGroupStrategy.java6
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/Messages.java8
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorExtensionSettingsContribution.java10
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/messages.properties5
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/Messages.java12
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TasksUiInternal.java32
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/messages.properties8
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/Messages.java2
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/UpdateRepositoryConfigurationAction.java5
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/messages.properties2
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/LocalRepositorySettingsPage.java2
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/Messages.java6
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/messages.properties5
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractTaskRepositoryPage.java5
17 files changed, 133 insertions, 37 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/provisional/tasks/ui/wizards/AbstractRepositoryQueryPage2.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/provisional/tasks/ui/wizards/AbstractRepositoryQueryPage2.java
index 4f4e4296c..80c19a763 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/provisional/tasks/ui/wizards/AbstractRepositoryQueryPage2.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/provisional/tasks/ui/wizards/AbstractRepositoryQueryPage2.java
@@ -60,8 +60,8 @@ public abstract class AbstractRepositoryQueryPage2 extends AbstractRepositoryQue
public AbstractRepositoryQueryPage2(String pageName, TaskRepository repository, IRepositoryQuery query) {
super(pageName, repository, query);
this.connector = TasksUi.getRepositoryConnector(getTaskRepository().getConnectorKind());
- setTitle("Enter query parameters");
- setDescription("If attributes are blank or stale press the Update button.");
+ setTitle(Messages.AbstractRepositoryQueryPage2_Enter_query_parameters);
+ setDescription(Messages.AbstractRepositoryQueryPage2_If_attributes_are_blank_or_stale_press_the_Update_button);
}
public void setNeedsRepositoryConfiguration(boolean needsRepositoryConfiguration) {
@@ -106,7 +106,7 @@ public abstract class AbstractRepositoryQueryPage2 extends AbstractRepositoryQue
}
Label titleLabel = new Label(control, SWT.NONE);
- titleLabel.setText("&Title:");
+ titleLabel.setText(Messages.AbstractRepositoryQueryPage2__Title_);
titleText = new Text(control, SWT.BORDER);
GridDataFactory.fillDefaults().align(SWT.FILL, SWT.TOP).grab(true, false).applyTo(titleText);
@@ -128,7 +128,7 @@ public abstract class AbstractRepositoryQueryPage2 extends AbstractRepositoryQue
GridDataFactory.fillDefaults().align(SWT.FILL, SWT.TOP).grab(true, false).span(2, 1).applyTo(composite);
updateButton = new Button(composite, SWT.PUSH);
- updateButton.setText("&Refresh From Repository");
+ updateButton.setText(Messages.AbstractRepositoryQueryPage2__Refresh_From_Repository);
updateButton.setLayoutData(new GridData());
updateButton.addSelectionListener(new SelectionAdapter() {
@Override
@@ -136,8 +136,8 @@ public abstract class AbstractRepositoryQueryPage2 extends AbstractRepositoryQue
if (getTaskRepository() != null) {
updateAttributesFromRepository(true);
} else {
- MessageDialog.openInformation(Display.getCurrent().getActiveShell(), "Update Attributes Failed",
- "No repository available, please add one using the Task Repositories view.");
+ MessageDialog.openInformation(Display.getCurrent().getActiveShell(), Messages.AbstractRepositoryQueryPage2_Update_Attributes_Failed,
+ Messages.AbstractRepositoryQueryPage2_No_repository_available_please_add_one_using_the_Task_Repositories_view);
}
}
});
@@ -239,7 +239,7 @@ public abstract class AbstractRepositoryQueryPage2 extends AbstractRepositoryQue
if (titleText != null && titleText.getText().length() > 0) {
return true;
}
- setMessage("Enter a title");
+ setMessage(Messages.AbstractRepositoryQueryPage2_Enter_a_title);
return false;
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/provisional/tasks/ui/wizards/Messages.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/provisional/tasks/ui/wizards/Messages.java
new file mode 100644
index 000000000..daba1feea
--- /dev/null
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/provisional/tasks/ui/wizards/Messages.java
@@ -0,0 +1,41 @@
+/*******************************************************************************
+ * Copyright (c) 2004, 2008 Tasktop Technologies 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:
+ * Tasktop Technologies - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.mylyn.internal.provisional.tasks.ui.wizards;
+
+import org.eclipse.osgi.util.NLS;
+
+public class Messages extends NLS {
+ private static final String BUNDLE_NAME = "org.eclipse.mylyn.internal.provisional.tasks.ui.wizards.messages"; //$NON-NLS-1$
+
+ static {
+ // load message values from bundle file
+ reloadMessages();
+ }
+
+ public static void reloadMessages() {
+ NLS.initializeMessages(BUNDLE_NAME, Messages.class);
+ }
+
+ public static String AbstractRepositoryQueryPage2__Refresh_From_Repository;
+
+ public static String AbstractRepositoryQueryPage2__Title_;
+
+ public static String AbstractRepositoryQueryPage2_Enter_a_title;
+
+ public static String AbstractRepositoryQueryPage2_Enter_query_parameters;
+
+ public static String AbstractRepositoryQueryPage2_If_attributes_are_blank_or_stale_press_the_Update_button;
+
+ public static String AbstractRepositoryQueryPage2_No_repository_available_please_add_one_using_the_Task_Repositories_view;
+
+ public static String AbstractRepositoryQueryPage2_Update_Attributes_Failed;
+}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/provisional/tasks/ui/wizards/messages.properties b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/provisional/tasks/ui/wizards/messages.properties
new file mode 100644
index 000000000..b896314c3
--- /dev/null
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/provisional/tasks/ui/wizards/messages.properties
@@ -0,0 +1,7 @@
+AbstractRepositoryQueryPage2__Refresh_From_Repository=&Refresh From Repository
+AbstractRepositoryQueryPage2__Title_=&Title:
+AbstractRepositoryQueryPage2_Enter_a_title=Enter a title
+AbstractRepositoryQueryPage2_Enter_query_parameters=Enter query parameters
+AbstractRepositoryQueryPage2_If_attributes_are_blank_or_stale_press_the_Update_button=If attributes are blank or stale press the Update button.
+AbstractRepositoryQueryPage2_No_repository_available_please_add_one_using_the_Task_Repositories_view=No repository available, please add one using the Task Repositories view.
+AbstractRepositoryQueryPage2_Update_Attributes_Failed=Update Attributes Failed
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/CommentGroupStrategy.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/CommentGroupStrategy.java
index 3ddadeb9e..cc5742169 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/CommentGroupStrategy.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/CommentGroupStrategy.java
@@ -29,11 +29,11 @@ public class CommentGroupStrategy {
public static class CommentGroup {
- public static final String CURRENT = "Current";
+ public static final String CURRENT = Messages.CommentGroupStrategy_Current;
- public static final String OLDER = "Older";
+ public static final String OLDER = Messages.CommentGroupStrategy_Older;
- public static final String RECENT = "Recent";
+ public static final String RECENT = Messages.CommentGroupStrategy_Recent;
private final List<ITaskComment> comments;
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/Messages.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/Messages.java
index b4ff24d8c..091fc5c65 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/Messages.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/Messages.java
@@ -290,4 +290,12 @@ public class Messages extends NLS {
public static String TaskEditor_Task_;
public static String TaskEditor_Task_added_to_the_Uncategorized_container;
+
+ public static String TaskEditorExtensionSettingsContribution__default_;
+
+ public static String TaskEditorExtensionSettingsContribution_Editor;
+
+ public static String TaskEditorExtensionSettingsContribution_Plain_Text;
+
+ public static String TaskEditorExtensionSettingsContribution_Select_the_capabilities_of_the_task_editor;
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorExtensionSettingsContribution.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorExtensionSettingsContribution.java
index 75bcc2ae1..224bda04b 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorExtensionSettingsContribution.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorExtensionSettingsContribution.java
@@ -34,11 +34,11 @@ import org.eclipse.swt.widgets.Widget;
*/
public class TaskEditorExtensionSettingsContribution extends AbstractTaskRepositoryPageContribution {
- private static final String LABEL_NONE = "Plain Text";
+ private static final String LABEL_NONE = Messages.TaskEditorExtensionSettingsContribution_Plain_Text;
- private static final String LABEL_DEFAULT_SUFFIX = " (default)";
+ private static final String LABEL_DEFAULT_SUFFIX = Messages.TaskEditorExtensionSettingsContribution__default_;
- private static final String DATA_EDITOR_EXTENSION = "editorExtension";
+ private static final String DATA_EDITOR_EXTENSION = "editorExtension"; //$NON-NLS-1$
private final SelectionListener listener = new SelectionAdapter() {
@Override
@@ -51,12 +51,12 @@ public class TaskEditorExtensionSettingsContribution extends AbstractTaskReposit
private String selectedExtensionId;
public TaskEditorExtensionSettingsContribution() {
- super("Editor", "Select the capabilities of the the task editor");
+ super(Messages.TaskEditorExtensionSettingsContribution_Editor, Messages.TaskEditorExtensionSettingsContribution_Select_the_capabilities_of_the_task_editor);
}
@Override
public void applyTo(TaskRepository repository) {
- TaskEditorExtensions.setTaskEditorExtensionId(repository, selectedExtensionId == null ? "none"
+ TaskEditorExtensions.setTaskEditorExtensionId(repository, selectedExtensionId == null ? "none" //$NON-NLS-1$
: selectedExtensionId);
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/messages.properties b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/messages.properties
index b036461eb..d527db165 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/messages.properties
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/messages.properties
@@ -155,3 +155,8 @@ AttributeEditorToolkit_Content_Assist_Available__X_=Content Assist Available ({0
TaskEditor_New_=New
TaskEditor_Task_=Task:
TaskEditor_Task_added_to_the_Uncategorized_container=Task added to the Uncategorized container
+
+TaskEditorExtensionSettingsContribution__default_=\ (default)
+TaskEditorExtensionSettingsContribution_Editor=Editor
+TaskEditorExtensionSettingsContribution_Plain_Text=Plain Text
+TaskEditorExtensionSettingsContribution_Select_the_capabilities_of_the_task_editor=Select the capabilities of the the task editor
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/Messages.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/Messages.java
index f5e2bbeaf..0504dc196 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/Messages.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/Messages.java
@@ -69,6 +69,18 @@ public class Messages extends NLS {
public static String TasksUiInternal_Task_Synchronization_Failed;
+ public static String TasksUiInternal__hour_;
+
+ public static String TasksUiInternal__hours_;
+
+ public static String TasksUiInternal__minute_;
+
+ public static String TasksUiInternal__minutes_;
+
+ public static String TasksUiInternal__second;
+
+ public static String TasksUiInternal__seconds;
+
public static String TasksUiMenus_Copy_Contents;
public static String TasksUiMenus_Copy_URL;
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TasksUiInternal.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TasksUiInternal.java
index 07e5167f4..c7baeb8f3 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TasksUiInternal.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TasksUiInternal.java
@@ -855,31 +855,31 @@ public class TasksUiInternal {
// final long SECOND = 1000;
final long MIN = 60;
final long HOUR = MIN * 60;
- String formatted = "";
+ String formatted = ""; //$NON-NLS-1$
- String hour = "";
- String min = "";
- String sec = "";
+ String hour = ""; //$NON-NLS-1$
+ String min = ""; //$NON-NLS-1$
+ String sec = ""; //$NON-NLS-1$
if (seconds >= HOUR) {
hours = seconds / HOUR;
if (hours == 1) {
- hour = hours + " hour ";
+ hour = hours + Messages.TasksUiInternal__hour_;
} else if (hours > 1) {
- hour = hours + " hours ";
+ hour = hours + Messages.TasksUiInternal__hours_;
}
seconds -= hours * HOUR;
minutes = seconds / MIN;
if (minutes == 1) {
- min = minutes + " minute ";
+ min = minutes + Messages.TasksUiInternal__minute_;
} else if (minutes != 1) {
- min = minutes + " minutes ";
+ min = minutes + Messages.TasksUiInternal__minutes_;
}
seconds -= minutes * MIN;
if (seconds == 1) {
- sec = seconds + " second";
+ sec = seconds + Messages.TasksUiInternal__second;
} else if (seconds > 1) {
- sec = seconds + " seconds";
+ sec = seconds + Messages.TasksUiInternal__seconds;
}
formatted += hour + min;
if (includeSeconds) {
@@ -888,15 +888,15 @@ public class TasksUiInternal {
} else if (seconds >= MIN) {
minutes = seconds / MIN;
if (minutes == 1) {
- min = minutes + " minute ";
+ min = minutes + Messages.TasksUiInternal__minute_;
} else if (minutes != 1) {
- min = minutes + " minutes ";
+ min = minutes + Messages.TasksUiInternal__minutes_;
}
seconds -= minutes * MIN;
if (seconds == 1) {
- sec = seconds + " second";
+ sec = seconds + Messages.TasksUiInternal__second;
} else if (seconds > 1) {
- sec = seconds + " seconds";
+ sec = seconds + Messages.TasksUiInternal__seconds;
}
formatted += min;
if (includeSeconds) {
@@ -904,9 +904,9 @@ public class TasksUiInternal {
}
} else {
if (seconds == 1) {
- sec = seconds + " second";
+ sec = seconds + Messages.TasksUiInternal__second;
} else if (seconds > 1) {
- sec = seconds + " seconds";
+ sec = seconds + Messages.TasksUiInternal__seconds;
}
if (includeSeconds) {
formatted += sec;
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/messages.properties b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/messages.properties
index 347cd67fe..734711401 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/messages.properties
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/messages.properties
@@ -13,6 +13,7 @@ TaskListElementImporter_Could_not_read_task_list=Could not read task list. Cons
TaskListElementImporter__failed_=-failed-
TaskListElementImporter_Mylyn_task_list_corrupt=Mylyn task list corrupt
TaskListElementImporter_Unable_to_read_the_Mylyn_task_list=Unable to read the Mylyn task list. Please restore from previous backup via File > Import > Mylyn Task Data
+
TasksUiInternal_already_exists=' already exists. Do you want to override it's context with the source?
TasksUiInternal_Configuration_Refresh_Failed=Configuration Refresh Failed
TasksUiInternal_Creating_task=Creating task
@@ -23,6 +24,13 @@ TasksUiInternal_The_new_task_will_be_added_to_the_X_container=The new task will
TasksUiInternal_Query_Synchronization_Failed=Query Synchronization Failed
TasksUiInternal_Task=Task '
TasksUiInternal_Task_Synchronization_Failed=Task Synchronization Failed
+TasksUiInternal__hour_=\ hour
+TasksUiInternal__hours_=\ hours
+TasksUiInternal__minute_=\ minute
+TasksUiInternal__minutes_=\ minutes
+TasksUiInternal__second=\ second
+TasksUiInternal__seconds=\ seconds
+
TasksUiMenus_Copy_Contents=Copy Contents
TasksUiMenus_Copy_URL=Copy &URL
TasksUiMenus_File_exists_=File exists\!
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/Messages.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/Messages.java
index e470f9b49..1b7b2f6ae 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/Messages.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/Messages.java
@@ -119,5 +119,5 @@ public class Messages extends NLS {
public static String UpdateRepositoryConfigurationAction_Update_Repository_Configuration;
- public static String UpdateRepositoryConfigurationAction_Updating_repository_configuration_for_;
+ public static String UpdateRepositoryConfigurationAction_Updating_repository_configuration_for_X;
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/UpdateRepositoryConfigurationAction.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/UpdateRepositoryConfigurationAction.java
index 8bf184fe7..dde26d891 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/UpdateRepositoryConfigurationAction.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/UpdateRepositoryConfigurationAction.java
@@ -11,6 +11,7 @@
package org.eclipse.mylyn.internal.tasks.ui.views;
+import java.text.MessageFormat;
import java.util.Iterator;
import org.eclipse.core.runtime.CoreException;
@@ -51,7 +52,9 @@ public class UpdateRepositoryConfigurationAction extends AbstractTaskRepositoryA
final AbstractRepositoryConnector connector = TasksUi.getRepositoryManager()
.getRepositoryConnector(repository.getConnectorKind());
if (connector != null) {
- final String jobName = Messages.UpdateRepositoryConfigurationAction_Updating_repository_configuration_for_ + repository.getRepositoryUrl();
+ final String jobName = MessageFormat.format(
+ Messages.UpdateRepositoryConfigurationAction_Updating_repository_configuration_for_X,
+ repository.getRepositoryUrl());
Job updateJob = new Job(jobName) {
@Override
protected IStatus run(IProgressMonitor monitor) {
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/messages.properties b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/messages.properties
index ae817cb03..5cff060cf 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/messages.properties
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/messages.properties
@@ -55,4 +55,4 @@ TaskScheduleContentProvider_Unscheduled=Unscheduled
UpdateRepositoryConfigurationAction_Error_updating_repository_configuration=Error updating repository configuration
UpdateRepositoryConfigurationAction_Update_Repository_Configuration=Update Repository Configuration
-UpdateRepositoryConfigurationAction_Updating_repository_configuration_for_=Updating repository configuration for
+UpdateRepositoryConfigurationAction_Updating_repository_configuration_for_X=Updating repository configuration for {0}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/LocalRepositorySettingsPage.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/LocalRepositorySettingsPage.java
index 1f9f4b8e2..d498d7502 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/LocalRepositorySettingsPage.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/LocalRepositorySettingsPage.java
@@ -28,7 +28,7 @@ import org.eclipse.ui.forms.widgets.ExpandableComposite;
public class LocalRepositorySettingsPage extends AbstractTaskRepositoryPage {
public LocalRepositorySettingsPage(TaskRepository taskRepository) {
- super("Local Repository Settings", "Configure the local repository", taskRepository);
+ super(Messages.LocalRepositorySettingsPage_Local_Repository_Settings, Messages.LocalRepositorySettingsPage_Configure_the_local_repository, taskRepository);
}
@Override
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/Messages.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/Messages.java
index 8672d8604..54a7a2623 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/Messages.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/Messages.java
@@ -314,4 +314,10 @@ public class Messages extends NLS {
public static String TaskAttachmentPage_Patch;
public static String TaskAttachmentPage_Verify_the_content_type_of_the_attachment;
+
+ public static String AbstractTaskRepositoryPage_Validation_failed;
+
+ public static String LocalRepositorySettingsPage_Configure_the_local_repository;
+
+ public static String LocalRepositorySettingsPage_Local_Repository_Settings;
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/messages.properties b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/messages.properties
index f6f3d43f6..3d96aa9d9 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/messages.properties
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/messages.properties
@@ -160,3 +160,8 @@ TaskAttachmentPage_Enter_a_file_name=Enter a file name
TaskAttachmentPage_File=File
TaskAttachmentPage_Patch=Patch
TaskAttachmentPage_Verify_the_content_type_of_the_attachment=Verify the content type of the attachment
+
+AbstractTaskRepositoryPage_Validation_failed=Validation failed
+
+LocalRepositorySettingsPage_Configure_the_local_repository=Configure the local repository
+LocalRepositorySettingsPage_Local_Repository_Settings=Local Repository Settings
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractTaskRepositoryPage.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractTaskRepositoryPage.java
index 13f8ee708..a58ce7880 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractTaskRepositoryPage.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractTaskRepositoryPage.java
@@ -32,6 +32,7 @@ import org.eclipse.jface.util.SafeRunnable;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.mylyn.commons.core.StatusHandler;
import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
+import org.eclipse.mylyn.internal.tasks.ui.wizards.Messages;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FillLayout;
@@ -265,8 +266,8 @@ public abstract class AbstractTaskRepositoryPage extends WizardPage implements I
* Returns a status if there is a message to display, otherwise null.
*/
private IStatus computeValidation() {
- final MultiStatus cumulativeResult = new MultiStatus(TasksUiPlugin.ID_PLUGIN, IStatus.OK, "Validation failed",
- null);
+ final MultiStatus cumulativeResult = new MultiStatus(TasksUiPlugin.ID_PLUGIN, IStatus.OK,
+ Messages.AbstractTaskRepositoryPage_Validation_failed, null);
// validate the page
IStatus result = validate();

Back to the top