Skip to content

Commit

Permalink
Move resources to components/
Browse files Browse the repository at this point in the history
Move the resources used by the bookmarks component to components/:
IDS_BOOKMARK_BAR_FOLDER_NAME
IDS_BOOKMARK_BAR_OTHER_FOLDER_NAME
IDS_BOOKMARK_BAR_MOBILE_FOLDER_NAME

BUG=364870

Review URL: https://codereview.chromium.org/243433002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265242 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
sdefresne@chromium.org committed Apr 22, 2014
1 parent 0fc7918 commit ea6de38
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 37 deletions.
33 changes: 0 additions & 33 deletions chrome/app/bookmarks_strings.grdp
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,6 @@
<!-- Bookmarks specific strings (included from generated_resources.grd). -->
<grit-part>
<!-- Begin of Bookmarks Bar strings-->
<if expr="not is_android and not is_ios and not use_titlecase">
<message name="IDS_BOOKMARK_BAR_FOLDER_NAME" desc="Name shown in the tree for the Bookmarks Bar folder.">
Bookmarks bar
</message>
</if>
<if expr="not is_android and not is_ios and use_titlecase">
<message name="IDS_BOOKMARK_BAR_FOLDER_NAME" desc="In Title Case: Name shown in the tree for the Bookmarks Bar folder.">
Bookmarks Bar
</message>
</if>
<if expr="is_android">
<message name="IDS_BOOKMARK_BAR_FOLDER_NAME" desc="Mobile: Name shown in the tree for the desktop bookmarks folder">
Desktop bookmarks
</message>
</if>
<if expr="is_ios">
<message name="IDS_BOOKMARK_BAR_FOLDER_NAME" desc="Mobile: Name shown in the tree for the desktop bookmarks folder">
Desktop Bookmarks
</message>
</if>

<if expr="not is_android">
<!-- The following two strings are shown when the user has no bookmarks yet. -->
<message name="IDS_BOOKMARKS_NO_ITEMS" desc="Text shown when the user has no bookmarks">
Expand Down Expand Up @@ -51,23 +30,11 @@
</if>

<if expr="not use_titlecase">
<message name="IDS_BOOKMARK_BAR_MOBILE_FOLDER_NAME" desc="Name shown in the tree for the mobile bookmarks folder">
Mobile bookmarks
</message>
<message name="IDS_BOOKMARK_BAR_OTHER_FOLDER_NAME" desc="Name shown in the tree for the other bookmarks folder">
Other bookmarks
</message>
<message name="IDS_BOOKMARK_BAR_SHOW_APPS_SHORTCUT" desc="Name shown in the context menu to hide/show the apps shortcut in the bookmakr bar">
Show apps shortcut
</message>
</if>
<if expr="use_titlecase">
<message name="IDS_BOOKMARK_BAR_MOBILE_FOLDER_NAME" desc="In Title Case: Name shown in the tree for the mobile bookmarks folder">
Mobile Bookmarks
</message>
<message name="IDS_BOOKMARK_BAR_OTHER_FOLDER_NAME" desc="In Title Case: Name shown in the tree for the other bookmarks folder">
Other Bookmarks
</message>
<message name="IDS_BOOKMARK_BAR_SHOW_APPS_SHORTCUT" desc="In Title Case: Name shown in the context menu to hide/show the apps shortcut in the bookmakr bar">
Show Apps Shortcut
</message>
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/bookmarks/bookmark_codec.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "base/strings/string_util.h"
#include "base/values.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
#include "grit/generated_resources.h"
#include "grit/component_strings.h"
#include "ui/base/l10n/l10n_util.h"
#include "url/gurl.h"

Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/bookmarks/bookmark_html_writer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "components/favicon_base/favicon_types.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/notification_source.h"
#include "grit/generated_resources.h"
#include "grit/component_strings.h"
#include "net/base/escape.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/gfx/favicon_size.h"
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/bookmarks/bookmark_html_writer_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "chrome/test/base/testing_profile.h"
#include "chrome/utility/importer/bookmark_html_reader.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "grit/generated_resources.h"
#include "grit/component_strings.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/base/l10n/l10n_util.h"
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/bookmarks/bookmark_model.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "components/favicon_base/favicon_types.h"
#include "content/public/browser/notification_details.h"
#include "content/public/browser/notification_source.h"
#include "grit/generated_resources.h"
#include "grit/component_strings.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/gfx/favicon_size.h"
#include "ui/gfx/image/image_util.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "chrome/common/importer/profile_import_process_messages.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/utility_process_host.h"
#include "grit/component_strings.h"
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"

Expand Down
1 change: 1 addition & 0 deletions chrome/chrome.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@
'common/extensions/api/api.gyp:chrome_api',
'../base/base.gyp:base',
'../components/components.gyp:wifi_component',
'../components/components_strings.gyp:components_strings',
'../content/content.gyp:content_common',
'../content/content.gyp:content_utility',
'../media/media.gyp:media',
Expand Down
1 change: 1 addition & 0 deletions chrome/utility/importer/safari_importer.mm
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "chrome/common/importer/importer_bridge.h"
#include "chrome/common/url_constants.h"
#include "chrome/utility/importer/favicon_reencode.h"
#include "grit/component_strings.h"
#include "grit/generated_resources.h"
#include "net/base/data_url.h"
#include "sql/statement.h"
Expand Down
40 changes: 40 additions & 0 deletions components/bookmarks_strings.grdp
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<grit-part>
<if expr="not is_android and not is_ios and not use_titlecase">
<message name="IDS_BOOKMARK_BAR_FOLDER_NAME" desc="Name shown in the tree for the Bookmarks Bar folder.">
Bookmarks bar
</message>
</if>
<if expr="not is_android and not is_ios and use_titlecase">
<message name="IDS_BOOKMARK_BAR_FOLDER_NAME" desc="In Title Case: Name shown in the tree for the Bookmarks Bar folder.">
Bookmarks Bar
</message>
</if>
<if expr="is_android">
<message name="IDS_BOOKMARK_BAR_FOLDER_NAME" desc="Mobile: Name shown in the tree for the desktop bookmarks folder">
Desktop bookmarks
</message>
</if>
<if expr="is_ios">
<message name="IDS_BOOKMARK_BAR_FOLDER_NAME" desc="Mobile: Name shown in the tree for the desktop bookmarks folder">
Desktop Bookmarks
</message>
</if>

<if expr="not use_titlecase">
<message name="IDS_BOOKMARK_BAR_MOBILE_FOLDER_NAME" desc="Name shown in the tree for the mobile bookmarks folder">
Mobile bookmarks
</message>
<message name="IDS_BOOKMARK_BAR_OTHER_FOLDER_NAME" desc="Name shown in the tree for the other bookmarks folder">
Other bookmarks
</message>
</if>
<if expr="use_titlecase">
<message name="IDS_BOOKMARK_BAR_MOBILE_FOLDER_NAME" desc="In Title Case: Name shown in the tree for the mobile bookmarks folder">
Mobile Bookmarks
</message>
<message name="IDS_BOOKMARK_BAR_OTHER_FOLDER_NAME" desc="In Title Case: Name shown in the tree for the other bookmarks folder">
Other Bookmarks
</message>
</if>
</grit-part>
1 change: 1 addition & 0 deletions components/components_strings.grd
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@
<part file="autofill_strings.grdp" />
<part file="dom_distiller_strings.grdp" />
<part file="policy_strings.grdp" />
<part file="bookmarks_strings.grdp" />
</messages>
</release>
</grit>

0 comments on commit ea6de38

Please sign in to comment.