code: private static Collection<Locale> getAllLocales() {
  
          Set<Locale> result = new HashSet<Locale>();
          result.addAll(OpenCms.getWorkplaceManager().getLocales());
          result.addAll(OpenCms.getLocaleManager().getAvailableLocales());
          return result;
      }
docs: Collects all locales possibly used in the system.<p>
  
  @return the collection of all locales