code: protected String translateName(String path) {
  
          return CmsStringUtil.substitute(Pattern.compile("/([^/]+)$"), path, new I_CmsRegexSubstitution() {
  
              public String substituteMatch(String text, Matcher matcher) {
  
                  String name = text.substring(matcher.start(1), matcher.end(1));
                  return "/" + OpenCms.getResourceManager().getFileTranslator().translateResource(name);
              }
          });
      }
docs: Translates the last path segment of a path using the configured OpenCms file translations.<p>
  
  @param path the path for which the last segment should be translated
  
  @return the path with the translated last segment