All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.gwt.i18n.I18N.gwt.xml Maven / Gradle / Ivy

There is a newer version: 2.8.2
Show newest version

















  
  
  

  
    = 0) {
          var language = args.substring(startLang);
          var begin = language.indexOf("=") + 1;
          var end = language.indexOf("&");
          if (end == -1) {
            end = language.length;
          }
          locale = language.substring(begin, end);
        }
      }

      if (locale == null) {
        // Look for the locale on the web page
        locale = __gwt_getMetaProperty("locale")
      }

      if (locale == null) {
        // Look for an override computed by other means in the selection script
        locale = $wnd['__gwt_Locale'];
      } else {
        $wnd['__gwt_Locale'] = locale || defaultLocale;
      }
      
      if (locale == null) {
        return defaultLocale;
      }

      while (!__gwt_isKnownPropertyValue("locale",  locale)) {
        var lastIndex = locale.lastIndexOf("_");
        if (lastIndex == -1) {
          locale = defaultLocale;
          break;
        } else {
          locale = locale.substring(0,lastIndex);
        }
      }

      return locale;
    } catch(e){
      alert("Unexpected exception in locale detection, using default: " + e);
      return "default";
    }
  ]]>
  

  
    
  
  
    
  
  
    
  
  
  
  
  

  
  





© 2015 - 2025 Weber Informatics LLC | Privacy Policy