From 054004b96ddf67f9478676951931f33f075c86d3 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Sat, 25 Dec 2004 15:04:30 +0000 Subject: [PATCH] Documented findings about how to use mo files with MacOS X's bundles. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/latex/wx/ti18n.tex | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/docs/latex/wx/ti18n.tex b/docs/latex/wx/ti18n.tex index aaaf06add4..d263cee5d1 100644 --- a/docs/latex/wx/ti18n.tex +++ b/docs/latex/wx/ti18n.tex @@ -48,6 +48,31 @@ language(s). It involves editing the .po file. given language: see \helpref{wxLocale}{wxlocale}. \end{enumerate} +If you want your app to run under MacOS X with internationlization as +described above you'll need to make one modification to the Info.plist +file which describes the contents of the "application bundle". This +file (an XML text file in UTF-8 format) should have a +CFBundleDevelopmentRegion entry describing the language of the developer +- mostly English - and normally MacOS X will query the bundle for the +presence of certain resource directories to find out which languages +are supported (e.g. the directory German.lproj for German). +Since wxWidgets based applications don't use these directories +for storing resource information (they store the translation in the +mo files instead) the application needs to be told explicitly which +langauges are supported. This is done by adding a CFBundleLocalizations +entry to Info.plist. This can look like this: + +\begin{verbatim} + CFBundleDevelopmentRegion + English + CFBundleLocalizations + + en + de + fr + +\end{verbatim} + See also the GNU gettext documentation linked from {\tt docs/html/index.htm} in your wxWidgets distribution. -- 2.45.2