Fix failing test about date.order translation values

Introduced in b718998f3e8e6f3d01ad138e40f08fbcc3736285.
Remove warning: shadowing outer local variable