First working version that handles message catalogs.