diff options
Diffstat (limited to 'openo-portal/portal-common/src/main/webapp/common/js')
-rw-r--r-- | openo-portal/portal-common/src/main/webapp/common/js/international/loadi18n.js | 28 |
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); -} |