aboutsummaryrefslogtreecommitdiffstats
path: root/openo-portal/portal-common/src/main/webapp/common/js/international
diff options
context:
space:
mode:
author“shentao” <shentao@chinamobile.com>2016-10-21 15:05:13 +0800
committer“shentao” <shentao@chinamobile.com>2016-10-21 15:05:13 +0800
commit33796336d546fa61a3906500ea56d77c960ab222 (patch)
treeeada1477041dd418b05122654eb25682a2dbf2eb /openo-portal/portal-common/src/main/webapp/common/js/international
parent9a7b8cfb0e8182d0d69d73ee40c0116042bc2e5e (diff)
GSO-35
Change-Id: I3ad00c3c9265a1b3818decedca1d77995864ba29 Signed-off-by: “shentao” <shentao@chinamobile.com>
Diffstat (limited to 'openo-portal/portal-common/src/main/webapp/common/js/international')
-rw-r--r--openo-portal/portal-common/src/main/webapp/common/js/international/loadi18n.js28
1 files changed, 1 insertions, 27 deletions
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);
-}