Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Grails: how to collect all messages

I am new to Grails and I have inherited an existing application. I have a big file message.properties that I would like to prune, in order to remove keys that are no longer used.

In Django there is a command makemessages that goes through all codebase and collects all strings that need translation, adding them to the messages file and commenting out the entries that no longer exist. Is there a similar tool for Grails? If it helps, the project is based on verions 1.3.9.

like image 679
Andrea Avatar asked Aug 02 '12 07:08

Andrea


1 Answers

There is no such tool, but you can create your own gant script. Take a look at getting a list of all i18n properties used in a Grails application and process this list.

like image 63
Mr. Cat Avatar answered Nov 03 '22 11:11

Mr. Cat