fixed undefined vars error
fixed translations