Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cocoa/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Liferay 如何从主题重写Language.properties?_Liferay_Liferay Theme - Fatal编程技术网

Liferay 如何从主题重写Language.properties?

Liferay 如何从主题重写Language.properties?,liferay,liferay-theme,Liferay,Liferay Theme,我在文件Liferay look and feel.xml中为我的Liferay主题添加了新的配置设置 <setting configurable="true" key="show-navigation" type="checkbox" value="true" /> <?xml version="1.0"?> <!DOCTYPE hook PUBLIC "-//Liferay//DTD Hook 6.2.0//EN" "http://www.liferay.co

我在文件Liferay look and feel.xml中为我的Liferay主题添加了新的配置设置

<setting configurable="true" key="show-navigation" type="checkbox" value="true" />
<?xml version="1.0"?>
<!DOCTYPE hook PUBLIC "-//Liferay//DTD Hook 6.2.0//EN" "http://www.liferay.com/dtd/liferay-hook_6_2_0.dtd">

<hook>
    <portal-properties>portal.properties</portal-properties>
    <language-properties>content/Language*.properties</language-properties>
</hook>
然后在
theme\docroot\WEB-INF\
中,我添加了liferayhook.xml

<setting configurable="true" key="show-navigation" type="checkbox" value="true" />
<?xml version="1.0"?>
<!DOCTYPE hook PUBLIC "-//Liferay//DTD Hook 6.2.0//EN" "http://www.liferay.com/dtd/liferay-hook_6_2_0.dtd">

<hook>
    <portal-properties>portal.properties</portal-properties>
    <language-properties>content/Language*.properties</language-properties>
</hook>

portal.properties
内容/语言*.properties
但它不起作用。如果我对portlet执行相同的过程,它就会工作。
为什么?

是名称:您不使用
内容/语言*.properties
,而只使用
内容/语言.properties
。否则我相信你已经找到了解决问题的正确方法,这只是一个小细节