Fixed the I18n deprecation warning
Merge pull request #6011 from jvanbaarsen/deprecation_warning_fix

Fixed the I18n deprecation warning