summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorMaciej Bendkowski2012-07-10 04:29:16 (EDT)
committer Malgorzata Janczarska2012-07-25 04:56:02 (EDT)
commit4980e0b583cfc03e3d090c765cb361d8c5e09e20 (patch)
tree96493b05beaef52c2bab734aa6fb1776a6fa296f
parent1b622f01d92ca04ca242bf7fe96a0d7b69899bfa (diff)
downloadorg.eclipse.orion.client-4980e0b583cfc03e3d090c765cb361d8c5e09e20.zip
org.eclipse.orion.client-4980e0b583cfc03e3d090c765cb361d8c5e09e20.tar.gz
org.eclipse.orion.client-4980e0b583cfc03e3d090c765cb361d8c5e09e20.tar.bz2
Bug 381725 - "Favorites" and "Create new content" strings not externalized
-rw-r--r--bundles/org.eclipse.orion.client.core/web/navigate/table.js2
-rw-r--r--bundles/org.eclipse.orion.client.core/web/orion/navigate/nls/root/messages.js4
-rw-r--r--bundles/org.eclipse.orion.client.core/web/orion/navoutliner.js2
3 files changed, 5 insertions, 3 deletions
diff --git a/bundles/org.eclipse.orion.client.core/web/navigate/table.js b/bundles/org.eclipse.orion.client.core/web/navigate/table.js
index ac9fa2a..e73c3fd 100644
--- a/bundles/org.eclipse.orion.client.core/web/navigate/table.js
+++ b/bundles/org.eclipse.orion.client.core/web/navigate/table.js
@@ -67,7 +67,7 @@ dojo.addOnLoad(function(){
// Add the getting started task list. Keep it collapsed unless there is no workspace content.
// We want project creation commands to always be valid from the task list (even if the explorer root is not the workspace.)
// So the item we pass into the task list for validating commands is a fake object that pretends to be the workspace.
- new mTasks.TaskList({parent: "gettingStarted", id: "gettingStartedTasks", title: "Create new content", //$NON-NLS-2$ //$NON-NLS-1$ //$NON-NLS-0$
+ new mTasks.TaskList({parent: "gettingStarted", id: "gettingStartedTasks", title: messages["Create new content"], //$NON-NLS-2$ //$NON-NLS-1$ //$NON-NLS-0$
description: messages["Click one of the tasks below to create an Orion folder. You can upload, import, or generate files."],
tasks: tasks, serviceRegistry: serviceRegistry, commandService: commandService, item: {Location: "/workspace"}, handler: explorer, collapsed: false}); //$NON-NLS-0$
} else {
diff --git a/bundles/org.eclipse.orion.client.core/web/orion/navigate/nls/root/messages.js b/bundles/org.eclipse.orion.client.core/web/orion/navigate/nls/root/messages.js
index 014e9ae..edf5577 100644
--- a/bundles/org.eclipse.orion.client.core/web/orion/navigate/nls/root/messages.js
+++ b/bundles/org.eclipse.orion.client.core/web/orion/navigate/nls/root/messages.js
@@ -89,5 +89,7 @@ define({
"Click on an item to make a selection, then use this menu to see what actions are available.": "Click on an item to make a selection, then use this menu to see what actions are available.",
"Actions": "Actions",
"Orion Content": "Orion Content",
- " is not supportted in this file system": " is not supportted in this file system"
+ " is not supportted in this file system": " is not supportted in this file system",
+ "Create new content" : "Create new content",
+ "Favorites" : "Favorites"
});
diff --git a/bundles/org.eclipse.orion.client.core/web/orion/navoutliner.js b/bundles/org.eclipse.orion.client.core/web/orion/navoutliner.js
index e11d1ce..ba02f9d 100644
--- a/bundles/org.eclipse.orion.client.core/web/orion/navoutliner.js
+++ b/bundles/org.eclipse.orion.client.core/web/orion/navoutliner.js
@@ -194,7 +194,7 @@ define(['i18n!orion/navigate/nls/messages', 'require', 'dojo', 'orion/util', 'or
if (!this.favoritesSection) {
this.favoritesSection = new mSection.Section(this._parent, {
id: "favoritesSection", //$NON-NLS-0$
- title: "Favorites", //$NON-NLS-0$
+ title: messages["Favorites"], //$NON-NLS-0$
content: '<div id="favoritesContent"></div>', //$NON-NLS-0$
preferenceService: serviceRegistry.getService("orion.core.preference"), //$NON-NLS-0$
canHide: true,