(FR #1090) trim inputs before validation

TODO: kill lots of repeated code

Change-Id: I768f014a8fb2a46952e0be91b3b974dc2def6a05
Localisation updates from http://translatewiki.net.

Change-Id: Id11acace1d9cbbdd261f95947eef4c6ec74304b8
Zero-padding branch code out to 4, as per GC instructions
Really only matters for ES.
Would matter for FR, but it's currently disabled.

Change-Id: I598060f97a3a5b52a0dde9263d49b846608e34b5