RE: how to read i18n properties in api module(service builder)

Scarletake Bwi, modified 3 Years ago. Expert Posts: 327 Join Date: 12/20/10 Recent Posts

hi

i use liferay ce 7.4 ga11

except mvc-module, i want use i18n in other kind of module, for example, api module(service-builder)

but i put the constent folder in src/main/java or src/main/resources, still get exception: java.util.MissingResourceException: Can't find bundle for base name content.Language, locale en_US

can anyone help? thanks in advance.

Scarletake Bwi, modified 3 Years ago. Expert Posts: 327 Join Date: 12/20/10 Recent Posts

hi Russell

 

thank you, but i not use it in mvc module, i use it in api module.

however, i create another api, and use language module reference. it works.