Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(555)

Side by Side Diff: chrome/browser/resources/shared/js/local_strings.js

Issue 10836296: [webui] mark 2 files as deprecated (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/resources/shared/js/i18n_template.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // TODO(arv): Namespace
6
7 /** 5 /**
6 * NOTE: The use of this file is deprecated. Use load_time_data.js instead.
7 *
8 * The local strings get injected into the page using a variable named 8 * The local strings get injected into the page using a variable named
9 * {@code templateData}. This class provides a simpler interface to access those 9 * {@code templateData}. This class provides a simpler interface to access those
10 * strings. 10 * strings.
11 * 11 *
12 * @param {Object} opt_templateData Optional object containing translated 12 * @param {Object} opt_templateData Optional object containing translated
13 * strings. If this is not supplied during construction, it can be 13 * strings. If this is not supplied during construction, it can be
14 * assigned to the templateData property after construction. If all else 14 * assigned to the templateData property after construction. If all else
15 * fails, the value of window.templateDate will be used. 15 * fails, the value of window.templateDate will be used.
16 * @constructor 16 * @constructor
17 */ 17 */
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 * @param {...string} The extra values to include in the formatted output. 75 * @param {...string} The extra values to include in the formatted output.
76 * @return {string} The formatted string. 76 * @return {string} The formatted string.
77 */ 77 */
78 getStringF: function(id, var_args) { 78 getStringF: function(id, var_args) {
79 return replaceArgs(this.getString(id), arguments); 79 return replaceArgs(this.getString(id), arguments);
80 }, 80 },
81 }; 81 };
82 82
83 // End of anonymous namespace. 83 // End of anonymous namespace.
84 })(); 84 })();
OLDNEW
« no previous file with comments | « chrome/browser/resources/shared/js/i18n_template.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698