const WLocale& WLocale::currentLocale() { WApplication *app = WApplication::instance(); if (app) return app->locale(); else return systemLocale; }