code: void showValidationErrorDialog(CmsValidationResult validationResult) {
  
          if (validationResult.getErrors().keySet().contains(m_entityId)) {
              getValidationHandler().displayValidation(m_entityId, validationResult);
          }
          String errorLocales = "";
          for (String entityId : validationResult.getErrors().keySet()) {
              String locale = CmsContentDefinition.getLocaleFromId(entityId);
              errorLocales += m_availableLocales.get(locale) + ", ";
          }
          // remove trailing ','
          errorLocales = errorLocales.substring(0, errorLocales.length() - 2);
          CmsErrorDialog dialog = new CmsErrorDialog(
              Messages.get().key(Messages.GUI_VALIDATION_ERROR_1, errorLocales),
              null);
          dialog.center();
      }
docs: Shows the validation error dialog.<p>
  
  @param validationResult the validation result