translationExceptions.xhtml (3822B)
1 <?xml version="1.0"?> 2 3 <!-- This Source Code Form is subject to the terms of the Mozilla Public 4 - License, v. 2.0. If a copy of the MPL was not distributed with this 5 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> 6 7 <!-- TODO (Bug 1817084) Remove this file when we disable the extension --> 8 9 <window 10 id="TranslationDialog" 11 data-l10n-id="translation-window2" 12 data-l10n-attrs="title, style" 13 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 14 xmlns:html="http://www.w3.org/1999/xhtml" 15 onload="gTranslationExceptions.onLoad();" 16 onunload="gTranslationExceptions.uninit();" 17 persist="width height" 18 > 19 <dialog 20 buttons="accept" 21 data-l10n-id="translation-dialog" 22 data-l10n-attrs="buttonlabelaccept, buttonaccesskeyaccept" 23 > 24 <linkset> 25 <html:link rel="stylesheet" href="chrome://global/skin/global.css" /> 26 <html:link 27 rel="stylesheet" 28 href="chrome://browser/skin/preferences/preferences.css" 29 /> 30 31 <html:link 32 rel="localization" 33 href="browser/preferences/translation.ftl" 34 /> 35 </linkset> 36 37 <script src="chrome://browser/content/preferences/dialogs/translationExceptions.js" /> 38 39 <keyset> 40 <key 41 data-l10n-id="translation-close-key" 42 modifiers="accel" 43 oncommand="window.close();" 44 /> 45 </keyset> 46 47 <vbox class="contentPane"> 48 <vbox flex="1"> 49 <label 50 id="languagesLabel" 51 data-l10n-id="translation-languages-disabled-desc" 52 control="permissionsTree" 53 /> 54 <separator class="thin" /> 55 <tree 56 id="languagesTree" 57 flex="1" 58 style="height: 12em" 59 hidecolumnpicker="true" 60 onkeypress="gTranslationExceptions.onLanguageKeyPress(event)" 61 onselect="gTranslationExceptions.onLanguageSelected();" 62 > 63 <treecols> 64 <treecol 65 id="languageCol" 66 data-l10n-id="translation-languages-column" 67 flex="1" 68 /> 69 </treecols> 70 <treechildren /> 71 </tree> 72 </vbox> 73 <hbox class="actionButtons" pack="end"> 74 <button 75 id="removeLanguage" 76 disabled="true" 77 data-l10n-id="translation-languages-button-remove" 78 oncommand="gTranslationExceptions.onLanguageDeleted();" 79 /> 80 <button 81 id="removeAllLanguages" 82 data-l10n-id="translation-languages-button-remove-all" 83 oncommand="gTranslationExceptions.onAllLanguagesDeleted();" 84 /> 85 <spacer flex="1" /> 86 </hbox> 87 <separator /> 88 <vbox flex="1"> 89 <label 90 id="languagesLabel" 91 data-l10n-id="translation-sites-disabled-desc" 92 control="permissionsTree" 93 /> 94 <separator class="thin" /> 95 <tree 96 id="sitesTree" 97 flex="1" 98 style="height: 12em" 99 hidecolumnpicker="true" 100 onkeypress="gTranslationExceptions.onSiteKeyPress(event)" 101 onselect="gTranslationExceptions.onSiteSelected();" 102 > 103 <treecols> 104 <treecol 105 id="siteCol" 106 data-l10n-id="translation-sites-column" 107 flex="1" 108 /> 109 </treecols> 110 <treechildren /> 111 </tree> 112 </vbox> 113 </vbox> 114 115 <hbox class="actionButtons" pack="end"> 116 <button 117 id="removeSite" 118 disabled="true" 119 data-l10n-id="translation-sites-button-remove" 120 oncommand="gTranslationExceptions.onSiteDeleted();" 121 /> 122 <button 123 id="removeAllSites" 124 data-l10n-id="translation-sites-button-remove-all" 125 oncommand="gTranslationExceptions.onAllSitesDeleted();" 126 /> 127 <spacer flex="1" /> 128 </hbox> 129 </dialog> 130 </window>