Update languages_helper.php

Part of the proposed modifications to have the current language extracted from the URI.