X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bfa78c63b9045c2a594ca6f04dc26a70c21f5f42..8e77fd8bca165aab9709649d79a7cbc6a172d4e1:/include/wx/app.h diff --git a/include/wx/app.h b/include/wx/app.h index fbd85a7839..a0fe4afee1 100644 --- a/include/wx/app.h +++ b/include/wx/app.h @@ -236,6 +236,18 @@ public: wxEventLoopBase* GetMainLoop() const { return m_mainLoop; } + // This function sets the C locale to the default locale for the current + // environment. It is advised to call this to ensure that the underlying + // toolkit uses the locale in which the numbers and monetary amounts are + // shown in the format expected by user and so on. + // + // Notice that this does _not_ change the global C++ locale, you need to do + // it explicitly if you want. + // + // Finally, notice that while this function is virtual, it is not supposed + // to be overridden outside of the library itself. + virtual void SetCLocale(); + // event processing functions // --------------------------