[Project_owners] Switching extension language bug

Laeb laebcontact at hotmail.com
Wed Aug 11 16:30:15 EDT 2004


Ok, i got it ! It's a xul caching problem.
Now, i'm trying with this code to delete the xul cache (xul.mdl content):
     var classID =
Components.classes["@mozilla.org/network/cache-service;1"];
     var cacheService =
classID.getService(Components.interfaces.nsICacheService);

cacheService.evictEntries(Components.interfaces.nsICache.STORE_ON_DISK);

cacheService.evictEntries(Components.interfaces.nsICache.STORE_IN_MEMORY);
But this does not work. Any ideas ?

Btw, again i've sent html mail: sorry for that.

----- Original Message ----- 
From: Laeb
To: Mozdev Project Owners List
Sent: Wednesday, August 11, 2004 12:19 PM
Subject: [Project_owners] Switching extension language bug


Hi,
I use the function selectLocaleForPackage() to change the language of my
extension. This works fine for the display of the Options window
(options.xul) and any other window opened from it except for a single window
(tips.xul) which is loaded when the browser starts.
Does anyone has an idea of what could be the problem ?
Thanks.
Laeb.


_______________________________________________
Project_owners mailing list
Project_owners at mozdev.org
http://mozdev.org/mailman/listinfo/project_owners


More information about the Project_owners mailing list