我有新闻/文章的asset-publisher
,但是当我在友好的URL中输入不存在的文章的名称时,它会显示错误消息。
友好网址:
/-/asset_publisher/instanceID/content/name-of-non-existent-article
错误消息:
El usuario不存在。
翻译:
找不到该用户。
直译为:
该用户不存在。
但是正如我所说,我的asset-publisher
是文章/新闻,而不是用户。
是否可以更改此消息?
或者也许我需要指定内容类型?怎么样?
我不会钩住该属性:
the-user-could-not-be-found=The user could not be found.
[由于Liferay
的Jonatan Cloutier,我意识到这是Content cannot be found
的翻译错误。
最后在此处搜索此文字Language_es.properties
the-asset-could-not-be-found=El usuario no existe. //The user does not exist.
和英语Language.properties上相同的文字:
the-asset-could-not-be-found=The asset could not be found.
所以我决定将其钩住,因为这仅是西班牙语属性中的翻译错误。