code: protected void initElementLanguage() {
  
          // get the default locale for the resource
          List<Locale> locales = OpenCms.getLocaleManager().getDefaultLocales(getCms(), getParamResource());
          Locale locale = locales.get(0);
          locale = ensureLocale(locale);
          setParamElementlanguage(locale.toString());
      }
docs: Initializes the element language for the first call of the editor.<p>