git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Is there any interest in localizing term delimiters in git messages?
@ 2023-10-17 21:09 Alexander Shopov
  2023-10-17 21:49 ` Junio C Hamano
  2023-10-21  9:30 ` Peter Krefting
  0 siblings, 2 replies; 12+ messages in thread
From: Alexander Shopov @ 2023-10-17 21:09 UTC (permalink / raw)
  To: Git List
  Cc: jmas, alexhenrie24, ralf.thielow, matthias.ruester,
	phillip.szelat, vyruss, christopher.diaz.riv, jn.avila, flashcode,
	bagasdotme, Ævar Arnfjörð Bjarmason,
	alessandro.menti, elongbug, cwryu, uneedsihyeon, arek_koz,
	dacs.git, insolor@gmail.com, peter, bitigchi, ark, kate,
	vnwildman@gmail.com, pclouds, dyroneteng@gmail.com,
	oldsharp@gmail.com, lilydjwg@gmail.com, me, Xin Jiang,
	pan93412@gmail.com, franklin@goodhorse.idv.tw, Junio C Hamano

Hello all,

Is there any interest in being able to change the delimiters of the
changeable terms in git messages?

Typical example:
ORIGINAL
msgid "  (use \"git rm --cached <file>...\" to unstage)"

TRANSLATION
msgstr ""
"  (използвайте „git rm --cached %s ФАЙЛ…“, за да извадите ФАЙЛа от индекса)"

The important part are the `<' and `>' delimiters of the term "file"

Instead of using them - I omit them and capitalize the term. As if `<'
and `>' are declared as localizable and then I translate them as `',
`'

This has the following benefits:
1. The translation gets shorter
2. We skip potentially dangerous shell characters (<> redirect IN/OUT)
3. Readability improves for some strings, ex:
- git pack-objects [<options>] <base-name> [< <ref-list> | < <object-list>]
- git mailinfo [<options>] <msg> <patch> < mail >info

On the other hand - this can increase the maintenance burden of
messages and tests and the shortening benefit is applicable to
languages using capitalization or some other form of letter changing
that preserves readability (I understand there are many languages with
lots of speakers that are not like that). They might decide to convey
`<' and `>' as `«', `»' to get benefits 2 and 3.

So I am asking - is there any interest from other localizers to have
such a feature? Would the additional maintenance be OK for the
developers?

It is possible that no one besides me is interested in this - in which
case I will rework the Bulgarian translation as:
- More and more messages containing only the term automatically add
the `<' and `>'
- I need to keep adding smudge rules to the git-po-helper tool
(https://github.com/git-l10n/git-po-helper).

Kind regards:
al_shopov

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-10-21  9:37 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-17 21:09 Is there any interest in localizing term delimiters in git messages? Alexander Shopov
2023-10-17 21:49 ` Junio C Hamano
2023-10-18  2:01   ` Jiang Xin
2023-10-18  2:47     ` Junio C Hamano
2023-10-18  3:08       ` [PATCH] commit: do not use cryptic "new_index" in end-user facing messages Junio C Hamano
2023-10-19  5:08       ` Is there any interest in localizing term delimiters in git messages? Jiang Xin
2023-10-19 17:52         ` Junio C Hamano
2023-10-19 18:07           ` Jeff Hostetler
2023-10-19 19:18             ` Junio C Hamano
2023-10-19 19:47           ` Torsten Bögershausen
2023-10-19 20:16             ` Junio C Hamano
2023-10-21  9:30 ` Peter Krefting

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).