Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
May 16, 2012 May 16, 2012

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.

TOPICS
Extensions
4.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 19, 2012 May 19, 2012
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines