code: public CmsCategory localizeCategory(CmsObject cms, CmsCategory category, Locale locale) {
  
          try {
              CmsUUID id = category.getId();
              CmsResource categoryRes = cms.readResource(id, CmsResourceFilter.IGNORE_EXPIRATION);
              String title = cms.readPropertyObject(
                  categoryRes,
                  CmsPropertyDefinition.PROPERTY_TITLE,
                  false,
                  locale).getValue();
              String description = cms.readPropertyObject(
                  categoryRes,
                  CmsPropertyDefinition.PROPERTY_DESCRIPTION,
                  false,
                  locale).getValue();
              return new CmsCategory(category, title, description);
          } catch (Exception e) {
              LOG.error("Could not read localized category: " + e.getLocalizedMessage(), e);
              return category;
          }
      }
docs: Localizes a single category by reading its locale-specific properties for title and description, if possible.<p>
  
  @param cms the CMS context to use for reading resources
  @param category the category to localize
  @param locale the locale to use
  
  @return the localized category