code: private void initLocales() {
  
          if (!m_localeCache.isEmpty()) {
              return;
          }
          readLocale(m_primaryResource);
          for (CmsResource resource : m_secondaryResources) {
              readLocale(resource);
          }
          for (Map.Entry<CmsResource, Locale> entry : m_localeCache.entrySet()) {
              CmsResource key = entry.getKey();
              Locale value = entry.getValue();
              m_resourcesByLocale.put(value, key);
          }
          try {
              CmsProperty noTranslationProp = m_cms.readPropertyObject(
                  m_primaryResource,
                  CmsPropertyDefinition.PROPERTY_LOCALE_NOTRANSLATION,
                  false);
              m_noTranslation = noTranslationProp.getValue();
          } catch (CmsException e) {
              LOG.error(e.getLocalizedMessage(), e);
  
          }
      }
docs: Initializes the locales.<p>