docs: public void setLocales(List<Locale> locales) {
  
          m_textSearchFields = new ArrayList<String>();
          if ((locales == null) || locales.isEmpty()) {
              m_textSearchFields.add(CmsSearchField.FIELD_TEXT);
              if (getFilterQueries() != null) {
                  for (String fq : getFilterQueries()) {
                      if (fq.startsWith(CmsSearchField.FIELD_CONTENT_LOCALES + ":")) {
                          removeFilterQuery(fq);
                      }
                  }
              }
          } else {
              List<String> localeStrings = new ArrayList<String>();
              for (Locale locale : locales) {
                  localeStrings.add(locale.toString());
                  if (!m_textSearchFields.contains("text")
                      && !OpenCms.getLocaleManager().getAvailableLocales().contains(locale)) {
                      // if the locale is not configured in the opencms-system.xml
                      // there will no localized text fields, so take the general one
                      m_textSearchFields.add("text");
                  } else {
                      m_textSearchFields.add("text_" + locale);
                  }
              }
              addFilterQuery(CmsSearchField.FIELD_CONTENT_LOCALES, localeStrings, false, false);
          }
          if (m_text != null) {
              setText(m_text);
          }
      }