Message Database

OK, does anybody know how to generate a Photon Message database? I’m not
talking about the standard language database (which end in .lbd) but the one
that ends in .mdb and is opened via a call to ApLoadMessageDB()?

Also if you could point me to any documentation about Message Databases
other than the one paragraph in the international language support and the
library functions, it would be appreciated?

BTW, anybody know the difference between a Message Database and the language
database?

Sorry, if this is a simple and stupid question, but I can’t find any other
info.

TIA
Bill Faulkner

William Faulkner <wdf@mac.com> wrote:

OK, does anybody know how to generate a Photon Message database? I’m not
talking about the standard language database (which end in .lbd) but the one
that ends in .mdb and is opened via a call to ApLoadMessageDB()?

There’s a ulitily called phabmsg. Unfortunately, it’s not documented
and seems to have some problems.

Also if you could point me to any documentation about Message Databases
other than the one paragraph in the international language support and the
library functions, it would be appreciated?

BTW, anybody know the difference between a Message Database and the language
database?

A language database is just a collection of all the strings taken from
all the PhAB widgets in your application. You don’t need it at runtime
– it’s only ever used by the language editor. At runtime, strings are
read either from the widget files (the *.wgt?'s) bundled into the
executable or from the appropriate translation file, depending on
whether a translation is in effect.

A message database contains messages that have nothing to do with your
widgets. At runtime, messages are read either from the message database
or from a translation file. (You can create translation files for a
message database by running phablang.)

Sorry, if this is a simple and stupid question, but I can’t find any other
info.

The message database mechanism was invented as a replacement for the
somewhat clumsy and wasteful trick of using bogus widgets in a widget
database to store messages. It hasn’t been used a lot by anyone so far
– people seem to be too used to the old way to switch to the new…

in article bca568$4oo$1@inn.qnx.com, Wojtek Lerch at wojtek_l@yahoo.ca wrote
on 6/12/03 9:11 AM:

William Faulkner <> wdf@mac.com> > wrote:
OK, does anybody know how to generate a Photon Message database? I’m not
talking about the standard language database (which end in .lbd) but the one
that ends in .mdb and is opened via a call to ApLoadMessageDB()?

There’s a ulitily called phabmsg. Unfortunately, it’s not documented
and seems to have some problems.

Thanks for the info and the caution. I will give it a try.

The message database mechanism was invented as a replacement for the
somewhat clumsy and wasteful trick of using bogus widgets in a widget
database to store messages. It hasn’t been used a lot by anyone so far
– people seem to be too used to the old way to switch to the new…

Well, since we are converting our application to QNX 6.2 AND going to
multi-lingual at the same time, it makes sense (to me at least) to use a
message database for those “hard-coded” strings that weren’t directly part
of widgets.

Anybody else have any experiences (good or bad) with photon message
databases?

TIA
Bill Faulkner