From dd3d3eea1d953e4a174edb6e75cfdf0fcf03060f Mon Sep 17 00:00:00 2001 From: Scott Main Date: Fri, 21 Sep 2012 20:32:56 -0700 Subject: [PATCH] add localize langs for global strings Change-Id: I90412e1e03a2676d927796187fe811481bf38455 --- .../droiddoc/templates-sdk/assets/js/docs.js | 2 +- .../templates-sdk/components/masthead.cs | 118 +++++++++++++++--- .../droiddoc/templates-sdk/customizations.cs | 7 +- tools/droiddoc/templates-sdk/docpage.cs | 80 ++++++++++-- 4 files changed, 182 insertions(+), 25 deletions(-) diff --git a/tools/droiddoc/templates-sdk/assets/js/docs.js b/tools/droiddoc/templates-sdk/assets/js/docs.js index 8418d7bea..911252ee3 100644 --- a/tools/droiddoc/templates-sdk/assets/js/docs.js +++ b/tools/droiddoc/templates-sdk/assets/js/docs.js @@ -980,7 +980,7 @@ function requestAppendHL(uri) { function changeTabLang(lang) { - var nodes = $("#header-tabs").find("."+lang); + var nodes = $("#header,#nav-x,.training-nav-top").find("."+lang); for (i=0; i < nodes.length; i++) { // for each node in this language var node = $(nodes[i]); node.siblings().css("display","none"); // hide all siblings diff --git a/tools/droiddoc/templates-sdk/components/masthead.cs b/tools/droiddoc/templates-sdk/components/masthead.cs index 51759bc3d..4f4e2d368 100644 --- a/tools/droiddoc/templates-sdk/components/masthead.cs +++ b/tools/droiddoc/templates-sdk/components/masthead.cs @@ -8,16 +8,40 @@
Quicknav - Quicknav + Quicknav
@@ -52,9 +76,9 @@ - - + + +
- Previous - Next - Get started - First class + + Previous + + + + + + + + + Next + + + + + + + + + Get started + + + + + + + + + First class + + + + + + +
@@ -87,8 +135,24 @@