Alan Yaniger wrote:
Hi list-members,
In my Hebrew build of m113, I have added an entry to the Writer "Insert"
menu which activates a macro that I've written. I've done this by
modifying sw\uiconfig\swriter\menubar\menubar.xml to include the
following line:
<menu:menuitem
menu:id="vnd.sun.star.script:Tools.DirectionMarkers.Insert_RTL_Footnote?language=Basic&location=application"
menu:helpid="vnd.sun.star.script:Tools.DirectionMarkers.RTL_Footnote?language=Basic&location=application"
menu:label="Something in Hebrew"/>
The label of the entry is in Hebrew, which is fine for the Hebrew
version of OOo. I would like to have an English label for this menu
entry included in the English language pack I'm building.
I tried making seperate subdirectories under sw/uiconfig/swriter/menubar
for en-US and for he, with seperate versions of menubar.xml in each
directory. (I modified d.lst accordingly.) However, this just caused all
the menus to disappear.
How do I get an English label for my macro to appear to in the menu when
I apply the English language pack?
Hi Alan,
the menubar.xml file has no ability to store labels language dependent
for a command. There is only one label attribute and it is used to store
user customizations.
You have to use the <Module>Commands.xcu files located in
officecfg/registry/data/org/openoffice/Office/UI directory. You have to
decide which modules (Writer,Calc,...) must have access to your macro.
If more than one module must have access, you should use the
GenericCOmmands.xcu file. Add you command to the <Module>Commands.xcu
file in the set "Commands". The node name must be the full command with
protocol. You can use the <value xml:lang="<lang>">Text</value> entries
to add your language specific text. The user interface automatically
uses the command to retrieve the label. Even if your command is added to
a toolbar it would get the label bound to the command. From our point of
view this solution is much smarter than storing the label inside every
xml file.
Regards,
Carsten
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]