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

Side by Side Diff: remoting/webapp/base/js/l10n.js

Issue 1133913002: [Chromoting] Move shared webapp JS files from crd/js -> base/js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « remoting/webapp/base/js/identity_unittest.js ('k') | remoting/webapp/base/js/l10n_unittest.js » ('j') | 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 5
6 var l10n = l10n || {}; 6 var l10n = l10n || {};
7 7
8 /** 8 /**
9 * Localize a tag, returning the tag itself and logging an error if no 9 * Localize a tag, returning the tag itself and logging an error if no
10 * translation exists. 10 * translation exists.
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 } 97 }
98 var titleTag = element.getAttribute('i18n-title'); 98 var titleTag = element.getAttribute('i18n-title');
99 if (titleTag) { 99 if (titleTag) {
100 element.title = l10n.getTranslationOrError(titleTag, substitutions); 100 element.title = l10n.getTranslationOrError(titleTag, substitutions);
101 } else { 101 } else {
102 l10n.localizeElement(element, substitutions, 102 l10n.localizeElement(element, substitutions,
103 substitutions.length != 0); 103 substitutions.length != 0);
104 } 104 }
105 } 105 }
106 }; 106 };
OLDNEW
« no previous file with comments | « remoting/webapp/base/js/identity_unittest.js ('k') | remoting/webapp/base/js/l10n_unittest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698