Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: safari/ext/common.js

Issue 29338190: Issue 3697 - Fall back to i18n.getUILanguage if @ui_locale isn't supported (Closed)
Patch Set: Add try-catch blocks. Address nits. Created May 29, 2016, 12:23 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« lib/utils.js ('K') | « lib/utils.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: safari/ext/common.js
diff --git a/safari/ext/common.js b/safari/ext/common.js
index 5f7c14c861a683af02570d8bade2038e3c04a23d..90a04b3ccb9b2ccb442699ae52e95238168fe405 100644
--- a/safari/ext/common.js
+++ b/safari/ext/common.js
@@ -130,11 +130,8 @@
var initCatalog = function(uiLocale)
{
- var bidiDir = /^(ar|fa|he|ug|ur)(_|$)/.test(uiLocale) ? "rtl" : "ltr";
var catalog = Object.create(null);
-
catalog["@@ui_locale"] = [uiLocale, []];
- catalog["@@bidi_dir" ] = [bidiDir, []];
return catalog;
};
« lib/utils.js ('K') | « lib/utils.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld