Changeset 2060


Ignore:
Timestamp:
Jun 29, 2016, 2:58:51 PM (3 years ago)
Author:
joamuran
Message:

fixed i18n

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin-center/trunk/fuentes/admin-center.install/usr/share/admin-center/lib/i18n.js

    r1055 r2060  
    11function I18n(){
    2   this.modules=new Array();
     2  this.modules=[];
    33  this.locale = navigator.language || navigator.userLanguage;
     4 
     5  // if lang is ca, transform to ca_ES@valencia
     6  if (this.locale==="ca") this.locale="ca_ES@valencia";
     7  else if (this.locale==="es") this.locale="es-ES";
     8  else if (this.locale==="en") this.locale="en-US";
     9 
    410  this.modulecount=0;
    511}
     
    2228  var obj=this.modules;
    2329
    24   var size = 0, key;
     30  //var size = 0, key;
     31  var key;
    2532   for (key in obj) {
    2633       if (obj.hasOwnProperty(module)) return true;
Note: See TracChangeset for help on using the changeset viewer.