Daniel Veditz <[EMAIL PROTECTED]> wrote in message
<[EMAIL PROTECTED]>:
>Karl Ove Hufthammer wrote:
>>
>> What I want to do is replace the user's bookmark file with another
>> (localized) bookmark file.
>
>Please think hard before doing this evil action,
:)
>which would remove
>the English default bookmarks but would also remove any personal
>bookmarks the user has saved.
Yes, I know. This would of course only be an option, so that people who
*want* their bookmarks replaced (they have a fresh installation with
the default bookmarks), *can* have localized bookmarks.
>Maybe an "addBookmark" command in the XPI language would be better
>(I'm not volunteering!). You could add new localized bookmarks, but
>it would leave the user's existing stuff alone and they could delete
>the English stuff by hand if they want
My localized bookmark file will contain *both* the default English
bookmarks (perhaps with translated names of some of them), and some
localized ones.
>(after all, they were happy
>enough to have installed English in the first place).
No, when you install Mozilla (downloaded from Mozilla.org), you get
the English UI as default. You'll have to download a separate language
pack and install this (and restart Mozilla twice!) to get the Mozilla
UI in another language.
>If you're sure it's the right thing, it would be very easy to do...
>
> err =
> addFile("","newbkmark.html",getFolder("Profile"),"bookmarks.html");
Thanks!
>In 4.x, however, it was possible for the user to rename their
>bookmark file and put it in another location. If that's still true
>then the above wouldn't help you with anyone who put their bookmarks
>in a non-default location.
I don't think this is a problem, since the localized bookmarks will
only be installed in new (unmodified) profiles.
--
Karl Ove Hufthammer