Changeset 2387


Ignore:
Timestamp:
Sep 30, 2014, 2:24:57 PM (4 years ago)
Author:
matthijs
Message:

Prefix all stringbundle ids with foneraDownloader

According to the automated review tool on addons.mozilla.org, this
prevents potential conflicts with other addons.

Location:
desktop/foneradownloader/trunk/chrome/content
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • desktop/foneradownloader/trunk/chrome/content/browser.xul

    r1860 r2387  
    3030
    3131  <stringbundleset id="stringbundleset">
    32     <stringbundle id="string-bundle" src="chrome://foneradownloader/locale/foneradownloader.properties"/>
     32    <stringbundle id="foneraDownloader-string-bundle" src="chrome://foneradownloader/locale/foneradownloader.properties"/>
    3333  </stringbundleset>
    3434
  • desktop/foneradownloader/trunk/chrome/content/dlmanager.xul

    r1538 r2387  
    4040
    4141  <stringbundleset id="stringbundleset">
    42     <stringbundle id="string-bundle" src="chrome://foneradownloader/locale/foneradownloader.properties"/>
     42    <stringbundle id="foneraDownloader-string-bundle" src="chrome://foneradownloader/locale/foneradownloader.properties"/>
    4343  </stringbundleset>
    4444
  • desktop/foneradownloader/trunk/chrome/content/js/accprefs.js

    r1914 r2387  
    6767
    6868    actionOnAccountCallback : function () {
    69         let stringsBundle = document.getElementById("string-bundle");
     69        let stringsBundle = document.getElementById("foneraDownloader-string-bundle");
    7070        FoneraAccountsPrefs.stopThrobbler();
    7171        let msglabel = document.getElementById("status-messages-text");
     
    8787            this.startThrobbler();
    8888            Fonera.Application.storage.set(FoneraDownloader.ACCOUNTERROR, null);
    89             let stringsBundle = document.getElementById("string-bundle");
     89            let stringsBundle = document.getElementById("foneraDownloader-string-bundle");
    9090            let msglabel = document.getElementById("status-messages-text");
    9191            msglabel.value = stringsBundle.getString("addingAccount");
     
    114114        this.startThrobbler();
    115115        let msglabel = document.getElementById("status-messages-text");
    116         let stringsBundle = document.getElementById("string-bundle");
     116        let stringsBundle = document.getElementById("foneraDownloader-string-bundle");
    117117        msglabel.value = stringsBundle.getString("deletingAccount");
    118118
  • desktop/foneradownloader/trunk/chrome/content/js/dlmanager.js

    r2385 r2387  
    307307        FoneraDLManager.drawErrors();
    308308
    309         let stringsBundle = document.getElementById("string-bundle");
     309        let stringsBundle = document.getElementById("foneraDownloader-string-bundle");
    310310        let text = stringsBundle.getString('loading') + "...";
    311311        let icon = "chrome://global/skin/icons/loading_16.png";
     
    369369            return;
    370370        }
    371         let stringsBundle = document.getElementById("string-bundle");
     371        let stringsBundle = document.getElementById("foneraDownloader-string-bundle");
    372372        dialog.setAttribute('hidden', false);
    373373        Fonera.Application.console.log("Last error found " + errors);
     
    449449        let drawFunction = (view == 'icon-view') ? FoneraDLManager.drawDownloadItem : FoneraDLManager.drawDownloadItemSmall;
    450450
    451         let stringsBundle = document.getElementById("string-bundle");
     451        let stringsBundle = document.getElementById("foneraDownloader-string-bundle");
    452452
    453453        // sort:
  • desktop/foneradownloader/trunk/chrome/content/js/linkadder.js

    r1914 r2387  
    7373                }
    7474            } else {
    75                 let stringsBundle = document.getElementById("string-bundle");
     75                let stringsBundle = document.getElementById("foneraDownloader-string-bundle");
    7676                let msg = stringsBundle.getString("noLinksTyped");
    7777                let name = stringsBundle.getString("error");
  • desktop/foneradownloader/trunk/chrome/content/js/linkmanager.js

    r1914 r2387  
    8585        if (links.length == 0) {
    8686            let dl = document.createElement("richlistitem");
    87             let stringsBundle = document.getElementById("string-bundle");
     87            let stringsBundle = document.getElementById("foneraDownloader-string-bundle");
    8888            let item = document.createElement("description");
    8989            let image = document.createElement("image");
     
    159159
    160160        if (!selected) {
    161             let stringsBundle = document.getElementById("string-bundle");
     161            let stringsBundle = document.getElementById("foneraDownloader-string-bundle");
    162162            let msg = stringsBundle.getString("noLinksSelected");
    163163            let name = stringsBundle.getString("error");
  • desktop/foneradownloader/trunk/chrome/content/js/status.js

    r1914 r2387  
    3131
    3232    drawTooltip : function() {
    33         let stringsBundle = document.getElementById("string-bundle");
     33        let stringsBundle = document.getElementById("foneraDownloader-string-bundle");
    3434        let panel = document.getElementById('foneraDownloader-sbpanel');
    3535        let clearErrorItem = document.getElementById("foneradownloader-sbpanel-clearerrors");
  • desktop/foneradownloader/trunk/chrome/content/linkadder.xul

    r1525 r2387  
    3535
    3636  <stringbundleset id="stringbundleset">
    37     <stringbundle id="string-bundle" src="chrome://foneradownloader/locale/foneradownloader.properties"/>
     37    <stringbundle id="foneraDownloader-string-bundle" src="chrome://foneradownloader/locale/foneradownloader.properties"/>
    3838  </stringbundleset>
    3939
  • desktop/foneradownloader/trunk/chrome/content/linkmanager.xul

    r1447 r2387  
    3636
    3737  <stringbundleset id="stringbundleset">
    38     <stringbundle id="string-bundle" src="chrome://foneradownloader/locale/foneradownloader.properties"/>
     38    <stringbundle id="foneraDownloader-string-bundle" src="chrome://foneradownloader/locale/foneradownloader.properties"/>
    3939  </stringbundleset>
    4040
  • desktop/foneradownloader/trunk/chrome/content/options.xul

    r1444 r2387  
    145145
    146146  <stringbundleset id="stringbundleset">
    147     <stringbundle id="string-bundle" src="chrome://foneradownloader/locale/foneradownloader.properties"/>
     147    <stringbundle id="foneraDownloader-string-bundle" src="chrome://foneradownloader/locale/foneradownloader.properties"/>
    148148  </stringbundleset>
    149149
Note: See TracChangeset for help on using the changeset viewer.