Set locale settings, updated snippits in scala