| OLD | NEW |
| 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 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 | 5 |
| 6 var l10n = l10n || {}; | 6 var l10n = l10n || {}; |
| 7 | 7 |
| 8 /** | 8 /** |
| 9 * Localize an element by setting its innerText according to the specified tag | 9 * Localize an element by setting its innerText according to the specified tag |
| 10 * and an optional set of substitutions. | 10 * and an optional set of substitutions. |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 substitutions = []; | 53 substitutions = []; |
| 54 } | 54 } |
| 55 substitutions.push(element.getAttribute(attr)); | 55 substitutions.push(element.getAttribute(attr)); |
| 56 } else { | 56 } else { |
| 57 break; | 57 break; |
| 58 } | 58 } |
| 59 } | 59 } |
| 60 l10n.localizeElement(element, substitutions); | 60 l10n.localizeElement(element, substitutions); |
| 61 } | 61 } |
| 62 }; | 62 }; |
| OLD | NEW |