Changeset 3558


Ignore:
Timestamp:
Feb 8, 2017, 12:38:09 PM (2 years ago)
Author:
joamuran
Message:

fixed lang detection in i18n

File:
1 edited

Legend:

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

    r2672 r3558  
    44 
    55  // 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";
     6  if (this.locale==="ca" || this.locale==="ca-valencia") this.locale="ca-ES@valencia";
     7  else if (this.locale==="es" || this.locale==="es-ES") this.locale="es-ES";
    88  else if (this.locale==="en") this.locale="en-US";
    99 
Note: See TracChangeset for help on using the changeset viewer.