Update foreground.php

Switch to json based I18n system as used by MW 1.23+