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:
Brian Grinstead 2018-07-16 08:53:23 -07:00
parent 53f61d2eec
commit e09fd8bb6c
3 changed files with 35 additions and 0 deletions

View File

@ -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);

View 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

View File

@ -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/