简体   繁体   中英

How to change asset publisher default not found message?

I have a asset-publisher of news/articles, but when I enter the name of a non-existent article in the friendly URL it appear wrong message.

Friendly URL:

/-/asset_publisher/instanceID/content/name-of-non-existent-article

Error message:

El usuario no existe.

Translated:

The user could not be found.

Literally translated:

The user does not exist.

But as i said my asset-publisher is of articles/news and not of users.

Is there a way to change this message?

Or maybe i need to specify the content type? How?


I wont to hook that property:

the-user-could-not-be-found=The user could not be found.

That was not the key to hook (i was looking another version properties), look at answer.

I realized it was a translation mistake from Liferay thanks to Jonatan Cloutier comment of Content cannot be found .

Finally search this literal here Language_es.properties

the-asset-could-not-be-found=El usuario no existe. //The user does not exist.

And the same literal on english Language.properties :

the-asset-could-not-be-found=The asset could not be found.

So i decide to hook it cause it was a translation mistake only in Spanish properties.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM