localize script, first version