mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
Bug 1469339 - Put strings needed for the edit context menu into ftl at toolkit/locales;r=flod
This also registers the locale through the build system and browser glue since it's the first ftl file in toolkit/. MozReview-Commit-ID: 7XDqKmVU0vh --HG-- extra : rebase_source : b179e78554f667fdaf3c3fc32a020a8c176b5021
This commit is contained in:
parent
53f61d2eec
commit
e09fd8bb6c
@ -759,6 +759,9 @@ BrowserGlue.prototype = {
|
||||
|
||||
// Initialize the default l10n resource sources for L10nRegistry.
|
||||
let locales = Services.locale.getPackagedLocales();
|
||||
const greSource = new FileSource("toolkit", locales, "resource://gre/localization/{locale}/");
|
||||
L10nRegistry.registerSource(greSource);
|
||||
|
||||
const appSource = new FileSource("app", locales, "resource://app/localization/{locale}/");
|
||||
L10nRegistry.registerSource(appSource);
|
||||
|
||||
|
30
toolkit/locales/en-US/toolkit/main-window/editmenu.ftl
Normal file
30
toolkit/locales/en-US/toolkit/main-window/editmenu.ftl
Normal file
@ -0,0 +1,30 @@
|
||||
### This file contains the entities needed for the 'edit' menu
|
||||
### It's currently only used for the Browser Console
|
||||
|
||||
editmenu-undo =
|
||||
.label = Undo
|
||||
.accesskey = U
|
||||
|
||||
editmenu-redo =
|
||||
.label = Redo
|
||||
.accesskey = R
|
||||
|
||||
editmenu-cut =
|
||||
.label = Cut
|
||||
.accesskey = t
|
||||
|
||||
editmenu-copy =
|
||||
.label = Copy
|
||||
.accesskey = C
|
||||
|
||||
editmenu-paste =
|
||||
.label = Paste
|
||||
.accesskey = P
|
||||
|
||||
editmenu-delete =
|
||||
.label = Delete
|
||||
.accesskey = D
|
||||
|
||||
editmenu-select-all =
|
||||
.label = Select All
|
||||
.accesskey = A
|
@ -3,6 +3,8 @@
|
||||
# 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/.
|
||||
|
||||
[localization] @AB_CD@.jar:
|
||||
toolkit (%toolkit/**/*.ftl)
|
||||
|
||||
@AB_CD@.jar:
|
||||
% locale global @AB_CD@ %locale/@AB_CD@/global/
|
||||
|
Loading…
Reference in New Issue
Block a user