Fixing Ajax Translation function