Internationalize javascript output upload error