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

Re: [RFC/PATCH 2/5] glossary: introduce glossary lookup command

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 10, 2014, 22:50 UTC
Message-ID
<xmqqa92vf7ao.fsf@gitster.dls.corp.google.com>
In-Reply-To
<585191103e7bdd21ed422324504b6503bec2b914.1418052470.git.git@drmicha.warpmail.net>
Michael J Gruber <git@drmicha.warpmail.net> writes:
Show 18 quoted lines
> When using a localised git, there are many reasons why a correspondence
> between English and localised git terms is needed:
> - connect localised messages with English ones (porcelain vs. plumbing)
> - connect localised messages with English man pages or online docs
> - help out someone in a different locale
>
> Introduce a `git glossary' command that leverages the existing infrastructure
> in three possible ways:
> - `git glossary' lists all glossary terms along with their translation
> - `git glossary foo' matches `foo' in the glossary (both English and
>   localisation; partial matches shown)
> - `git glossary -a foo' matches `foo' in the git message catalogue
>   (English, exact match only).
>
> Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
> ---
> Some bike-shedding expected regarding the interface...
> Once I've learned how to test l10n stuff, this will be amended.
This is interesting.

I wondered if we want to also have the associated documentation in response to a query, but I am not sure how well that would go without having a translated glossary at least. I.e. pulling the original from glossary-content.txt would produce something like this:

	$ LANG=de git glossary -l blob object
        Blob-Objekten
	Untyped <<def_object,object>>, e.g. the contents of a file.
which is not ideal.

I noticed that you allow querying more than one term from the command line, so the above example would not work quite well, as we would end up querying "blob" and then "object", not a single term "blob object" which does have N_() translation in <glossary.h>.

Previous: Michael J GruberNext: Michael J Gruber
Message 4 of 11 in “git-glossary”
  1. 0/5 git-glossaryMichael J Gruber, Dec 8, 2014
  2. 1/5 glossary.h: generate a glossary list from the MakefileMichael J Gruber, Dec 8, 2014
  3. 2/5 glossary: introduce glossary lookup commandMichael J Gruber, Dec 8, 2014
  4. Junio C HamanoDec 10, 2014
  5. Michael J GruberDec 11, 2014
  6. Junio C HamanoDec 11, 2014
  7. 3/5 glossary: man pageMichael J Gruber, Dec 8, 2014
  8. 4/5 l10n: git-glossaryMichael J Gruber, Dec 8, 2014
  9. Michael J GruberDec 8, 2014
  10. Christian CouderDec 8, 2014
  11. Michael J GruberDec 8, 2014

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.