Alfresco Share:在工作流表单上重命名标签

时间:2012-04-20 01:39:22

标签: workflow label alfresco

我需要在工作流表单上重命名一些标签。我想我找到了需要编辑的资源包。这是slingshot.properties文件。

我将workflow.field.message和workflow.field.comment的值更改为我的偏好并重新启动Alfresco但没有任何改变。我错过了什么吗?

1 个答案:

答案 0 :(得分:3)

  1. 在$ TOMCAT_HOME / webapps / share / WEB-INF / classes / alfresco / web-extension中,创建一个名为custom-slingshot-application-context.xml的新文件,其中包含以下内容:

    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
    <beans>
        <bean id="mycustom.resources" class="org.springframework.extensions.surf.util.ResourceBundleBootstrapComponent">
            <property name="resourceBundles">
                <list>
                    <value>alfresco.web-extension.messages.mycustom</value>
                </list>
            </property>
        </bean>
    </beans>
    
  2. 在$ TOMCAT_HOME / webapps / share / WEB-INF / classes / alfresco / web-extension / messages中,创建一个名为mycustom.properties的文件,其中包含以下内容:

    workflow.field.message=Whatever You Want
    
  3. 重启Tomcat
  4. 注意:

    • 请在两者中使用比“mycustom”更具描述性的内容 bean ID和属性文件名。这只是一个例子。
    • 创建不存在的文件夹。