To enable internationalisation I presume the thing to do is pass in the format string as a variable. There might be problems with the object creation pl/pgsql functions which have already run up against the 16 parameter limit.
It's also a pain in a query which you want sorted by date, where the textual representation of that date sorts in some other order.