docs: public String deleteLocaleButton(String href, String target, String image, String label, int type) {
  
          String filename = getParamResource();
  
          try {
              CmsResource res = getCms().readResource(filename, CmsResourceFilter.IGNORE_EXPIRATION);
  
              String temporaryFilename = CmsWorkplace.getTemporaryFileName(filename);
              if (getCms().existsResource(temporaryFilename, CmsResourceFilter.IGNORE_EXPIRATION)) {
                  res = getCms().readResource(temporaryFilename, CmsResourceFilter.IGNORE_EXPIRATION);
              }
              CmsFile file = getCms().readFile(res);
              CmsXmlContent xmlContent = CmsXmlContentFactory.unmarshal(getCms(), file);
              int locales = xmlContent.getLocales().size();
              // there are less than 2 locales, so disable the delete locale button
              if (locales < 2) {
                  href = null;
                  target = null;
                  image += "_in";
              }
          } catch (CmsException e) {
              // to nothing here in case the resource could not be opened
              if (LOG.isErrorEnabled()) {
                  LOG.error(Messages.get().getBundle().key(Messages.LOG_GET_LOCALES_1, filename), e);
              }
          }
          return button(href, target, image, label, type, getSkinUri() + "buttons/");
  
      }