~luksaulius/libnotify-mozilla/saulius

« back to all changes in this revision

Viewing changes to content/overlay.js

  • Committer: Saulius Lukauskas
  • Date: 2009-07-21 17:41:32 UTC
  • Revision ID: luksaulius@gmail.com-20090721174132-2um2ry3gt7utilwu
Modified preferences and the script to add full locale support

Show diffs side-by-side

added added

removed removed

Lines of Context:
192
192
       }
193
193
       else {
194
194
          //1 message string
195
 
          var summary = this.mBundle.GetStringFromName("mail.new.mail.summary",
196
 
                                                          [this.mailQueue.length], 1);
 
195
          var summary = this.mBundle.GetStringFromName("mail.new.mail.summary");
197
196
       }
198
197
       
199
198
       //Check whether we have to anything at all (set a variable for convenience)
285
284
  }catch(e){
286
285
        var prompts = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]
287
286
                        .getService(Components.interfaces.nsIPromptService);
288
 
    prompts.alert(null, "Dependency error", "To see notifications via libnotify, the libnotify-bin package needs to be installed. Please install this package via System->Administration->Synaptic Package Manager.");
 
287
    prompts.alert(null, this.mBundle.GetStringFromName("error.sendNotification.title"), this.mBundle.GetStringFromName("error.sendNotification.body"));
289
288
    Components.utils.reportError(e);
290
289
      throw e;
291
290
  }