Skip to main content
Participating Frequently
May 16, 2012
Question

Extending the Insert Bar: where do the labels come from?

  • May 16, 2012
  • 1 reply
  • 4100 views

Very much a beginner with Extensions; just a simple question about items on the Insert Bar.

When I look at the content of 'insertbar.xml', the entry for 'Heading 1' is this:

<button MMString:label="insertbar/textH1" MMString:name="insertbar/textH1" file="Text\H1.htm" id="DW_Text_H1" image="Text\H1.gif" />

So my question is, how does the button on the Insert Bar read 'Heading 1'? That text appears nowhere in the 'insertbar.xml' document, nor is it in 'menus.xml', so it must come from somewhere else.

I haven't found any reference to this in 'Extending Dreamweaver', and a content search of the Configurations folder yields zero as well. Any help is appreciated.

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

Randy Edmunds
Adobe Employee
Adobe Employee
May 20, 2012

Strings specified using MMString: have been separated out so they can be localized for different languages. They are compiled and stored in: [install-dir]/[lang]/Resources/strings.zbin (where lang is something like "en_US").

If your extension is just for 1 language or is non-localizable text, then change "MMString:label" to "label" and put the text directly in insertbar.xml.

If you want to make your extension for multiple languages, then store the strings in the [install-dir]/[lang]/Configuration/Strings folder and reference them by id. Take a look at the XML files in that fodler as an example.

HTH,

Randy