replace usage of named constatnt WPLANG to get it from database