Skip to content

Commit

Permalink
Bug 1757407 - Re-run mach vendor rust; r=platform-i18n-reviewers,greg…
Browse files Browse the repository at this point in the history
…tatum

Differential Revision: https://phabricator.services.mozilla.com/D139855
  • Loading branch information
dminor committed Mar 25, 2022
1 parent 6553d6b commit f4825ff
Show file tree
Hide file tree
Showing 898 changed files with 116,020 additions and 15,856 deletions.
5 changes: 0 additions & 5 deletions .cargo/config.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ git = "https://github.com/mozilla/midir.git"
replace-with = "vendored-sources"
rev = "4c11f0ffb5d6a10de4aff40a7b81218b33b94e6f"

[source."https://github.com/mozilla/l10nregistry-rs.git"]
git = "https://github.com/mozilla/l10nregistry-rs.git"
replace-with = "vendored-sources"
rev = "9da98c6e5325a5f2997191727eaa82c0ebc2004c"

[source."https://github.com/mozilla/cubeb-pulse-rs"]
git = "https://github.com/mozilla/cubeb-pulse-rs"
replace-with = "vendored-sources"
Expand Down
86 changes: 85 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions third_party/rust/fluent-testing/.cargo-checksum.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"files":{"Cargo.toml":"537afbc798bd20fa2b7f6dc7f16f2168e2ef64993300556150b8f03c3df90d9c","LICENSE-APACHE":"5db2b182453ff32ed40f7da63589c9667a3f8bd8b16b1471b152caae56f77e45","LICENSE-MIT":"49c0b000c03731d9e3970dc059ad4ca345d773681f4a612b0024435b663e0220","README.md":"37ffa79d679cb1c85bdaa72b498625ba2ec2fd6cb5d7ee37138fcbcfd495d83d","resources/README.md":"71c732e8871072cfafb2121b16258d60fff8292c928b264c4fa9ae9e07bb4045","resources/browser/en-US/branding/brand.ftl":"dd9004ed4b9d87bf3fa17aa9aba1f0088257c73ec52590e00b4ad117013c22be","resources/browser/en-US/browser/aboutDialog.ftl":"67b5a5afe1c26f5aefd0b484348f127e203eaf9999152194d465625920e3ea06","resources/browser/en-US/browser/allTabsMenu.ftl":"1e6cb95ec697c0c0d4c4bdc1bb3d4c4831e38f7438cece0ea5f569266b2f750f","resources/browser/en-US/browser/appmenu.ftl":"1db7f5195c0a4168feae3ee577bbc9c74e99e92f271f61966b323299e2dd404b","resources/browser/en-US/browser/branding/brandings.ftl":"51c33061b83d078cf44f1774520ec4166ff147523ba42299a5708b68e5b1291c","resources/browser/en-US/browser/branding/sync-brand.ftl":"9ce5a0bd81a1eb4c082c5790c4b9e57ebd332463bcac8ba6c8d1b5d9c2df535e","resources/browser/en-US/browser/browser.ftl":"fb208e9f73ee69a1c577aa61eeabe7accfb6925cc082195c2f59d4ce777de9fa","resources/browser/en-US/browser/browserContext.ftl":"d3683b6ee55ab14878fffad065fd18e3c742a188fe5faf2a1b43707af79e247e","resources/browser/en-US/browser/browserSets.ftl":"abcd2b8e5b56c1dafe482d805c561aa624f5477e4469b086a56ed3727e978e17","resources/browser/en-US/browser/downloads.ftl":"e0f92ec12805864b5fea60dc28f086f2a92fe20ddc3281220a878ec5eef48b49","resources/browser/en-US/browser/menubar.ftl":"0717aded2bd4ac646de19dc8849925c868db5856e62b6fc8bdde3375c1bb1fa8","resources/browser/en-US/browser/places.ftl":"570761a59fd7cdab524010c11238b65b28f012e27c8b2379764ec0d86b71f010","resources/browser/en-US/browser/preferences/addEngine.ftl":"f99756f4fbf02af4e1f6defdd956afe710eafc95ad5ba873ef6500c3a01e861b","resources/browser/en-US/browser/preferences/blocklists.ftl":"7786a7d9fbdb49f71c2eac1bf40faaeee2ded9052c37cd8cf23a6a3f6b66744f","resources/browser/en-US/browser/preferences/clearSiteData.ftl":"81886a547285a1d2638b292342a775710ded804d114d2ee0733a9e785de60b64","resources/browser/en-US/browser/preferences/colors.ftl":"64bb27c95a5c4c3b29e35f2a35a15a99039e40705e174288f4dcaacb8054cf16","resources/browser/en-US/browser/preferences/connection.ftl":"0d090b71a09307073f11a6a5a98d1e1856e71bc285877463c53170cc1463d684","resources/browser/en-US/browser/preferences/fonts.ftl":"6899fb6cc7fd3d71f79af8413d3f49a4a7e0fda48e8847ca0b85a3a6fd07a669","resources/browser/en-US/browser/preferences/languages.ftl":"6a4d593d0178c7fe9af5b89abbe7bc0131f67b95bbd84002699f3701463a8c0a","resources/browser/en-US/browser/preferences/permissions.ftl":"b7123c46d4009d2d4f0cf9557e0324b6c3904cc327501d4fa367186e8637aa8d","resources/browser/en-US/browser/preferences/preferences.ftl":"0c67e8aa7de2ca47466a03f7ebcfdf189145d42f7c13fcc9ab4ba5f4351477f1","resources/browser/en-US/browser/preferences/selectBookmark.ftl":"edeada75825e932f44ddfe5261feae5b05c33c423530c06202c000698f701125","resources/browser/en-US/browser/preferences/siteDataSettings.ftl":"1bf8e41445c31fab1104defee087206341ecd90dd8912390e962c0b4a9fdaebc","resources/browser/en-US/browser/protectionsPanel.ftl":"9016d41a0773abcdbc4290e5a9ac5d88d71daacddfc247e643d912c030d3abfb","resources/browser/en-US/browser/sanitize.ftl":"2008c7fac2f10fcf265f5a69ffe433ec8aff48a7484fadf6cc8c2b672a2ac474","resources/browser/en-US/browser/sidebarMenu.ftl":"ff6e1bacb3fc9a46fdaac2adcdabb6d742006a6d8aa89210dcc2ba2030daceaf","resources/browser/en-US/preview/interventions.ftl":"9612d7b8d714b465df51e8ad2b4b02e6437071cd0cf1ef1339482daab7fb8307","resources/browser/pl/branding/brand.ftl":"ddf6c8480e77b53054bf7da620e9d8992dd99f766e67e6dbf7e5a6c4fb621ccc","resources/browser/pl/browser/aboutDialog.ftl":"f1ad814eb262960554770a39ac23f6d532cb153500a66624267236a0b3f92180","resources/browser/pl/browser/allTabsMenu.ftl":"fc9dbafae900bb9ec927473a07a2cbfc375b86b19c5f1c3d6193e45f3f46ea49","resources/browser/pl/browser/appmenu.ftl":"3e0d288bb82e38b57bc4010a5e1228ec64a913e1793271cec9bdbf8cddab05b6","resources/browser/pl/browser/branding/brandings.ftl":"222db172c889501db52dcf4cbb737bda272ca9891e90fd3029908a04c07fdde1","resources/browser/pl/browser/branding/sync-brand.ftl":"0deebfc761c784669e6054218f23b5ce1f2034a459d8e82931897356ff0bbfd7","resources/browser/pl/browser/browser.ftl":"46d941b1c3e15e168908e410f9f5efa9670ebe2d6369d04255f7c761c631e80d","resources/browser/pl/browser/browserContext.ftl":"a04211fd75d4237f675169024460ad8146d56a6291ad56d79fdc83f2d491a265","resources/browser/pl/browser/browserSets.ftl":"75351a196bee013fd01ce464edd412356b925e831c0e266ad056079f063aaf02","resources/browser/pl/browser/downloads.ftl":"9081edcb1eadde065ebb0016011db02e4bc0cbf7af06de702b5d391316268add","resources/browser/pl/browser/menubar.ftl":"af5512ae87a84ea76fde339d2b5efed3d2c0944af367c0cf4d880a80670fe27f","resources/browser/pl/browser/places.ftl":"a1daad73f00ee0b0ce4f436a4461c582433e368f8699d2a0923cdc721325d2ab","resources/browser/pl/browser/preferences/addEngine.ftl":"4508c0a9c125e7d46900e286b941163c628a594b6975dd18954848905e7f7c6f","resources/browser/pl/browser/preferences/blocklists.ftl":"eab3e95c754e84287d6544a98771635dc5521a090fc6f4e1ea08e94e6c8ee7f2","resources/browser/pl/browser/preferences/clearSiteData.ftl":"270620a5ce4fded5312b4b1fb82598bd487bf1d46fb4e7ce7154186d4a7813ea","resources/browser/pl/browser/preferences/colors.ftl":"215439ee9997d281a287ef47f4c5184fe9ab07619bc95dab9ccbe1bf3ff2825a","resources/browser/pl/browser/preferences/connection.ftl":"d58c098f70ceab1716cf98062a4576c006d21f903c6e761c6b1d3e4905705972","resources/browser/pl/browser/preferences/fonts.ftl":"b6d349feb79f32504831404702f59326d8e303623711d57ec0abc4a408f058c8","resources/browser/pl/browser/preferences/languages.ftl":"ecfc28954c83ba5d2753419036538ebcb83368ab68bf81eeea6ae4499f151de2","resources/browser/pl/browser/preferences/permissions.ftl":"9734f53f85b592cbab56189f988030b102a673e67dc9a8ac702bfccf81f26f39","resources/browser/pl/browser/preferences/preferences.ftl":"581f8382376d80e288090582579210bbc3b2bef3647e4777fb2fd062837d5470","resources/browser/pl/browser/preferences/selectBookmark.ftl":"c7bc41c76f3fc8942068c89cee90e446b4449822adf24b9b9d73b5f930e4e6bb","resources/browser/pl/browser/preferences/siteDataSettings.ftl":"ab2c439013646f4e853ea13f150c21ca9e6a8b6de25b82db7d85be58f6498de9","resources/browser/pl/browser/protectionsPanel.ftl":"71553e4186449b181dd1367f4a397f7cbae26e51db23548cc39110aca72fa56a","resources/browser/pl/browser/sanitize.ftl":"48e27c98f2f76c10eaa5d0da66b63dbd98f21de061adcb06ab319e66f19c843a","resources/browser/pl/browser/sidebarMenu.ftl":"010e5cdb60f72b4315c2e3b219571fc709532ffd21c408f7acadcae8fb796590","resources/empty-resource/en-US/empty/empty-all.ftl":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","resources/empty-resource/en-US/empty/empty-one.ftl":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","resources/empty-resource/pl/empty/empty-all.ftl":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","resources/empty-resource/pl/empty/empty-one.ftl":"45aaecaab59a333402073fee827ced56da5bdf7ccfc46c3e04be78c31005c55b","resources/missing-resource/pl/missing/missing-one.ftl":"5317be25f302f5a6e6b10cdf7fa5c49ce86d53f9501721d840ac582fd0842745","resources/toolkit/en-US/security/certificates/certManager.ftl":"174aa482e8f268a437de07628d42fb101af1a95dfef83fe933bd2cfb2306006c","resources/toolkit/en-US/security/certificates/deviceManager.ftl":"2dcd12266884ca9ff4b21f9d05fe83168b2b7cf1967195975d494c2512d9d385","resources/toolkit/en-US/toolkit/featuregates/features.ftl":"8b709748e4d6b4d66965d2881623ed3af193ba4a42b480337d09cc1c6883c335","resources/toolkit/en-US/toolkit/global/textActions.ftl":"1400a4d5d150d26b0b42360da5bfa59eb0a4957e51b21994ecaff65cebb830f9","resources/toolkit/en-US/toolkit/printing/printUI.ftl":"5477add8001a7cbb239a5602b11b56222b329b91764b5eea8d5cb01bd7fee6a9","resources/toolkit/en-US/toolkit/updates/history.ftl":"deb0e178779ab50460d741c7f7e1bc3507e90a98839d12682cd7ae7524e24730","resources/toolkit/pl/security/certificates/certManager.ftl":"a455c4807e68b03c4219110d1f2b6d6ae6162d8c1602b7255f612ab7ff76f7b9","resources/toolkit/pl/security/certificates/deviceManager.ftl":"5d39a2bfb74488ae9d5c19a837bcf693d645ef5df734af2207ba9b33fba7db15","resources/toolkit/pl/toolkit/featuregates/features.ftl":"cf61454864a91cfc96ba9c973d793d4c191d591f2de480a1ee8ed3c1a4c5bedb","resources/toolkit/pl/toolkit/global/textActions.ftl":"26f41ac34bd568fb92a08b1f9b1a3efb7f632bab4f128682875f58530e6868ea","resources/toolkit/pl/toolkit/printing/printUI.ftl":"b6414d5309cb616920377fbd2e1f7472f49a7107b649117f9af00d5d30bf8e3f","resources/toolkit/pl/toolkit/updates/history.ftl":"050983c0dfdc0ba7d7a5cc9b8c5dcc4d4f1dbcc671b16280fbf51158d7a495e9","src/fs.rs":"abd60ce5b792e8e082d7162359fe4ea9c1c566e051d9574f1ab50bac975667b0","src/lib.rs":"c227c853318e671954236dff017cb000dea583e07cb916814a7abdb0ce3d973a","src/scenarios/browser.rs":"c85718c78a4e73e03ec17944dff656cc30923f5ce2ea930504f2107c5272a054","src/scenarios/empty_resource_all_locales.rs":"1cf30de067c8727f78960e47522f31fdf5b4d0f0f45edf7aeb75e315e2149b73","src/scenarios/empty_resource_one_locale.rs":"0234989d252c14569798cda87b0322c5116a1c1383c662136d463291eeecebf1","src/scenarios/missing_optional_all_locales.rs":"c7a41d3a7832b56b4e7b4a11bc65ced27aa47670a54f089697e605c64b70dfc5","src/scenarios/missing_optional_one_locale.rs":"67a3ba9d1574918e71411a296e10c981444122a088fc3f3ff3de8710d3dcaa78","src/scenarios/missing_required_all_locales.rs":"0fceae5ae21290a29871589bdf7fef7792d87618b1565ebc2ee89e621abc51b9","src/scenarios/missing_required_one_locale.rs":"41353c3ef07c29601385250bc1daec0289749d2691398bf3459a03eafe70e737","src/scenarios/mod.rs":"072b026683841f653fb7637393cecd86e1a7ce2557ad07083c4aed994a79d0d1","src/scenarios/preferences.rs":"79430165be0ded10b00c010017177325fc2dd816d11b7a7aa750a654c0773505","src/scenarios/simple.rs":"b696519ceabc49e8f26997961056d77afc51e7b84ac6759688e181c3d1ecc8ca","src/scenarios/structs.rs":"a443dd97b5f5b81cc9b8f85ab24da2c1f919bd6ce9dcaf189722022f1f182ef7"},"package":"e4597df830d853d8a319c9cba05bc62d59288b613f1f445638444e05e4041fdf"}
39 changes: 39 additions & 0 deletions third_party/rust/fluent-testing/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2018"
name = "fluent-testing"
version = "0.0.2"
authors = ["Zibi Braniecki <[email protected]>", "Erik Nordin <[email protected]>"]
include = ["src/**/*", "resources/**/*", "Cargo.toml", "README.md", "LICENSE-APACHE", "LICENSE-MIT"]
description = "A collection of mock scenarios for testing fluent-rs components.\n"
homepage = "http://www.projectfluent.org"
readme = "README.md"
keywords = ["localization", "l10n", "i18n", "intl", "internationalization"]
categories = ["localization", "internationalization"]
license = "Apache-2.0/MIT"
repository = "https://github.com/projectfluent/fluent-rs"
[dependencies.fluent-bundle]
version = "0.15.2"

[dependencies.fluent-fallback]
version = "0.6.0"

[dependencies.tokio]
version = "1.0"
features = ["fs", "rt-multi-thread", "macros", "io-util"]
optional = true

[features]
async = ["tokio"]
default = ["sync"]
sync = []
File renamed without changes.
74 changes: 74 additions & 0 deletions third_party/rust/fluent-testing/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# Fluent

`fluent-testing` is a collection of mock scenarios for testing fluent-rs components.

Project Fluent keeps simple things simple and makes complex things possible.
The syntax used for describing translations is easy to read and understand. At
the same time it allows, when necessary, to represent complex concepts from
natural languages like gender, plurals, conjugations, and others.

[Documentation][]

[Project Fluent]: http://projectfluent.org
[Documentation]: https://docs.rs/fluent/

Status
------

The implementation is in its early stages and supports only some of the Project
Fluent's spec. Consult the [list of milestones][] for more information about
release planning and scope.

[list of milestones]: https://github.com/projectfluent/fluent-rs/milestones


Local Development
-----------------

cargo build
cargo test
cargo run --example simple-fallback

When submitting a PR please use [`cargo fmt`][] (nightly).

[`cargo fmt`]: https://github.com/rust-lang-nursery/rustfmt


Learn the FTL syntax
--------------------

FTL is a localization file format used for describing translation resources.
FTL stands for _Fluent Translation List_.

FTL is designed to be simple to read, but at the same time allows to represent
complex concepts from natural languages like gender, plurals, conjugations, and
others.

hello-user = Hello, { $username }!

[Read the Fluent Syntax Guide][] in order to learn more about the syntax. If
you're a tool author you may be interested in the formal [EBNF grammar][].

[Read the Fluent Syntax Guide]: http://projectfluent.org/fluent/guide/
[EBNF grammar]: https://github.com/projectfluent/fluent/tree/master/spec


Get Involved
------------

`fluent-rs` is open-source, licensed under the Apache License, Version 2.0. We
encourage everyone to take a look at our code and we'll listen to your
feedback.


Discuss
-------

We'd love to hear your thoughts on Project Fluent! Whether you're a localizer
looking for a better way to express yourself in your language, or a developer
trying to make your app localizable and multilingual, or a hacker looking for
a project to contribute to, please do get in touch on the mailing list and the
IRC channel.

- Discourse: https://discourse.mozilla.org/c/fluent
- IRC channel: [irc://irc.mozilla.org/l20n](irc://irc.mozilla.org/l20n)
8 changes: 8 additions & 0 deletions third_party/rust/fluent-testing/resources/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
This is a capture of the state of Firefox localizations from December 28 2020.

It contains `en-US` locale which is complete, and `pl` locale which contains some missing
entries.

An example missing message is in file `toolkit/updates/history.ftl` and has id `history-intro`.

An example of a missing file is `browser/preview/interventions.ftl`.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# # 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/.

## Firefox and Mozilla Brand
##
## Firefox and Mozilla must be treated as a brand.
##
## They cannot be:
## - Transliterated.
## - Translated.
##
## Declension should be avoided where possible, leaving the original
## brand unaltered in prominent UI positions.
##
## For further details, consult:
## https://mozilla-l10n.github.io/styleguides/mozilla_general/#brands-copyright-and-trademark

-brand-shorter-name = Nightly
-brand-short-name = Nightly
-brand-full-name = Nightly
# This brand name can be used in messages where the product name needs to
# remain unchanged across different versions (Nightly, Beta, etc.).
-brand-product-name = Firefox
-vendor-short-name = Mozilla
trademarkInfo = { " " }
Loading

0 comments on commit f4825ff

Please sign in to comment.