diff options
author | Felix Dorner | 2019-07-03 08:15:33 +0000 |
---|---|---|
committer | Philippe DUL | 2019-07-04 08:48:45 +0000 |
commit | de30b5c087d8c6d95dd2063ca426ec6468c7704b (patch) | |
tree | 47bba767ef60fb6e6e2335f66c682e6542019d6f | |
parent | cee7c6bda60c297cd08aa6bd01c9d6907f4371c1 (diff) | |
download | org.eclipse.amalgam-de30b5c087d8c6d95dd2063ca426ec6468c7704b.tar.gz org.eclipse.amalgam-de30b5c087d8c6d95dd2063ca426ec6468c7704b.tar.xz org.eclipse.amalgam-de30b5c087d8c6d95dd2063ca426ec6468c7704b.zip |
[548897] Allow localization of activity names and sections
Bug: 548897
Change-Id: Ib7a4322108a29913a5f47111465b0f191889e353
Signed-off-by: Felix Dorner <felix.dorner@gmail.com>
-rw-r--r-- | plugins/org.eclipse.amalgam.explorer.activity.ui/src/org/eclipse/amalgam/explorer/activity/ui/internal/extension/point/manager/ActivityExplorerExtensionManager.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/org.eclipse.amalgam.explorer.activity.ui/src/org/eclipse/amalgam/explorer/activity/ui/internal/extension/point/manager/ActivityExplorerExtensionManager.java b/plugins/org.eclipse.amalgam.explorer.activity.ui/src/org/eclipse/amalgam/explorer/activity/ui/internal/extension/point/manager/ActivityExplorerExtensionManager.java index fd138598..01e49cfa 100644 --- a/plugins/org.eclipse.amalgam.explorer.activity.ui/src/org/eclipse/amalgam/explorer/activity/ui/internal/extension/point/manager/ActivityExplorerExtensionManager.java +++ b/plugins/org.eclipse.amalgam.explorer.activity.ui/src/org/eclipse/amalgam/explorer/activity/ui/internal/extension/point/manager/ActivityExplorerExtensionManager.java @@ -151,7 +151,7 @@ public class ActivityExplorerExtensionManager { StringBuilder message = new StringBuilder();
message.append("ActivityExplorerExtensionManager.accept(...) _ "); //$NON-NLS-1$
message.append("The page "); //$NON-NLS-1$
- message.append(page.getId()); //$NON-NLS-1$
+ message.append(page.getId());
message.append(" has negatif index. "); //$NON-NLS-1$
message.append("Only pages win an index upper or equal to zero are allowed"); //$NON-NLS-1$
@@ -287,9 +287,9 @@ public class ActivityExplorerExtensionManager { StringBuilder message = new StringBuilder();
message.append("ActivityExplorerExtensionManager.getAllPages(...) _ "); //$NON-NLS-1$
- message.append("Unknown error occurred from contribution ");
+ message.append("Unknown error occurred from contribution "); //$NON-NLS-1$
message.append(getId(page));
- message.append(". See the exception stack for more details");
+ message.append(". See the exception stack for more details"); //$NON-NLS-1$
ActivityExplorerLoggerService.getInstance().log(IStatus.WARNING, message.toString(), e);
@@ -339,12 +339,12 @@ public class ActivityExplorerExtensionManager { if (element.getName().equals(PAGE))
att = ATT_TITLE;
String name = element.getAttribute(att);
- return name == null ? ActivityExplorerConstants.NO_NAME : name;
+ return name == null ? ActivityExplorerConstants.NO_NAME : Platform.getResourceString(Platform.getBundle(element.getContributor().getName()), name);
}
public static String getTitle(IConfigurationElement element) {
String title = element.getAttribute(ATT_TITLE);
- return title == null ? ActivityExplorerConstants.NO_TITLE : title;
+ return title == null ? ActivityExplorerConstants.NO_TITLE : Platform.getResourceString(Platform.getBundle(element.getContributor().getName()), title);
}
public static String getTabName(IConfigurationElement element) {
|