OLD | NEW |
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 Loading... |
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 })(); |
OLD | NEW |