Bug 1488398 - Fix a few nits in policies descriptions, add localization comments r=Felipe,Pike

Differential Revision: https://phabricator.services.mozilla.com/D4937

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Francesco Lodolo (:flod) 2018-09-04 14:54:02 +00:00
Родитель 4938049810
Коммит 58aaba43c4
2 изменённых файлов: 19 добавлений и 4 удалений

Просмотреть файл

@ -229,6 +229,12 @@ function generateDocumentation() {
let new_cont = document.getElementById("documentationContent"); let new_cont = document.getElementById("documentationContent");
new_cont.setAttribute("id", "documentationContent"); new_cont.setAttribute("id", "documentationContent");
// map specific policies to a different string ID, to allow updates to
// existing descriptions
let string_mapping = {
"DisableSetDesktopBackground": "DisableSetAsDesktopBackground",
};
for (let policyName in schema.properties) { for (let policyName in schema.properties) {
let main_tbody = document.createElement("tbody"); let main_tbody = document.createElement("tbody");
main_tbody.classList.add("collapsible"); main_tbody.classList.add("collapsible");
@ -244,7 +250,8 @@ function generateDocumentation() {
row.appendChild(col(policyName)); row.appendChild(col(policyName));
} }
let descriptionColumn = col(""); let descriptionColumn = col("");
descriptionColumn.setAttribute("data-l10n-id", `policy-${policyName}`); let stringID = string_mapping[policyName] || policyName;
descriptionColumn.setAttribute("data-l10n-id", `policy-${stringID}`);
row.appendChild(descriptionColumn); row.appendChild(descriptionColumn);
main_tbody.appendChild(row); main_tbody.appendChild(row);
let sec_tbody = document.createElement("tbody"); let sec_tbody = document.createElement("tbody");

Просмотреть файл

@ -60,26 +60,32 @@ policy-DisableSafeMode = Disable the feature to restart in Safe Mode. Note: the
policy-DisableSecurityBypass = Prevent the user from bypassing certain security warnings. policy-DisableSecurityBypass = Prevent the user from bypassing certain security warnings.
policy-DisableSetDesktopBackground = Disable the menu command Set Image as Desktop Background. policy-DisableSetAsDesktopBackground = Disable the menu command Set as Desktop Background for images.
policy-DisableSystemAddonUpdate = Prevent the browser from installing and updating system add-ons. policy-DisableSystemAddonUpdate = Prevent the browser from installing and updating system add-ons.
policy-DisableTelemetry = Turn off Telemetry. policy-DisableTelemetry = Turn off Telemetry.
policy-DisplayBookmarksToolbar = Display the Bookmark Toolbar by default. policy-DisplayBookmarksToolbar = Display the Bookmarks Toolbar by default.
policy-DisplayMenuBar = Display the Menu Bar by default. policy-DisplayMenuBar = Display the Menu Bar by default.
policy-DontCheckDefaultBrowser = Disable check for default browser on startup. policy-DontCheckDefaultBrowser = Disable check for default browser on startup.
# “lock” means that the user wont be able to change this setting
policy-EnableTrackingProtection = Enable or disable Content Blocking and optionally lock it. policy-EnableTrackingProtection = Enable or disable Content Blocking and optionally lock it.
# A “locked” extension cant be disabled or removed by the user. This policy
# takes 3 keys (“Install”, ”Uninstall”, ”Locked”), you can either keep them in
# English or translate them as verbs. See also:
# https://github.com/mozilla/policy-templates/blob/master/README.md#extensions-machine-only
policy-Extensions = Install, uninstall or lock extensions. The Install option takes URLs or paths as parameters. The Uninstall and Locked options take extension IDs. policy-Extensions = Install, uninstall or lock extensions. The Install option takes URLs or paths as parameters. The Uninstall and Locked options take extension IDs.
policy-FlashPlugin = Allow or deny usage of the Flash plugin. policy-FlashPlugin = Allow or deny usage of the Flash plugin.
policy-HardwareAcceleration = If false, turn off hardware acceleration. policy-HardwareAcceleration = If false, turn off hardware acceleration.
# “lock” means that the user wont be able to change this setting
policy-Homepage = Set and optionally lock the homepage. policy-Homepage = Set and optionally lock the homepage.
policy-InstallAddonsPermission = Allow certain websites to install add-ons. policy-InstallAddonsPermission = Allow certain websites to install add-ons.
@ -90,7 +96,7 @@ policy-OfferToSaveLogins = Enforce the setting to allow { -brand-short-name } to
policy-OverrideFirstRunPage = Override the first run page. Set this policy to blank if you want to disable the first run page. policy-OverrideFirstRunPage = Override the first run page. Set this policy to blank if you want to disable the first run page.
policy-OverridePostUpdatePage = Override the post-update "Whats New" page. Set this policy to blank if you want to disable the post-update page. policy-OverridePostUpdatePage = Override the post-update “Whats New” page. Set this policy to blank if you want to disable the post-update page.
policy-Permissions = Configure permissions for camera, microphone, location and notifications. policy-Permissions = Configure permissions for camera, microphone, location and notifications.
@ -104,4 +110,6 @@ policy-SearchBar = Set the default location of the search bar. The user is still
policy-SearchEngines = Configure search engine settings. This policy is only available on the Extended Support Release (ESR) version. policy-SearchEngines = Configure search engine settings. This policy is only available on the Extended Support Release (ESR) version.
# “format” refers to the format used for the value of this policy. See also:
# https://github.com/mozilla/policy-templates/blob/master/README.md#websitefilter-machine-only
policy-WebsiteFilter = Block websites from being visited. See documentation for more details on the format. policy-WebsiteFilter = Block websites from being visited. See documentation for more details on the format.