Fix extraction of context messages from ui files + more disambiguations

Note: tested.