Convert niceNames to method to allow localization

Legacy support is still retained: when using the `niceNames()` method `$niceNames` is simply ignored.