diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /browser/components/preferences/dialogs/translations.xhtml | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'browser/components/preferences/dialogs/translations.xhtml')
-rw-r--r-- | browser/components/preferences/dialogs/translations.xhtml | 161 |
1 files changed, 161 insertions, 0 deletions
diff --git a/browser/components/preferences/dialogs/translations.xhtml b/browser/components/preferences/dialogs/translations.xhtml new file mode 100644 index 0000000000..1a55631b0c --- /dev/null +++ b/browser/components/preferences/dialogs/translations.xhtml @@ -0,0 +1,161 @@ +<?xml version="1.0"?> + +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<window + id="TranslationsDialog" + data-l10n-id="translations-settings-title" + data-l10n-attrs="title, style" + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + onload="gTranslationsSettings.onLoad();" + onunload="gTranslationsSettings.removeObservers();" + persist="width height" +> + <dialog + buttons="accept" + data-l10n-id="translations-settings-close-dialog" + data-l10n-attrs="buttonlabelaccept, buttonaccesskeyaccept" + > + <linkset> + <html:link rel="stylesheet" href="chrome://global/skin/global.css" /> + <html:link + rel="stylesheet" + href="chrome://browser/skin/preferences/preferences.css" + /> + + <html:link rel="localization" href="browser/translations.ftl" /> + </linkset> + + <script src="chrome://browser/content/preferences/dialogs/translations.js" /> + + <keyset> + <key + data-l10n-id="translations-settings-close-key" + modifiers="accel" + oncommand="window.close();" + /> + </keyset> + + <vbox class="contentPane"> + <vbox flex="1"> + <label + id="alwaysTranslateLanguagesLabel" + data-l10n-id="translations-settings-always-translate-langs-description" + control="permissionsTree" + /> + <separator class="thin" /> + <tree + id="alwaysTranslateLanguagesTree" + flex="1" + style="height: 12em" + hidecolumnpicker="true" + onkeypress="gTranslationsSettings.onAlwaysTranslateLanguageKeyPress(event)" + onselect="gTranslationsSettings.onSelectAlwaysTranslateLanguage();" + > + <treecols> + <treecol + id="languageCol" + data-l10n-id="translations-settings-languages-column" + flex="1" + /> + </treecols> + <treechildren /> + </tree> + </vbox> + <hbox class="actionButtons" pack="start"> + <button + id="removeAlwaysTranslateLanguage" + disabled="true" + data-l10n-id="translations-settings-remove-language-button" + oncommand="gTranslationsSettings.onRemoveAlwaysTranslateLanguage();" + /> + <button + id="removeAllAlwaysTranslateLanguages" + data-l10n-id="translations-settings-remove-all-languages-button" + oncommand="gTranslationsSettings.onRemoveAllAlwaysTranslateLanguages();" + /> + </hbox> + <separator /> + <vbox flex="1"> + <label + id="neverTranslateLanguagesLabel" + data-l10n-id="translations-settings-never-translate-langs-description" + control="permissionsTree" + /> + <separator class="thin" /> + <tree + id="neverTranslateLanguagesTree" + flex="1" + style="height: 12em" + hidecolumnpicker="true" + onkeypress="gTranslationsSettings.onNeverTranslateLanguageKeyPress(event)" + onselect="gTranslationsSettings.onSelectNeverTranslateLanguage();" + > + <treecols> + <treecol + id="languageCol" + data-l10n-id="translations-settings-languages-column" + flex="1" + /> + </treecols> + <treechildren /> + </tree> + </vbox> + <hbox class="actionButtons" pack="start"> + <button + id="removeNeverTranslateLanguage" + disabled="true" + data-l10n-id="translations-settings-remove-language-button" + oncommand="gTranslationsSettings.onRemoveNeverTranslateLanguage();" + /> + <button + id="removeAllNeverTranslateLanguages" + data-l10n-id="translations-settings-remove-all-languages-button" + oncommand="gTranslationsSettings.onRemoveAllNeverTranslateLanguages();" + /> + </hbox> + <separator /> + <vbox flex="1"> + <label + id="neverTranslateSitesLabel" + data-l10n-id="translations-settings-never-translate-sites-description" + control="permissionsTree" + /> + <separator class="thin" /> + <tree + id="neverTranslateSitesTree" + flex="1" + style="height: 12em" + hidecolumnpicker="true" + onkeypress="gTranslationsSettings.onNeverTranslateSiteKeyPress(event)" + onselect="gTranslationsSettings.onSelectNeverTranslateSite();" + > + <treecols> + <treecol + id="siteCol" + data-l10n-id="translations-settings-sites-column" + flex="1" + /> + </treecols> + <treechildren /> + </tree> + </vbox> + <hbox class="actionButtons" pack="start"> + <button + id="removeNeverTranslateSite" + disabled="true" + data-l10n-id="translations-settings-remove-site-button" + oncommand="gTranslationsSettings.onRemoveNeverTranslateSite();" + /> + <button + id="removeAllNeverTranslateSites" + data-l10n-id="translations-settings-remove-all-sites-button" + oncommand="gTranslationsSettings.onRemoveAllNeverTranslateSites();" + /> + </hbox> + </vbox> + </dialog> +</window> |