Index: gc_lang/fr/build.py ================================================================== --- gc_lang/fr/build.py +++ gc_lang/fr/build.py @@ -9,11 +9,10 @@ def build (sLang, dVars): "complementary build launched from make.py" createWebExtension(sLang, dVars) - createThunderbirdExtension(sLang, dVars) createMailExtension(sLang, dVars) createNodeJSPackage(sLang) def createWebExtension (sLang, dVars): @@ -57,25 +56,10 @@ spExtension = dVars['win_tb_debug_extension_path'] if platform.system() == "Windows" else dVars['linux_tb_debug_extension_path'] file_util.copy_file(spfZip, spExtension + "/" + dVars['tb_identifier']+ ".xpi") # Filename for TB is just spExtension = dVars['win_tb_beta_extension_path'] if platform.system() == "Windows" else dVars['linux_tb_beta_extension_path'] file_util.copy_file(spfZip, spExtension + "/" + dVars['tb_identifier']+ ".xpi") # Filename for TB is just - -def createThunderbirdExtension (sLang, dVars): - "create extension for Thunderbird (as XUL addon)" - print("Building extension for Thunderbird") - spfZip = "_build/" + dVars['tb_identifier'] + "-v" + dVars['version'] + '.xpi' - hZip = zipfile.ZipFile(spfZip, mode='w', compression=zipfile.ZIP_DEFLATED) - _copyGrammalecteJSPackageInZipFile(hZip, sLang) - for spf in ["LICENSE.txt", "LICENSE.fr.txt"]: - hZip.write(spf) - dVars = _createOptionsForThunderbird(dVars) - helpers.addFolderToZipAndFileFile(hZip, "gc_lang/"+sLang+"/tb", "", dVars, True) - hZip.close() - #spDebugProfile = dVars['win_tb_debug_extension_path'] if platform.system() == "Windows" else dVars['linux_tb_debug_extension_path'] - #helpers.unzip(spfZip, spDebugProfile) - def _createOptionsForThunderbird (dVars): dVars['sXULTabs'] = "" dVars['sXULTabPanels'] = "" # dialog options DELETED gc_lang/fr/tb/README.txt Index: gc_lang/fr/tb/README.txt ================================================================== --- gc_lang/fr/tb/README.txt +++ /dev/null @@ -1,14 +0,0 @@ - -= GRAMMALECTE = - -French grammar checker -By Olivier R. - -Website: https://grammalecte.net/ - -License: GPL 3 -- http://www.gnu.org/copyleft/gpl.html - -Grammalecte for Firefox is a derivative tool born from the version -for LibreOffice written in Python. - -Written in JavaScript ES6/ES7. DELETED gc_lang/fr/tb/chrome.manifest Index: gc_lang/fr/tb/chrome.manifest ================================================================== --- gc_lang/fr/tb/chrome.manifest +++ /dev/null @@ -1,9 +0,0 @@ -# https://developer.mozilla.org/en-US/docs/Chrome_Registration -content grammarchecker content/ -content promiseworker ./worker/ -resource grammalecte ./grammalecte-js/ -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 DELETED gc_lang/fr/tb/content/about.css Index: gc_lang/fr/tb/content/about.css ================================================================== --- gc_lang/fr/tb/content/about.css +++ /dev/null @@ -1,46 +0,0 @@ -/* 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; -} DELETED gc_lang/fr/tb/content/about.js Index: gc_lang/fr/tb/content/about.js ================================================================== --- gc_lang/fr/tb/content/about.js +++ /dev/null @@ -1,35 +0,0 @@ -// 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); - } -} DELETED gc_lang/fr/tb/content/about.xul Index: gc_lang/fr/tb/content/about.xul ================================================================== --- gc_lang/fr/tb/content/about.xul +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - -