Extracting TRANS strings and creating translation files

Is there a tool that extracts all the TRANS strings from the code and creates a translation file as specified in LocalisedStrings.h?

If not, what do the people here do to create their initial translation files?


I’d also be interested in such a tool. Should not be too difficult to hack one.

What I am still missing is a way to use indexed variables in TRANS strings, becauses objects and verbs (filenames, actions, etc) occur in different order depending on the language. Once there are two or more placeholders, their order may change.