This is a test and I mocked the L10n class to return the entered string. So this wouldn't be localized. But in production this will be localized, see https://github.com/owncloud/core/pull/3223/files#L1R73