Bug 1415263 - [Form Autofill] Make accesskeys in form autofill doorhanger localizable. r=lchang

MozReview-Commit-ID: 1sAoPhYT9le

--HG--
extra : rebase_source : ac006fb35b036c0c7b1ecca05bb20e7e1a11dc67
This commit is contained in:
steveck-chung 2017-11-09 12:06:30 +08:00
Родитель 08ffc52b07
Коммит 172c7e5a3b
2 изменённых файлов: 16 добавлений и 8 удалений

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

@ -46,7 +46,7 @@ const CONTENT = {
},
mainAction: {
label: GetStringFromName(changeAutofillOptsKey),
accessKey: "C",
accessKey: GetStringFromName("changeAutofillOptionsAccessKey"),
callbackState: "open-pref",
disableHighlight: true,
},
@ -82,12 +82,12 @@ const CONTENT = {
},
mainAction: {
label: GetStringFromName("updateAddressLabel"),
accessKey: "U",
accessKey: GetStringFromName("updateAddressAccessKey"),
callbackState: "update",
},
secondaryActions: [{
label: GetStringFromName("createAddressLabel"),
accessKey: "C",
accessKey: GetStringFromName("createAddressAccessKey"),
callbackState: "create",
}],
options: {
@ -107,16 +107,16 @@ const CONTENT = {
},
mainAction: {
label: GetStringFromName("saveCreditCardLabel"),
accessKey: "S",
accessKey: GetStringFromName("saveCreditCardAccessKey"),
callbackState: "save",
},
secondaryActions: [{
label: GetStringFromName("cancelCreditCardLabel"),
accessKey: "D",
accessKey: GetStringFromName("cancelCreditCardAccessKey"),
callbackState: "cancel",
}, {
label: GetStringFromName("neverSaveCreditCardLabel"),
accessKey: "N",
accessKey: GetStringFromName("neverSaveCreditCardAccessKey"),
callbackState: "disable",
}],
options: {
@ -160,12 +160,12 @@ const CONTENT = {
},
mainAction: {
label: GetStringFromName("updateCreditCardLabel"),
accessKey: "U",
accessKey: GetStringFromName("updateCreditCardAccessKey"),
callbackState: "update",
},
secondaryActions: [{
label: GetStringFromName("createCreditCardLabel"),
accessKey: "C",
accessKey: GetStringFromName("createCreditCardAccessKey"),
callbackState: "create",
}],
options: {

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

@ -17,6 +17,7 @@ autofillSecurityOptionsLinkOSX = Form Autofill & Security Preferences
# that notifies users that addresses are saved. The button leads users to Form Autofill browser preferences.
changeAutofillOptions = Change Form Autofill Options
changeAutofillOptionsOSX = Change Form Autofill Preferences
changeAutofillOptionsAccessKey = C
# LOCALIZATION NOTE (addressesSyncCheckbox): If Sync is enabled, this checkbox is displayed on the doorhanger
# shown when saving addresses.
addressesSyncCheckbox = Share addresses with synced devices
@ -27,19 +28,26 @@ creditCardsSyncCheckbox = Share credit cards with synced devices
# when an address change is detected.
updateAddressMessage = Would you like to update your address with this new information?
createAddressLabel = Create New Address
createAddressAccessKey = C
updateAddressLabel = Update Address
updateAddressAccessKey = U
# LOCALIZATION NOTE (saveCreditCardMessage, saveCreditCardLabel, cancelCreditCardLabel, neverSaveCreditCardLabel):
# Used on the doorhanger when users submit payment with credit card.
# LOCALIZATION NOTE (saveCreditCardMessage): %S is brandShortName.
saveCreditCardMessage = Would you like %S to save this credit card? (Security code will not be saved)
saveCreditCardLabel = Save Credit Card
saveCreditCardAccessKey = S
cancelCreditCardLabel = Dont Save
cancelCreditCardAccessKey = D
neverSaveCreditCardLabel = Never Save Credit Cards
neverSaveCreditCardAccessKey = N
# LOCALIZATION NOTE (updateCreditCardMessage, createCreditCardLabel, updateCreditCardLabel): Used on the doorhanger
# when an credit card change is detected.
updateCreditCardMessage = Would you like to update your credit card with this new information?
createCreditCardLabel = Create New Credit Card
createCreditCardAccessKey = C
updateCreditCardLabel = Update Credit Card
updateCreditCardAccessKey = U
# LOCALIZATION NOTE (openAutofillMessagePanel): Tooltip label for Form Autofill doorhanger icon on address bar.
openAutofillMessagePanel = Open Form Autofill message panel