Replaced texts with I18n lookups.

- Replaced various hard coded texts with I18n lookups.
- Fixed test that broke due to change of label.
- Extracted complicated HTML generation into helper.