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

Unified Diff: chrome/browser/resources/sync_setup_overlay.js

Issue 7709012: Sync Setup UI: Fix Hebrew and Arabic word order on title of dialog. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/sync_setup_overlay.js
diff --git a/chrome/browser/resources/sync_setup_overlay.js b/chrome/browser/resources/sync_setup_overlay.js
index 9535ed1badc660dd46b50615ebc6de770ff9cda2..53d1e8d7cd2698abf3ec2d963b5995cc8289dc12 100644
--- a/chrome/browser/resources/sync_setup_overlay.js
+++ b/chrome/browser/resources/sync_setup_overlay.js
@@ -42,11 +42,9 @@ cr.define('options', function() {
var translated_text = acct_text.textContent;
var posGoogle = translated_text.indexOf('Google');
if (posGoogle != -1) {
- var ltr = templateData['textdirection'] == 'ltr';
var googleIsAtEndOfSentence = posGoogle != 0;
- if (googleIsAtEndOfSentence == ltr) {
- // We're in ltr and in the translation the word 'Google' is AFTER the
- // word 'Account' OR we're in rtl and 'Google' is BEFORE 'Account'.
+
+ if (googleIsAtEndOfSentence) {
var logo_td = $('gaia-logo');
logo_td.parentNode.appendChild(logo_td);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698