[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mozilla-ui
Subject:    Re: Adding "newBookmark" to bookmark manager buttons
From:       Chris I <usenet () ilias ! ca>
Date:       2003-11-10 8:21:27
[Download RAW message or body]

James Ross spoke thusly:
> Chris I wrote:
> 
>>I've added this to bookmarksManager.xul in comm.jar.
>>
>>      <toolbarbutton id="newBookmark" label="&button.newBookmark.label;"
>>                     accesskey="&button.newBookmark.accesskey;"
>>                     command="cmd_bm_newbookmark"/>
>>
>>I put it right before the toolbar entry for newFolder.
>>When I open the bookmark manager I get this message:
>>
>>XML Parsing Error: undefined entity
>>Location: chrome://communicator/content/bookmarks/bookmarksManager.xul
>>Line: 240, Column 46:
>>
>><toolbarbutton id="newBookmark" label="&button.newBookmark.label;"
>>---------------------------------------------^
>>
>>Is there something I need to edit in bookmarks.js?
> 
> You need to find a .dtd file... all the &...; bits are placeholders that 
> get loaded from a .dtd file (for localisation). button.newBookmark.label 
> and button.newBookmark.accesskey aren't likely to exist - presuming you 
> set them yourself - so you need to add the appropriate lines to a .dtd file.

Thanks. I got it working. The dtd file was (surprise, surprise)
bookmarks.dtd. :-) I changed the access key back to
command.newBookmark.accesskey, and added button.newBookmark.label to the
dtd file.

I love xul. :-)

-- 
solon@ilias.ca - Mozilla Champion
Netscape/Mozilla Links <http://ilias.ca>

_______________________________________________
Mozilla-ui mailing list
Mozilla-ui@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-ui
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic