[Translation] improved generation of language files
The whole bundle will be scanned for translations instead of just view files.

The following sequences are included:
$translator->trans('...')
$this->translator->trans('...')
$view['translator']->trans('...')

Original unit tests pass: YES
New unit tests are added for this change.
New unit tests pass: YES