Support function for title property

In a multilang app you need to make title translatable. Minor change to support title property as function.