problem with language Db and menu items

Hi,

I’m developing a multi language app on a windows host. I’ve generated a
language database for the widgets in the gui but the resource labels for
all menu items in a menu are the same. Hence, I can’t translate the text
because each string in the translation editor requires a unique resource
label.
These resource labels for menu items seem to be automatically generated in
PhAB.

How do I get PhAB to assign unique resource labels ?

Thanks in advance,

Kevin T.

I’ll enter a PR for this and have already coded a fix. It’s actually not the
identical resource labels that are the problem. There’s some code internally
that matches items by instance name, and it’s getting mixed up with the
older method of matching up by index number.

There is a workaround but it’s very messy. What you would have to do is:
every time before you start the language editor, hand edit the .ldb file so
that all instance numbers for menu items are 0. So for example, if a section
of the .ldb file looks like this:

PtToggleButton0,3011,Toggle Text,0,0,TextFont09,0,Toggle
Menu0,9999,Menu Items,0=new,0,TextFont09,0,New
Menu0,9999,Menu Items,1=open,0,TextFont09,0,Open
Menu1,9999,Menu Items,0=save,0,TextFont09,0,Save
Menu1,9999,Menu Items,1=close,0,TextFont09,0,Close

Change it to:
PtToggleButton0,3011,Toggle Text,0,0,TextFont09,0,Toggle
Menu0,9999,Menu Items,0=new,0,TextFont09,0,New
Menu0,9999,Menu Items,0=open,0,TextFont09,0,Open
Menu1,9999,Menu Items,0=save,0,TextFont09,0,Save
Menu1,9999,Menu Items,0=close,0,TextFont09,0,Close

I know that this is painful, but maybe you could write a sed script to
automate this.


Max Feil
QNX Software Systems
Stay up-to-date on all the QNX news! Register here to receive our
newsletter:
http://www.qnx.com/news/forms/newsletter.html

“Kevin Tetreault” <kevin.tetreault@siemens.com> wrote in message
news:dgu8vr$rof$1@inn.qnx.com

Hi,

I’m developing a multi language app on a windows host. I’ve generated a
language database for the widgets in the gui but the resource labels for
all menu items in a menu are the same. Hence, I can’t translate the text
because each string in the translation editor requires a unique resource
label.
These resource labels for menu items seem to be automatically generated in
PhAB.

How do I get PhAB to assign unique resource labels ?

Thanks in advance,

Kevin T.