<commit_before># Exporting to Firefox

Firefox Screenshots is developed in GitHub, but on each release we export into the Firefox
source tree.

Start the system addon release process by copying the following checklist into a new github bug, then work through the list:

- [ ] Bump the minor version number in package.json, following our [version numbering conventions](https://github.com/mozilla-services/screenshots/issues/2647)
- [ ] If exporting from a branch besides master, review differences in locales between the export: <br> `git diff --shortstat HEAD..master locales/` (`--shortstat` gives a summary, `--numstat` is more detailed, remove to see full diff)
- [ ] Update changelog: `./bin/generate-commit-log --write recent`
- [ ] Create tag: `git tag MAJOR.MINOR.0` – the version should be higher than the version currently in `package.json` (e.g., if the in-development version is 10.0.0, then tag 10.1.0)
- [ ] Push tag: `git push --tags`
- [ ] Merge master to `firefox-export` branch: `git checkout firefox-export && git merge master && git push`
- [ ] Create a Bugzilla release bug, [cloning bug 1403661](https://bugzilla.mozilla.org/enter_bug.cgi?format=__default__&product=Firefox&cloned_bug_id=1403661)
  - Use "Show Advanced Fields" and review CC list and dependencies
  - Ensure the bug is filed under the Cloud Services product, Screenshots component
  - Assign yourself to the bug
- [ ] Export Screenshots to a local copy of Gecko:
  - If you've never exported to Firefox before, do `make .venv` in the Screenshots repo
  - Make sure the mozilla-central branch is checked out in your local copy of Gecko, and make sure it is up to date
  - Export changes: `EXPORT_MC_LOCATION=path/to/gecko ./bin/export_mc.py --no-commit --no-switch-branch`
- [ ] In your copy of Gecko, double-check the diff, and commit the changes
  - Ensure your commit message follows the [Firefox bug conventions](https://mdn.io/Committing_Rules_and_Responsibilities), for example: "Bug 1362550 - Export Screenshots 6.6.0 to Firefox; r?kmag"
  - Choosing reviewers:
    - For all exports, r? a [Screenshots owner or peer](https://wiki.mozilla.org/Modules/All#Screenshots) (currently ianb or 6a68)
    - For translation-only changes, r? the [l10n driver for Firefox](https://wiki.mozilla.org/L10n:Mozilla_Team) (currently flod)
    - For changes to chrome-privileged code or security-sensitive content script code, r? a [Firefox peer](https://wiki.mozilla.org/Modules/All#Firefox) (suggested: kmag or mossop)
    - For changes to screenshots UI code not inside a content script, optionally r? a Firefox peer<commit_msg>Clarify l10n export process<commit_after># Exporting to Firefox

Firefox Screenshots is developed in GitHub, but on each release we export into the Firefox
source tree.

Start the system addon release process by copying the following checklist into a new github bug, then work through the list:

- [ ] Bump the minor version number in package.json, following our [version numbering conventions](https://github.com/mozilla-services/screenshots/issues/2647)
- [ ] If exporting from a branch besides master, review differences in locales between the export: <br> `git diff --shortstat HEAD..master locales/` (`--shortstat` gives a summary, `--numstat` is more detailed, remove to see full diff)
- [ ] Update changelog: `./bin/generate-commit-log --write recent`
- [ ] Create tag: `git tag MAJOR.MINOR.0` – the version should be higher than the version currently in `package.json` (e.g., if the in-development version is 10.0.0, then tag 10.1.0)
- [ ] Push tag: `git push --tags`
- [ ] Merge master to `firefox-export` branch: `git checkout firefox-export && git merge master && git push`
- [ ] Create a Bugzilla release bug, [cloning bug 1403661](https://bugzilla.mozilla.org/enter_bug.cgi?format=__default__&product=Firefox&cloned_bug_id=1403661)
  - Use "Show Advanced Fields" and review CC list and dependencies
  - Ensure the bug is filed under the Cloud Services product, Screenshots component
  - Assign yourself to the bug
- [ ] Export Screenshots to a local copy of Gecko:
  - If you've never exported to Firefox before, do `make .venv` in the Screenshots repo
  - Make sure the mozilla-central branch is checked out in your local copy of Gecko, and make sure it is up to date
  - Export changes: `EXPORT_MC_LOCATION=path/to/gecko ./bin/export_mc.py --no-commit --no-switch-branch`
- [ ] In your copy of Gecko, double-check the diff, and split the changes into two commits: one containing any translations and any translation-related changes to the `moz.build` file, and one containing non-translation code.
  - Ensure your commit messages follow the [Firefox bug conventions](https://mdn.io/Committing_Rules_and_Responsibilities), for example: 
    - `"Bug 1436218 - Export Screenshots 29.0.0 to Firefox (code excluding translations); r?ianb"`
    - `"Bug 1436218 - Export Screenshots 29.0.0 to Firefox (translations only); r?ianb"`
  - Choosing reviewers:
    - For all changes, r? a [Screenshots owner or peer](https://wiki.mozilla.org/Modules/All#Screenshots) (currently ianb or 6a68)
    - For translation-only changes, also r? the [l10n driver for Firefox](https://wiki.mozilla.org/L10n:Mozilla_Team) (currently flod)
    - For changes to chrome-privileged code or security-sensitive content script code, also r? a [Firefox peer](https://wiki.mozilla.org/Modules/All#Firefox) (suggested: kmag or mossop)
    - For changes to screenshots UI code not inside a content script, also r? a Firefox peer if the additional review seems warranted
{'fraction_non_alphanumeric': 0.09519524923519884, 'fraction_numerical': 0.01835522764081339, 'mean_word_length': 4.223684210526316, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3275618', 'n_tokens_mistral': 1780, 'n_tokens_neox': 1599, 'n_words': 669}