ADDED gc_lang/fr/mailext/chrome.manifest Index: gc_lang/fr/mailext/chrome.manifest ================================================================== --- gc_lang/fr/mailext/chrome.manifest +++ gc_lang/fr/mailext/chrome.manifest @@ -0,0 +1,9 @@ +# https://developer.mozilla.org/en-US/docs/Chrome_Registration +content grammarchecker content/ +content promiseworker ./worker/ +resource grammalecte ./grammalecte/ +locale grammarchecker fr locale/fr/ +locale grammarchecker en locale/en/ +skin grammarchecker classic/1.0 skin/ +overlay chrome://messenger/content/messengercompose/messengercompose.xul chrome://grammarchecker/content/overlay.xul +style chrome://messenger/content/customizeToolbar.xul chrome://grammarchecker/content/overlay.css ADDED gc_lang/fr/mailext/content/about.css Index: gc_lang/fr/mailext/content/about.css ================================================================== --- gc_lang/fr/mailext/content/about.css +++ gc_lang/fr/mailext/content/about.css @@ -0,0 +1,46 @@ +/* CSS */ + +.descr { + font-size: 18px; + font-weight: bold; + text-align: center; +} + +.stdlabel { + font-size: 16px; + text-align: center; +} + +#website { + font-size: 16px; + font-weight: bold; + color: hsl(210, 50%, 50%); + text-align: center; + cursor: pointer; +} + +#contrib { + font-size: 16px; + text-align: center; + color: hsl(210, 50%, 50%); + cursor: pointer; +} + + +/* + TB Next: fix dialogheaders +*/ +dialogheader { + -moz-binding: url("chrome://messenger/content/generalBindings.xml#dialogheader"); + margin: 0 5px 5px; + border: 1px solid ThreeDDarkShadow; + padding: 5px 8px; + background-color: Highlight; + color: HighlightText; +} + +.dialogheader-title { + margin: 0 !important; + font-size: larger; + font-weight: bold; +} ADDED gc_lang/fr/mailext/content/about.js Index: gc_lang/fr/mailext/content/about.js ================================================================== --- gc_lang/fr/mailext/content/about.js +++ gc_lang/fr/mailext/content/about.js @@ -0,0 +1,35 @@ +// JavaScript + +const Cc = Components.classes; +const Ci = Components.interfaces; +//const Cu = Components.utils; + + +function openInBrowserURL (sURL) { + // method found in S3.Google.Translator + try { + openURL(sURL); + // Works in overlay.js, but not here… Seems there is no documentation available about this feature on Mozilla.org + } + catch (e) { + console.error(e); + //Cu.reportError(e); + } +} + +function openInTabURL (sURL) { + // method found in S3.Google.Translator + try { + let xWM = Cc["@mozilla.org/appshell/window-mediator;1"].getService(Ci.nsIWindowMediator); + let xWin = xWM.getMostRecentWindow("mail:3pane"); + let xTabmail = xWin.document.getElementById('tabmail'); + xWin.focus(); + if (xTabmail) { + xTabmail.openTab('contentTab', { contentPage: sURL }); + } + } + catch (e) { + console.error(e); + //Cu.reportError(e); + } +} ADDED gc_lang/fr/mailext/content/about.xul Index: gc_lang/fr/mailext/content/about.xul ================================================================== --- gc_lang/fr/mailext/content/about.xul +++ gc_lang/fr/mailext/content/about.xul @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + +