docs: public static SelectOptions getOptionsForLanguageStatic(Locale setLocale, Locale prevLocale) {
  
          // get available locales from the workplace manager
          List<Locale> locales = OpenCms.getWorkplaceManager().getLocales();
          List<String> options = new ArrayList<String>(locales.size());
          List<String> values = new ArrayList<String>(locales.size());
          int checkedIndex = 0;
          int counter = 0;
          Iterator<Locale> i = locales.iterator();
          while (i.hasNext()) {
              Locale currentLocale = i.next();
              // add all locales to the select box
              String language = currentLocale.getDisplayLanguage(setLocale);
              if (CmsStringUtil.isNotEmpty(currentLocale.getCountry())) {
                  language = language + " (" + currentLocale.getDisplayCountry(setLocale) + ")";
              }
              if (CmsStringUtil.isNotEmpty(currentLocale.getVariant())) {
                  language = language + " (" + currentLocale.getDisplayVariant(setLocale) + ")";
              }
              options.add(language);
              values.add(currentLocale.toString());
              if (prevLocale.toString().equals(currentLocale.toString())) {
                  // mark the currently active locale
                  checkedIndex = counter;
              }
              counter++;
          }
          SelectOptions selectOptions = new SelectOptions(options, values, checkedIndex);
          return selectOptions;
      }