code: protected static String getMessageParentFolder(String moduleName) {
  
          CmsModule module = OpenCms.getModuleManager().getModule(moduleName);
          for (String resource : module.getResources()) {
              if (resource.contains(PATH_I18N + "/" + module.getName())) {
                  return resource.substring(0, resource.indexOf(PATH_I18N));
              }
          }
          return "/system/modules/" + module.getName();
      }
docs: Get parent folder of messages.<p>
  
  @param moduleName name of module
  @return path name