1 Reply Latest reply: May 19, 2012 6:39 PM by Randy Edmunds RSS

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

    JohnMarshall_PwC Community Member

      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.

        • 1. Re: Extending the Insert Bar: where do the labels come from?
          Randy Edmunds Employee Hosts

          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