Skip to content

Instantly share code, notes, and snippets.

View flodolo's full-sized avatar

Francesco Lodolo flodolo

View GitHub Profile
@flodolo
flodolo / xliff_rewrite_original_paths.py
Created August 29, 2026 08:45
Firefox for iOS: rewrite original paths from `en.lproj` to `en-US.lproj`
#! /usr/bin/env python3
# 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/.
"""
rewrite_file_paths.py --path <folder> [--project <name>] [--output <file>]
This script parses all XLIFF files in the localized folders and rewrites the
@flodolo
flodolo / rewrite_xliff_original.py
Last active August 29, 2026 09:06
Rewrite XLIFF original
from django.db import transaction
from pontoon.base.models import Entity, Project, Resource, Section
XLIFF = [Resource.Format.XLIFF, Resource.Format.XCODE]
project = Project.objects.get(slug="firefox-for-ios")
resources = list(project.resources.filter(obsolete=False, format__in=XLIFF).order_by("path"))
print(f"{len(resources)} XLIFF/XCODE resources, sync_disabled={project.sync_disabled}")
for res in resources:
print(f"{res.path} [{res.format}]")

Firefox l10n review — Spanish (Spain) (es-ES) — fix verification pass

Date 2026-08-15
Locale tree ~/mozilla/git/firefox-l10n/es-ES @ c5344d0b97f4
Baseline reviewed previously 94f2f3919a6d (see original report ~/Desktop/Claude_qa_l10n/firefox-es-ES-l10n-review.md, not modified by this pass)
en-US reference ~/mozilla/git/firefox-quarantine @ ea20567cf0d3
Scope Re-run automated health checks on current es-ES; verify the three fix commits applied since the original review; flag any new issues introduced by those fixes
@flodolo
flodolo / relay-unused-fluent-strings.md
Created August 12, 2026 15:26
Relay Unused Strings

Firefox Relay — Fluent string audit (privaterelay/locales/en)

Date: 2026-08-12

Summary

  • 910 messages/terms defined across the 14 .ftl files in privaterelay/locales/en/.
  • 43 are genuinely unused.
  • 29 initially flagged ids are actually used via dynamically built ids and must be kept.
@flodolo
flodolo / firefox-fy-NL-l10n-review.md
Created August 11, 2026 06:35
Frisian (fy-NL) automated QA checks

Firefox l10n review — Frisian (fy-NL)

Date 2026-08-11
Locale tree ~/mozilla/git/firefox-l10n/fy-NL
Repo commit d2359b083300db1993ce76d9e8fc214d4066d271 (2026-08-11)
en-US reference ~/mozilla/git/firefox-quarantine @ 8ca943f87f5e4d73a517cc1a1b0fa4acc82fdb5c
Scope 242 .ftl files — browser, toolkit, devtools, dom, security, netwerk, mobile
@flodolo
flodolo / firefox-nl-l10n-review.md
Created August 10, 2026 06:39
Automated QA for Dutch localization of Firefox

Firefox l10n QA review — Dutch (nl)

Date: 2026-08-10 Locale tree: ~/mozilla/git/firefox-l10n/nl @ 8f96d6666f29 (branch main) en-US reference: ~/mozilla/git/firefox-quarantine @ 6f2a830d9 Scope: 242 .ftl files — Firefox desktop + shared toolkit, dom, netwerk, security, devtools, mobile Method: automated health checks (moz.l10n parser, l10n-lint, hunspell against the locale's own nl.dic) followed by a per-directory qualitative review against en-US, using the en-US developer comments as context.

All findings are keyed by Fluent string ID, never by line number.

@flodolo
flodolo / firefox-ru-l10n-review.md
Created August 7, 2026 08:56
[ru] Firefox Localization automated QA

Firefox ru localization review

  • Date: 2026-08-07
  • Locale tree: ~/mozilla/git/firefox-l10n/ru — commit 223ff88505af5dc583cb70b23bfb9e8abfe79447
  • en-US reference: ~/mozilla/git/firefox-quarantine
  • Scope: 241 .ftl + 113 .properties files (Firefox desktop + shared dom/toolkit/devtools/netwerk/security strings)
  • Method: automated health checks (moz.l10n parser, hunspell with the repo's own ru dictionary, bidirectional Latin/Cyrillic homoglyph scan, cross-file consistency grouping) followed by per-directory qualitative review against en-US, using the developer comments as context. Every finding below was verified against the en-US source.

All findings are keyed by string ID, never by line number. Problems that exist only in the en-US developer comments are not reported.

@flodolo
flodolo / firefox-pt-BR-l10n-review.md
Created August 7, 2026 08:03
pt-BR Firefox localization automated QA

Firefox pt-BR localization review

  • Date: 2026-08-07
  • Locale tree: ~/mozilla/git/firefox-l10n/pt-BR — commit 223ff88505af5dc583cb70b23bfb9e8abfe79447
  • en-US reference: ~/mozilla/git/firefox-quarantine
  • Scope: 241 .ftl + 113 .properties files (Firefox desktop + shared dom/toolkit/devtools/netwerk/security strings)
  • Method: automated health checks (moz.l10n parser, hunspell with the repo's own pt-BR dictionary, cross-file consistency grouping) followed by per-directory qualitative review against en-US, using the developer comments as context. Every finding below was verified against the en-US source.

All findings are keyed by string ID, never by line number.

@flodolo
flodolo / firefox-pl-l10n-review.md
Created August 6, 2026 06:07
Polish Firefox localization QA (via LLM)

Firefox Polish (pl) localization review

Date 2026-08-06
Locale tree ~/mozilla/git/firefox-l10n/pl @ c700cb6b7d0f0837cab4566a7e298b5ab7de6511
en-US reference ~/mozilla/git/firefox-quarantine @ 7a5fe5860e3d227bb7e55d00772339a25f12af49
Method moz.l10n parser checks (syntax, variables, selectors, accesskeys, markup parity, plural categories, typography), hunspell with the in-repo pl dictionary, cross-file consistency grouping by en-US source string, plus per-directory manual review against en-US and its developer comments

Findings are keyed by Fluent string ID, never by line number. Completeness/sync status is out of scope and not reported.

@flodolo
flodolo / firefox-tr-l10n-review.md
Created July 30, 2026 16:45
Turkish QA LLM test

Firefox Turkish (tr) — localization QA review

  • Date: 2026-07-30
  • Locale tree: ~/mozilla/git/firefox-l10n/tr @ commit b44618a6c48bcce20863f425fdd20e441dad9741
  • en-US reference: ~/mozilla/git/firefox-quarantine @ commit 80731a59444a4beee5113950b54f9dab5276afe5
  • Scope: 240 .ftl files, ~13,850 translated patterns
  • Method: runbook ~/Desktop/firefox-l10n-review-runbook.md — Phase 1 automated (moz.l10n parser checks + hunspell against the locale's own tr.dic), Phase 2 eight parallel per-directory reviewers against en-US with developer comments.

All findings are keyed by string ID, never by line number.