forked from mirrors/gecko-dev
Bug 1834305 - Remove intl/locale/PluralForm.sys.mjs as unused. r=nordzilla,devtools-reviewers
This library is now completely unused in m-c. Differential Revision: https://phabricator.services.mozilla.com/D185699
This commit is contained in:
parent
c3f2bd1294
commit
a5dabe8f0d
15 changed files with 6 additions and 812 deletions
|
|
@ -57,7 +57,6 @@ ChromeUtils.defineESModuleGetters(this, {
|
|||
PlacesTransactions: "resource://gre/modules/PlacesTransactions.sys.mjs",
|
||||
PlacesUIUtils: "resource:///modules/PlacesUIUtils.sys.mjs",
|
||||
PlacesUtils: "resource://gre/modules/PlacesUtils.sys.mjs",
|
||||
PluralForm: "resource://gre/modules/PluralForm.sys.mjs",
|
||||
Pocket: "chrome://pocket/content/Pocket.sys.mjs",
|
||||
PrivateBrowsingUtils: "resource://gre/modules/PrivateBrowsingUtils.sys.mjs",
|
||||
ProcessHangMonitor: "resource:///modules/ProcessHangMonitor.sys.mjs",
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ const { DownloadUtils } = ChromeUtils.importESModule(
|
|||
|
||||
ChromeUtils.defineESModuleGetters(this, {
|
||||
LoginHelper: "resource://gre/modules/LoginHelper.sys.mjs",
|
||||
PluralForm: "resource://gre/modules/PluralForm.sys.mjs",
|
||||
});
|
||||
|
||||
var security = {
|
||||
|
|
|
|||
|
|
@ -370,7 +370,6 @@ const TEST_GLOBAL = {
|
|||
removeListener() {},
|
||||
},
|
||||
},
|
||||
PluralForm: { get() {} },
|
||||
Preferences: FakePrefs,
|
||||
PrivateBrowsingUtils: {
|
||||
isBrowserPrivate: () => false,
|
||||
|
|
|
|||
|
|
@ -3,10 +3,10 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/*
|
||||
* The code below is mostly is a slight modification of intl/locale/PluralForm.jsm that
|
||||
* removes dependencies on chrome privileged APIs. To make maintenance easier, this file
|
||||
* is kept as close as possible to the original in terms of implementation.
|
||||
* The modified methods here are
|
||||
* The code below is mostly is a slight modification of the now removed
|
||||
* intl/locale/PluralForm.jsm that removes dependencies on chrome privileged
|
||||
* APIs. To make maintenance easier, this file is kept as close as possible to
|
||||
* the original in terms of implementation. The modified methods here are
|
||||
* - makeGetter (remove code adding the caller name to the log)
|
||||
* - get ruleNum() (rely on LocalizationHelper instead of String.services)
|
||||
* - log() (rely on console.log)
|
||||
|
|
|
|||
|
|
@ -187,11 +187,8 @@ StringBundle is a runtime API used primarily for localization of C++ code.
|
|||
The messages are stored in `.properties` files and loaded using the StringBundle API
|
||||
and then retrieved from there via imperative calls.
|
||||
|
||||
The system provides external arguments which can be placed into the string, and
|
||||
supports basic plural categories via a proprietary API `PluralForm.sys.mjs`.
|
||||
|
||||
Adding new StringBundle messages should only be done after serious consideration,
|
||||
and in particular any new use of PluralForm messages should be avoided.
|
||||
The system provides external positional arguments which can be placed into the string.
|
||||
Adding new StringBundle messages should only be done after serious consideration.
|
||||
|
||||
.. _Pontoon: https://pontoon.mozilla.org/
|
||||
.. _hg.mozilla.org/l10n-central: https://hg.mozilla.org/l10n-central/
|
||||
|
|
|
|||
|
|
@ -1,311 +0,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/. */
|
||||
|
||||
/**
|
||||
* This module provides the PluralForm object which contains a method to figure
|
||||
* out which plural form of a word to use for a given number based on the
|
||||
* current localization. There is also a makeGetter method that creates a get
|
||||
* function for the desired plural rule. This is useful for extensions that
|
||||
* specify their own plural rule instead of relying on the browser default.
|
||||
* (I.e., the extension hasn't been localized to the browser's locale.)
|
||||
*
|
||||
* See: http://developer.mozilla.org/en/docs/Localization_and_Plurals
|
||||
*
|
||||
* NOTE: any change to these plural forms need to be reflected in
|
||||
* compare-locales:
|
||||
* https://hg.mozilla.org/l10n/compare-locales/file/default/compare_locales/plurals.py
|
||||
*
|
||||
* List of methods:
|
||||
*
|
||||
* string pluralForm
|
||||
* get(int aNum, string aWords)
|
||||
*
|
||||
* int numForms
|
||||
* numForms()
|
||||
*
|
||||
* [string pluralForm get(int aNum, string aWords), int numForms numForms()]
|
||||
* makeGetter(int aRuleNum)
|
||||
* Note: Basically, makeGetter returns 2 functions that do "get" and "numForm"
|
||||
*/
|
||||
|
||||
const kIntlProperties = "chrome://global/locale/intl.properties";
|
||||
|
||||
// These are the available plural functions that give the appropriate index
|
||||
// based on the plural rule number specified. The first element is the number
|
||||
// of plural forms and the second is the function to figure out the index.
|
||||
/* eslint-disable no-nested-ternary */
|
||||
var gFunctions = [
|
||||
// 0: Chinese
|
||||
[1, n => 0],
|
||||
// 1: English
|
||||
[2, n => (n != 1 ? 1 : 0)],
|
||||
// 2: French
|
||||
[2, n => (n > 1 ? 1 : 0)],
|
||||
// 3: Latvian
|
||||
[3, n => (n % 10 == 1 && n % 100 != 11 ? 1 : n % 10 == 0 ? 0 : 2)],
|
||||
// 4: Scottish Gaelic
|
||||
[
|
||||
4,
|
||||
n =>
|
||||
n == 1 || n == 11 ? 0 : n == 2 || n == 12 ? 1 : n > 0 && n < 20 ? 2 : 3,
|
||||
],
|
||||
// 5: Romanian
|
||||
[3, n => (n == 1 ? 0 : n == 0 || (n % 100 > 0 && n % 100 < 20) ? 1 : 2)],
|
||||
// 6: Lithuanian
|
||||
[
|
||||
3,
|
||||
n =>
|
||||
n % 10 == 1 && n % 100 != 11
|
||||
? 0
|
||||
: n % 10 >= 2 && (n % 100 < 10 || n % 100 >= 20)
|
||||
? 2
|
||||
: 1,
|
||||
],
|
||||
// 7: Russian
|
||||
[
|
||||
3,
|
||||
n =>
|
||||
n % 10 == 1 && n % 100 != 11
|
||||
? 0
|
||||
: n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20)
|
||||
? 1
|
||||
: 2,
|
||||
],
|
||||
// 8: Slovak
|
||||
[3, n => (n == 1 ? 0 : n >= 2 && n <= 4 ? 1 : 2)],
|
||||
// 9: Polish
|
||||
[
|
||||
3,
|
||||
n =>
|
||||
n == 1
|
||||
? 0
|
||||
: n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20)
|
||||
? 1
|
||||
: 2,
|
||||
],
|
||||
// 10: Slovenian
|
||||
[
|
||||
4,
|
||||
n =>
|
||||
n % 100 == 1
|
||||
? 0
|
||||
: n % 100 == 2
|
||||
? 1
|
||||
: n % 100 == 3 || n % 100 == 4
|
||||
? 2
|
||||
: 3,
|
||||
],
|
||||
// 11: Irish Gaeilge
|
||||
[
|
||||
5,
|
||||
n =>
|
||||
n == 1
|
||||
? 0
|
||||
: n == 2
|
||||
? 1
|
||||
: n >= 3 && n <= 6
|
||||
? 2
|
||||
: n >= 7 && n <= 10
|
||||
? 3
|
||||
: 4,
|
||||
],
|
||||
// 12: Arabic
|
||||
[
|
||||
6,
|
||||
n =>
|
||||
n == 0
|
||||
? 5
|
||||
: n == 1
|
||||
? 0
|
||||
: n == 2
|
||||
? 1
|
||||
: n % 100 >= 3 && n % 100 <= 10
|
||||
? 2
|
||||
: n % 100 >= 11 && n % 100 <= 99
|
||||
? 3
|
||||
: 4,
|
||||
],
|
||||
// 13: Maltese
|
||||
[
|
||||
4,
|
||||
n =>
|
||||
n == 1
|
||||
? 0
|
||||
: n == 0 || (n % 100 > 0 && n % 100 <= 10)
|
||||
? 1
|
||||
: n % 100 > 10 && n % 100 < 20
|
||||
? 2
|
||||
: 3,
|
||||
],
|
||||
// 14: Unused
|
||||
[3, n => (n % 10 == 1 ? 0 : n % 10 == 2 ? 1 : 2)],
|
||||
// 15: Icelandic, Macedonian
|
||||
[2, n => (n % 10 == 1 && n % 100 != 11 ? 0 : 1)],
|
||||
// 16: Breton
|
||||
[
|
||||
5,
|
||||
n =>
|
||||
n % 10 == 1 && n % 100 != 11 && n % 100 != 71 && n % 100 != 91
|
||||
? 0
|
||||
: n % 10 == 2 && n % 100 != 12 && n % 100 != 72 && n % 100 != 92
|
||||
? 1
|
||||
: (n % 10 == 3 || n % 10 == 4 || n % 10 == 9) &&
|
||||
n % 100 != 13 &&
|
||||
n % 100 != 14 &&
|
||||
n % 100 != 19 &&
|
||||
n % 100 != 73 &&
|
||||
n % 100 != 74 &&
|
||||
n % 100 != 79 &&
|
||||
n % 100 != 93 &&
|
||||
n % 100 != 94 &&
|
||||
n % 100 != 99
|
||||
? 2
|
||||
: n % 1000000 == 0 && n != 0
|
||||
? 3
|
||||
: 4,
|
||||
],
|
||||
// 17: Shuar
|
||||
[2, n => (n != 0 ? 1 : 0)],
|
||||
// 18: Welsh
|
||||
[
|
||||
6,
|
||||
n => (n == 0 ? 0 : n == 1 ? 1 : n == 2 ? 2 : n == 3 ? 3 : n == 6 ? 4 : 5),
|
||||
],
|
||||
// 19: Slavic languages (bs, hr, sr). Same as rule 7, but resulting in different CLDR categories
|
||||
[
|
||||
3,
|
||||
n =>
|
||||
n % 10 == 1 && n % 100 != 11
|
||||
? 0
|
||||
: n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20)
|
||||
? 1
|
||||
: 2,
|
||||
],
|
||||
];
|
||||
|
||||
/* eslint-enable no-nested-ternary */
|
||||
|
||||
export var PluralForm = {
|
||||
/**
|
||||
* Get the correct plural form of a word based on the number
|
||||
*
|
||||
* @param aNum
|
||||
* The number to decide which plural form to use
|
||||
* @param aWords
|
||||
* A semi-colon (;) separated string of words to pick the plural form
|
||||
* @return The appropriate plural form of the word
|
||||
*/
|
||||
get get() {
|
||||
// This method will lazily load to avoid perf when it is first needed and
|
||||
// creates getPluralForm function. The function it creates is based on the
|
||||
// value of pluralRule specified in the intl stringbundle.
|
||||
// See: http://developer.mozilla.org/en/docs/Localization_and_Plurals
|
||||
|
||||
// Delete the getters to be overwritten
|
||||
delete PluralForm.numForms;
|
||||
delete PluralForm.get;
|
||||
|
||||
// Make the plural form get function and set it as the default get
|
||||
[PluralForm.get, PluralForm.numForms] = PluralForm.makeGetter(
|
||||
PluralForm.ruleNum
|
||||
);
|
||||
return PluralForm.get;
|
||||
},
|
||||
|
||||
/**
|
||||
* Create a pair of plural form functions for the given plural rule number.
|
||||
*
|
||||
* @param aRuleNum
|
||||
* The plural rule number to create functions
|
||||
* @return A pair: [function that gets the right plural form,
|
||||
* function that returns the number of plural forms]
|
||||
*/
|
||||
makeGetter(aRuleNum) {
|
||||
// Default to "all plural" if the value is out of bounds or invalid
|
||||
if (aRuleNum < 0 || aRuleNum >= gFunctions.length || isNaN(aRuleNum)) {
|
||||
log(["Invalid rule number: ", aRuleNum, " -- defaulting to 0"]);
|
||||
aRuleNum = 0;
|
||||
}
|
||||
|
||||
// Get the desired pluralRule function
|
||||
let [numForms, pluralFunc] = gFunctions[aRuleNum];
|
||||
|
||||
// Return functions that give 1) the number of forms and 2) gets the right
|
||||
// plural form
|
||||
return [
|
||||
function (aNum, aWords) {
|
||||
// Figure out which index to use for the semi-colon separated words
|
||||
let index = pluralFunc(aNum ? Number(aNum) : 0);
|
||||
let words = aWords ? aWords.split(/;/) : [""];
|
||||
|
||||
// Explicitly check bounds to avoid strict warnings
|
||||
let ret = index < words.length ? words[index] : undefined;
|
||||
|
||||
// Check for array out of bounds or empty strings
|
||||
if (ret == undefined || ret == "") {
|
||||
// Report the caller to help figure out who is causing badness
|
||||
let caller = Components.stack.caller
|
||||
? Components.stack.caller.name
|
||||
: "top";
|
||||
|
||||
// Display a message in the error console
|
||||
log([
|
||||
"Index #",
|
||||
index,
|
||||
" of '",
|
||||
aWords,
|
||||
"' for value ",
|
||||
aNum,
|
||||
" is invalid -- plural rule #",
|
||||
aRuleNum,
|
||||
"; called by ",
|
||||
caller,
|
||||
]);
|
||||
|
||||
// Default to the first entry (which might be empty, but not undefined)
|
||||
ret = words[0];
|
||||
}
|
||||
|
||||
return ret;
|
||||
},
|
||||
() => numForms,
|
||||
];
|
||||
},
|
||||
|
||||
/**
|
||||
* Get the number of forms for the current plural rule
|
||||
*
|
||||
* @return The number of forms
|
||||
*/
|
||||
get numForms() {
|
||||
// We lazily load numForms, so trigger the init logic with get()
|
||||
PluralForm.get();
|
||||
return PluralForm.numForms;
|
||||
},
|
||||
|
||||
/**
|
||||
* Get the plural rule number from the intl stringbundle
|
||||
*
|
||||
* @return The plural rule number
|
||||
*/
|
||||
get ruleNum() {
|
||||
return Number(
|
||||
Services.strings
|
||||
.createBundle(kIntlProperties)
|
||||
.GetStringFromName("pluralRule")
|
||||
);
|
||||
},
|
||||
};
|
||||
|
||||
/**
|
||||
* Private helper function to log errors to the error console and command line
|
||||
*
|
||||
* @param aMsg
|
||||
* Error message to log or an array of strings to concat
|
||||
*/
|
||||
function log(aMsg) {
|
||||
let msg = "PluralForm.jsm: " + (aMsg.join ? aMsg.join("") : aMsg);
|
||||
Services.console.logStringMessage(msg);
|
||||
dump(msg + "\n");
|
||||
}
|
||||
|
|
@ -52,7 +52,6 @@ UNIFIED_SOURCES += [
|
|||
|
||||
EXTRA_JS_MODULES += [
|
||||
"LangPackMatcher.sys.mjs",
|
||||
"PluralForm.sys.mjs",
|
||||
]
|
||||
|
||||
XPCOM_MANIFESTS += [
|
||||
|
|
|
|||
|
|
@ -1,22 +0,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/. */
|
||||
|
||||
/**
|
||||
* This unit test makes sure that PluralForm.get can be called from strict mode
|
||||
*/
|
||||
|
||||
const { PluralForm } = ChromeUtils.importESModule(
|
||||
"resource://gre/modules/PluralForm.sys.mjs"
|
||||
);
|
||||
|
||||
delete PluralForm.numForms;
|
||||
delete PluralForm.get;
|
||||
[PluralForm.get, PluralForm.numForms] = PluralForm.makeGetter(9);
|
||||
|
||||
function run_test() {
|
||||
"use strict";
|
||||
|
||||
Assert.equal(3, PluralForm.numForms());
|
||||
Assert.equal("one", PluralForm.get(5, "one;many"));
|
||||
}
|
||||
|
|
@ -1,390 +0,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/. */
|
||||
|
||||
/**
|
||||
* Make sure each of the plural forms have the correct number of forms and
|
||||
* match up in functionality.
|
||||
*/
|
||||
|
||||
const { PluralForm } = ChromeUtils.importESModule(
|
||||
"resource://gre/modules/PluralForm.sys.mjs"
|
||||
);
|
||||
|
||||
function run_test() {
|
||||
let allExpect = [
|
||||
[
|
||||
// 0: Chinese 0-9, 10-19, ..., 90-99
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
// 100-109, 110-119, ..., 190-199
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
// 200-209, 210-219, ..., 290-299
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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, 3, 3, 3, 3, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 1, 2, 2, 2,
|
||||
3, 3, 3, 3, 3, 3, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 1, 2, 2, 2, 3, 3, 3, 3, 3,
|
||||
// 100-109, 110-119, ..., 190-199
|
||||
3, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 2, 2, 2,
|
||||
3, 3, 3, 3, 3, 3, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 1, 2, 2, 2, 3, 3, 3, 3, 3,
|
||||
3, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 1, 2, 2, 2,
|
||||
3, 3, 3, 3, 3, 3, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 1, 2, 2, 2, 3, 3, 3, 3, 3,
|
||||
// 200-209, 210-219, ..., 290-299
|
||||
3, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 2, 2, 2,
|
||||
3, 3, 3, 3, 3, 3, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 1, 2, 2, 2, 3, 3, 3, 3, 3,
|
||||
3, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 1, 2, 2, 2,
|
||||
3, 3, 3, 3, 3, 3, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 1, 2, 2, 2, 3, 3, 3, 3, 3,
|
||||
],
|
||||
];
|
||||
|
||||
for (let [rule, expect] of allExpect.entries()) {
|
||||
print("\nTesting rule #" + rule);
|
||||
|
||||
let [get, numForms] = PluralForm.makeGetter(rule);
|
||||
|
||||
// Make sure the largest value expected matches the number of plural forms
|
||||
let maxExpect = Math.max.apply(this, expect);
|
||||
Assert.equal(maxExpect, numForms());
|
||||
|
||||
// Make a string of numbers, e.g., 1;2;3;4;5
|
||||
let words = [];
|
||||
for (let i = 1; i <= maxExpect; i++) {
|
||||
words.push(i);
|
||||
}
|
||||
words = words.join(";");
|
||||
|
||||
// Make sure we get the expected number
|
||||
for (let [index, number] of expect.entries()) {
|
||||
print(
|
||||
[
|
||||
"Plural form of ",
|
||||
index,
|
||||
" should be ",
|
||||
number,
|
||||
" (",
|
||||
words,
|
||||
")",
|
||||
].join("")
|
||||
);
|
||||
Assert.equal(get(index, words), number);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,31 +0,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/. */
|
||||
|
||||
/**
|
||||
* This unit test makes sure the plural form for the default language (by
|
||||
* development), English, is working for the PluralForm javascript module.
|
||||
*/
|
||||
|
||||
const { PluralForm } = ChromeUtils.importESModule(
|
||||
"resource://gre/modules/PluralForm.sys.mjs"
|
||||
);
|
||||
|
||||
function run_test() {
|
||||
// English has 2 plural forms
|
||||
Assert.equal(2, PluralForm.numForms());
|
||||
|
||||
// Make sure for good inputs, things work as expected
|
||||
for (var num = 0; num <= 200; num++) {
|
||||
Assert.equal(
|
||||
num == 1 ? "word" : "words",
|
||||
PluralForm.get(num, "word;words")
|
||||
);
|
||||
}
|
||||
|
||||
// Not having enough plural forms defaults to the first form
|
||||
Assert.equal("word", PluralForm.get(2, "word"));
|
||||
|
||||
// Empty forms defaults to the first form
|
||||
Assert.equal("word", PluralForm.get(2, "word;"));
|
||||
}
|
||||
|
|
@ -1,38 +0,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/. */
|
||||
|
||||
/**
|
||||
* This unit test makes sure the plural form for Irish Gaeilge is working by
|
||||
* using the makeGetter method instead of using the default language (by
|
||||
* development), English.
|
||||
*/
|
||||
|
||||
const { PluralForm } = ChromeUtils.importESModule(
|
||||
"resource://gre/modules/PluralForm.sys.mjs"
|
||||
);
|
||||
|
||||
function run_test() {
|
||||
// Irish is plural rule #11
|
||||
let [get, numForms] = PluralForm.makeGetter(11);
|
||||
|
||||
// Irish has 5 plural forms
|
||||
Assert.equal(5, numForms());
|
||||
|
||||
// I don't really know Irish, so I'll stick in some dummy text
|
||||
let words = "is 1;is 2;is 3-6;is 7-10;everything else";
|
||||
|
||||
let test = function (text, low, high) {
|
||||
for (let num = low; num <= high; num++) {
|
||||
Assert.equal(text, get(num, words));
|
||||
}
|
||||
};
|
||||
|
||||
// Make sure for good inputs, things work as expected
|
||||
test("everything else", 0, 0);
|
||||
test("is 1", 1, 1);
|
||||
test("is 2", 2, 2);
|
||||
test("is 3-6", 3, 6);
|
||||
test("is 7-10", 7, 10);
|
||||
test("everything else", 11, 200);
|
||||
}
|
||||
|
|
@ -7,13 +7,9 @@ support-files =
|
|||
[test_bug22310.js]
|
||||
skip-if = toolkit != "windows" && toolkit != "cocoa"
|
||||
|
||||
[test_bug1086527.js]
|
||||
[test_intl_on_workers.js]
|
||||
skip-if = toolkit == "android" # bug 1309447
|
||||
[test_langPackMatcher.js]
|
||||
[test_pluralForm.js]
|
||||
[test_pluralForm_english.js]
|
||||
[test_pluralForm_makeGetter.js]
|
||||
|
||||
[test_osPreferences.js]
|
||||
skip-if = toolkit == "android" # bug 1344596
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ const JSMs = [
|
|||
"resource://gre/modules/LightweightThemeManager.jsm",
|
||||
"resource://gre/modules/NetUtil.jsm",
|
||||
"resource://gre/modules/PlacesUtils.jsm",
|
||||
"resource://gre/modules/PluralForm.jsm",
|
||||
"resource://gre/modules/PrivateBrowsingUtils.jsm",
|
||||
"resource://gre/modules/Timer.jsm",
|
||||
"resource://gre/modules/XPCOMUtils.jsm",
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@ const { AppConstants } = ChromeUtils.importESModule(
|
|||
ChromeUtils.defineESModuleGetters(this, {
|
||||
DownloadUtils: "resource://gre/modules/DownloadUtils.sys.mjs",
|
||||
PlacesDBUtils: "resource://gre/modules/PlacesDBUtils.sys.mjs",
|
||||
PluralForm: "resource://gre/modules/PluralForm.sys.mjs",
|
||||
ProcessType: "resource://gre/modules/ProcessType.sys.mjs",
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -713,7 +713,6 @@
|
|||
"resource://gre/modules/PlacesSyncUtils.jsm": "toolkit/components/places/PlacesSyncUtils.jsm",
|
||||
"resource://gre/modules/PlacesTransactions.jsm": "toolkit/components/places/PlacesTransactions.jsm",
|
||||
"resource://gre/modules/PlacesUtils.jsm": "toolkit/components/places/PlacesUtils.jsm",
|
||||
"resource://gre/modules/PluralForm.jsm": "intl/locale/PluralForm.jsm",
|
||||
"resource://gre/modules/PolicySearchEngine.jsm": "toolkit/components/search/PolicySearchEngine.jsm",
|
||||
"resource://gre/modules/PopupNotifications.jsm": "toolkit/modules/PopupNotifications.jsm",
|
||||
"resource://gre/modules/Preferences.jsm": "toolkit/modules/Preferences.jsm",
|
||||
|
|
|
|||
Loading…
Reference in a new issue