how to specify the directory containing *.mo or *. po files Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
basile
In need of some credit
In need of some credit
Posts: 9
Joined: Thu Feb 28, 2008 10:21 am

how to specify the directory containing *.mo or *. po files

Post by basile » Mon Aug 24, 2009 9:26 am

Hi All,

I try to put the *.mo and *.po files somewhere that the root directory where the executable is.

As some many examples are this is the "default" or most seen architecture:

Code: Select all

/A/B/C/../
         +-> wxApp.exe
         |
         +-> fr_FR/ (directory containing French translation)
         |        +->wxApp.po
         |        +->wxApp.mo
         +-> en_US/ (directory containing English translation)
         |        +->wxApp.po
         |        +->wxApp.mo
         +-> other translation directory
         |
         +-> plugins (directory containing different types of plugins)
         |
         +-> libs (example directory)
I'm not satisfied by this architecture because in the main directory (where the exe is located) you have all "translation" directory so as many translation you have, you have the same numbers of translation directory. It can be messy specially if you have "plugins" or whatever directories.

Is there a meaning to put all "translation" directory (fr_FR, en_US, de_DE, etc..) in one directory called "locales" for exampl... As the following directory architecture:

Code: Select all

/A/B/C/../
         +-> wxApp.exe
         |
         +-> locales/ (directory containing ALL translations)
                    +-> fr_FR/ (directory containing French translation)
         |          |        +->wxApp.po
         |          |        +->wxApp.mo
         |          +-> en_US/ (directory containing English translation)
         |          |        +->wxApp.po
         |          |        +->wxApp.mo
         |          +-> other translation directory
         |
         +-> plugins (directory containing different types of plugins)
         |
         +-> libs (example directory)
If someone can help me, because I tried different things following i18n documentation but without success.
MS Windows SP3 / Debian UNSTABLE/ WX2.9.10

tan
Moderator
Moderator
Posts: 1471
Joined: Tue Nov 14, 2006 7:58 am
Location: Saint-Petersburg, Russia

Re: how to specify the directory containing *.mo or *. po fi

Post by tan » Mon Aug 24, 2009 10:43 am

Hi,
basile wrote: Is there a meaning to put all "translation" directory (fr_FR, en_US, de_DE, etc..) in one directory called "locales" for exampl...
no problems:
http://docs.wxwidgets.org/stable/wx_wxl ... pathprefix
OS: Windows XP Pro
Compiler: MSVC++ 7.1
wxWidgets: 2.8.10

basile
In need of some credit
In need of some credit
Posts: 9
Joined: Thu Feb 28, 2008 10:21 am

Post by basile » Mon Aug 24, 2009 11:01 am

Thanks Tan! One more time, I'm the victim of "lack of Read The F**cking Manual" disease....
MS Windows SP3 / Debian UNSTABLE/ WX2.9.10

Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Post by Auria » Mon Aug 24, 2009 2:38 pm

Please accept the post that helped you and not your own.

Thanks
"Keyboard not detected. Press F1 to continue"
-- Windows

basile
In need of some credit
In need of some credit
Posts: 9
Joined: Thu Feb 28, 2008 10:21 am

Post by basile » Mon Aug 24, 2009 2:43 pm

Sorry but, I have already accepted the answer of Tan....
MS Windows SP3 / Debian UNSTABLE/ WX2.9.10

Post Reply