[poedit-users] getting started
Christian Buhtz <[email protected]>
| Newsgroups | gmane.editors.poedit.user |
|---|---|
| Message-ID | <[email protected]> |
Now I got this directory structure with files
../OctopusBackup (that is the working dir!)
../OctopusBackup/locales/de/ob.mo
../OctopusBackup/locales/de/ob.po
../OctopusBackup/locales/fr/ob.mo
../OctopusBackup/locales/fr/ob.po
That is my code with wxWidgest.
<code>
bool OBApp::OnInit()
{
static const wxLanguage langIds[] =
{
wxLANGUAGE_DEFAULT,
wxLANGUAGE_FRENCH,
wxLANGUAGE_GERMAN,
wxLANGUAGE_ENGLISH
};
locale_.AddCatalogLookupPathPrefix(_T("locales"));
locale_.AddCatalog(_T("ob"));
locale_.Init(langIds[1]);
pMainFrame_ = new OBMainFrame( _(_T("Hello World")), wxPoint(50,50),
wxSize(450,340), this );
pMainFrame_->AddMessage("OB started...");
pMainFrame_->AddMessage(core_.GetCurrentDateString());
return TRUE;
}
</code>
I do not know why it does not work. It should do I think. :)
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642