From 33796336d546fa61a3906500ea56d77c960ab222 Mon Sep 17 00:00:00 2001 From: “shentao” Date: Fri, 21 Oct 2016 15:05:13 +0800 Subject: GSO-35 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I3ad00c3c9265a1b3818decedca1d77995864ba29 Signed-off-by: “shentao” --- .../webapp/common/js/international/loadi18n.js | 28 +--------------------- 1 file changed, 1 insertion(+), 27 deletions(-) (limited to 'openo-portal/portal-common/src/main/webapp/common/js') diff --git a/openo-portal/portal-common/src/main/webapp/common/js/international/loadi18n.js b/openo-portal/portal-common/src/main/webapp/common/js/international/loadi18n.js index 2c63adff..e34794e3 100644 --- a/openo-portal/portal-common/src/main/webapp/common/js/international/loadi18n.js +++ b/openo-portal/portal-common/src/main/webapp/common/js/international/loadi18n.js @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -var lang = getLanguage(); +var lang = 'en-US'; function loadProperties(propertiesFileName, propertiesFilePath , name_i18n) { jQuery.i18n.properties({ @@ -50,29 +50,3 @@ function loadi18n_WebFramework(propertiesFileName, propertiesFilePath, name_i18n loadProperties(propertiesFileName, propertiesFilePath, name_i18n); } -function loadPropertiesSideMenu(lang, propertiesFileNamePrefix, propertiesFilePath, name_I18n) { - if(!name_I18n) name_I18n='openo_main_page_i18n'; - jQuery.i18n.properties({ - language:lang, - name:propertiesFileNamePrefix, - path:propertiesFilePath, - mode:'map', - callback: function() { - var i18nItems = $('[name_i18n='+ name_I18n + ']'); - for (var i = 0; i < i18nItems.length; i++) { - var $item = $(i18nItems.eq(i)); - var itemId = $item.attr('id'); - if (typeof($item.attr("placeholder")) == "undefined") { - $item.text($.i18n.prop(itemId)); - } else { - $item.attr("placeholder", $.i18n.prop(itemId)); - } - } - } - }); -} - -function loadi18n_WebFramework_sideMenu() { - var srcpath ="i18n/"; - loadPropertiesSideMenu(lang , 'web-framework-i18n', srcpath); -} -- cgit 1.2.3-korg