git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v3 1/5] l10n: add .gitattributes to simplify location filtering

From
Jiang Xin <worldhello.net@gmail.com>
Date
Mar 16, 2026, 05:44 UTC
Message-ID
<CANYiYbH2o15x0=pZHuPk0Hf0qDNFWsvOpYE65O+yBMFspKBevw@mail.gmail.com>
In-Reply-To
<xmqqzf49rs2g.fsf@gitster.g>
On Mon, Mar 16, 2026 at 12:11 AM Junio C Hamano <gitster@pobox.com> wrote:
Show 39 quoted lines
>
> Johannes Sixt <j6t@kdbg.org> writes:
>
> >> +# Languages that strip both filenames and line numbers
> >> +bg.po       filter=gettext-no-file-no-location
> >> +de.po       filter=gettext-no-file-no-location
> >> +#es.po      filter=gettext-no-file-no-location
> >> +fr.po       filter=gettext-no-file-no-location
> >> +#ga.po      filter=gettext-no-file-no-location
> >> +#ru.po      filter=gettext-no-file-no-location
> >> +sv.po       filter=gettext-no-file-no-location
> >> +tr.po       filter=gettext-no-file-no-location
> >> +uk.po       filter=gettext-no-file-no-location
> >> +vi.po       filter=gettext-no-file-no-location
> >> +
> >> +# Languages that preserve filenames but strip line numbers
> >> +#ca.po      filter=gettext-no-location
> >> +id.po       filter=gettext-no-location
> >> +zh_CN.po    filter=gettext-no-location
> >> +zh_TW.po    filter=gettext-no-location
> >
> > How settled is the use of these two different filters (and names) in the
> > community of translators? I am asking because I'm about to align the
> > translation workflow in the Gitk repository with that in the Git
> > repository. I need to know which of the two variants of filter names I
> > should ask translators to use.
>
> I too am curious.
>
> I would imagine that the translation target langugae has nothing to
> do with the choice, and it would be mere personal preference---in
> which case it would be better if people can converge on a single
> convention fast and stick to it.  After all, even if the current
> French translators happen to prefer no-file no-location, for
> example, existing translators would graduate the project and new
> ones would come in, and their preference would change over time.
>
> At least comments like "Languages that strip" is misleading, if this
> is just "personal preferences of l10n groups of various languages".
Will fix as below:

-------- >8 -------- # Default: Strip the whole location comments for all .po files *.po filter=gettext-no-location

# Legacy, unmaintained PO files: filter disabled to avoid index vs # working-tree mismatch (these files still have location comments). el.po -filter is.po -filter it.po -filter ko.po -filter pl.po -filter pt_PT.po -filter

# These files use gettext-no-line-number (keep filenames, strip line # numbers). The choice is per l10n team preference. Requires gettext 0.20+. # The only benefit is locating source files from location comments when # the .po file is not updated from the POT via make po-update. ca.po filter=gettext-no-line-number id.po filter=gettext-no-line-number zh_CN.po filter=gettext-no-line-number zh_TW.po filter=gettext-no-line-number

Previous: Junio C HamanoNext: Jiang Xin
Message 29 of 45 in “[RFC] Introducing AI Agents to Git Localization”
  1. Jiang XinFeb 4, 2026
  2. Peter KreftingFeb 4, 2026
  3. Michal SuchánekFeb 4, 2026
  4. 依云Feb 4, 2026
  5. Jiang XinFeb 5, 2026
  6. Michal SuchánekFeb 5, 2026
  7. Jiang XinFeb 5, 2026
  8. Michal SuchánekFeb 5, 2026
  9. Jiang XinFeb 5, 2026
  10. brian m. carlsonFeb 5, 2026
  11. 1/2 l10n: add .gitattributes to simplify location filteringJiang Xin, Feb 5, 2026
  12. Junio C HamanoFeb 5, 2026
  13. 2/2 l10n: README: document AI assistant guidelinesJiang Xin, Feb 5, 2026
  14. Junio C HamanoFeb 5, 2026
  15. Jiang XinFeb 6, 2026
  16. 0/5 docs(l10n): AI agent instructions and workflow improvementsJiang Xin, Mar 3, 2026
  17. 1/5 l10n: add .gitattributes to simplify location filteringJiang Xin, Mar 3, 2026
  18. 2/5 docs(l10n): add AGENTS.md with optimized update-pot instructionsJiang Xin, Mar 3, 2026
  19. Jiang XinMar 12, 2026
  20. 3/5 docs(l10n): add AI agent instructions for updating po/XX.po filesJiang Xin, Mar 3, 2026
  21. 4/5 docs(l10n): add AI agent instructions for translating PO filesJiang Xin, Mar 3, 2026
  22. Jiang XinMar 12, 2026
  23. 5/5 docs(l10n): add AI agent instructions to review translationsJiang Xin, Mar 3, 2026
  24. Jiang XinMar 12, 2026
  25. 0/5 docs(l10n): AI agent instructions and workflow improvementsJiang Xin, Mar 14, 2026
  26. 1/5 l10n: add .gitattributes to simplify location filteringJiang Xin, Mar 14, 2026
  27. Johannes SixtMar 15, 2026
  28. Junio C HamanoMar 15, 2026
  29. Jiang XinMar 16, 2026
  30. Jiang XinMar 16, 2026
  31. Johannes SixtMar 16, 2026
  32. 2/5 docs(l10n): add AGENTS.md with optimized update-pot instructionsJiang Xin, Mar 14, 2026
  33. 3/5 docs(l10n): add AI agent instructions for updating po/XX.po filesJiang Xin, Mar 14, 2026
  34. 4/5 docs(l10n): add AI agent instructions for translating PO filesJiang Xin, Mar 14, 2026
  35. 5/5 docs(l10n): add AI agent instructions to review translationsJiang Xin, Mar 14, 2026
  36. 0/5 docs(l10n): AI agent instructions and workflow improvementsJiang Xin, Mar 16, 2026
  37. 1/5 l10n: add .gitattributes to simplify location filteringJiang Xin, Mar 16, 2026
  38. 2/5 docs(l10n): add AGENTS.md with optimized update-pot instructionsJiang Xin, Mar 16, 2026
  39. 3/5 docs(l10n): add AI agent instructions for updating po/XX.po filesJiang Xin, Mar 16, 2026
  40. 4/5 docs(l10n): add AI agent instructions for translating PO filesJiang Xin, Mar 16, 2026
  41. 5/5 docs(l10n): add AI agent instructions to review translationsJiang Xin, Mar 16, 2026
  42. Jiang XinMar 31, 2026
  43. Junio C HamanoMar 31, 2026
  44. Jiang XinMar 31, 2026
  45. Jiang XinFeb 5, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.