From 7a64e48321fc120e21e5ac7be5cccdd09dc2fcb1 Mon Sep 17 00:00:00 2001 From: Santhosh Thottingal Date: Mon, 3 Sep 2012 18:09:34 +0530 Subject: [PATCH] Fix Bug 39921 - World wide languages need not be repeated in all regions. Change-Id: I4470a2a7976df17f6f0f8f97d15ce12163cc3c27 --- lib/jquery.uls/src/jquery.uls.lcd.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/jquery.uls/src/jquery.uls.lcd.js b/lib/jquery.uls/src/jquery.uls.lcd.js index ec4e7ee7..ff77ba35 100644 --- a/lib/jquery.uls/src/jquery.uls.lcd.js +++ b/lib/jquery.uls/src/jquery.uls.lcd.js @@ -57,6 +57,11 @@ regions = $.uls.data.regions( langCode ); } + // World wide languages need not be repeated in all regions. + if ( $.inArray( 'WW', regions ) > -1 ) { + regions = [ 'WW' ]; + } + for ( var i = 0; i < regions.length; i++ ) { var regionCode = regions[i];