From 570d846f6192712e8dd392cfa936ff84c854176a Mon Sep 17 00:00:00 2001 From: lovelywcm Date: Sat, 21 Feb 2009 13:26:01 +0800 Subject: [PATCH] string optimize continues... --- IAutoProxy.idl | 10 ++-- addChecksum.pl | 2 +- chrome/content/about.xul | 72 +---------------------- chrome/content/contents.rdf | 4 +- chrome/content/filterStorage.js | 14 ++--- chrome/content/settings.js | 12 ++-- chrome/content/settings.xul | 2 +- chrome/content/subscriptionClasses.js | 4 +- chrome/content/synchronizer.js | 2 +- chrome/locale/en-US/about.dtd | 2 +- chrome/locale/en-US/composer.dtd | 6 +- chrome/locale/en-US/global.properties | 18 +++--- chrome/locale/en-US/overlay.dtd | 16 ++--- chrome/locale/en-US/settings.dtd | 8 +-- chrome/locale/en-US/sidebar.dtd | 4 +- chrome/locale/en-US/subscription.dtd | 2 +- chrome/locale/en-US/tip_subscriptions.dtd | 8 +-- generateLocaleContentsRDF.pl | 2 +- make_release.pl | 10 ++-- validateChecksum.pl | 2 +- 20 files changed, 66 insertions(+), 134 deletions(-) diff --git a/IAutoProxy.idl b/IAutoProxy.idl index 6ee9b07..68ca91c 100644 --- a/IAutoProxy.idl +++ b/IAutoProxy.idl @@ -25,7 +25,7 @@ #include "nsISupports.idl" [scriptable, uuid(2a311a4f-f32b-472a-9fc9-f1b1529924ad)] -interface IAdblockPlusSubscription: nsISupports +interface IAutoProxySubscription: nsISupports { /** * Subscription identifier, this is its URL unless the attribute external is set @@ -89,7 +89,7 @@ interface IAdblockPlusSubscription: nsISupports }; [scriptable, uuid(6e70a4b4-bef8-b0b3-25a2-62146012352b)] -interface IAdblockPlus : nsISupports +interface IAutoProxy : nsISupports { /** * Number of subscriptions in the list @@ -101,14 +101,14 @@ interface IAdblockPlus : nsISupports * * @param id subscription identifier */ - IAdblockPlusSubscription getSubscription(in AString id); + IAutoProxySubscription getSubscription(in AString id); /** * Retrieves a subscription by its position in the list. * * @param index index of the subscription in the list */ - IAdblockPlusSubscription getSubscriptionAt(in PRInt32 index); + IAutoProxySubscription getSubscriptionAt(in PRInt32 index); /** * Adds an external subscription or updates subscription's patterns if it @@ -152,7 +152,7 @@ interface IAdblockPlus : nsISupports void removePatterns([array, size_is(length)] in wstring patterns, in unsigned long length); /** - * Returns the installed version of Adblock Plus. + * Returns the installed version of AutoProxy. */ AString getInstalledVersion(); }; diff --git a/addChecksum.pl b/addChecksum.pl index a95b53c..b47045a 100644 --- a/addChecksum.pl +++ b/addChecksum.pl @@ -2,7 +2,7 @@ ############################################################################# # This is a reference script to add checksums to downloadable # -# subscriptions. The checksum will be validated by Adblock Plus on download # +# subscriptions. The checksum will be validated by AutoProxy on download # # and checksum mismatches (broken downloads) will be rejected. # # # # To add a checksum to a subscription file, run the script like this: # diff --git a/chrome/content/about.xul b/chrome/content/about.xul index 5e66258..7f74414 100644 --- a/chrome/content/about.xul +++ b/chrome/content/about.xul @@ -32,7 +32,7 @@ @@ -58,75 +58,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + diff --git a/chrome/content/contents.rdf b/chrome/content/contents.rdf index 0c7a6bc..ca45869 100644 --- a/chrome/content/contents.rdf +++ b/chrome/content/contents.rdf @@ -10,8 +10,8 @@ = 0) - list[0] = "[Adblock Plus " + minVersion + "]"; + list[0] = "[AutoProxy " + minVersion + "]"; else - list[0] = "(Adblock Plus " + minVersion + " or higher required) " + list[0]; + list[0] = "(AutoProxy " + minVersion + " or higher required) " + list[0]; } list.push(""); @@ -612,7 +612,7 @@ function exportList() } catch (e) { - dump("Adblock Plus: error writing to file: " + e + "\n"); + dump("AutoProxy: error writing to file: " + e + "\n"); alert(aup.getString("filters_write_error")); } } @@ -1262,7 +1262,7 @@ function showTreeTooltip(/**Event*/ event) /**Boolean*/ } /** - * Opens About Adblock Plus dialog + * Opens About AutoProxy dialog */ function openAbout() { diff --git a/chrome/content/settings.xul b/chrome/content/settings.xul index 65dd55f..2fcf18d 100644 --- a/chrome/content/settings.xul +++ b/chrome/content/settings.xul @@ -60,7 +60,7 @@