From: Alexander Shopov <ash@kambanaria.org>
To: Git List <git@vger.kernel.org>
Cc: jmas@softcatala.org, alexhenrie24@gmail.com,
ralf.thielow@gmail.com, matthias.ruester@gmail.com,
phillip.szelat@gmail.com, vyruss@hellug.gr,
christopher.diaz.riv@gmail.com, jn.avila@free.fr,
flashcode@flashtux.org, bagasdotme@gmail.com,
"Ævar Arnfjörð Bjarmason" <avarab@gmail.com>,
alessandro.menti@alessandromenti.it, elongbug@gmail.com,
cwryu@debian.org, uneedsihyeon@gmail.com, arek_koz@o2.pl,
dacs.git@brilhante.top, "insolor@gmail.com" <insolor@gmail.com>,
peter@softwolves.pp.se, bitigchi@me.com, ark@cho.red,
kate@kgthreads.com, "vnwildman@gmail.com" <vnwildman@gmail.com>,
pclouds@gmail.com, "dyroneteng@gmail.com" <dyroneteng@gmail.com>,
"oldsharp@gmail.com" <oldsharp@gmail.com>,
"lilydjwg@gmail.com" <lilydjwg@gmail.com>,
me@angyi.io, "Xin Jiang" <worldhello.net@gmail.com>,
"pan93412@gmail.com" <pan93412@gmail.com>,
"franklin@goodhorse.idv.tw" <franklin@goodhorse.idv.tw>,
"Junio C Hamano" <gitster@pobox.com>
Subject: Is there any interest in localizing term delimiters in git messages?
Date: Tue, 17 Oct 2023 23:09:50 +0200 [thread overview]
Message-ID: <CAP6f5Mmi=f4DPcFwfvEiJMdKMa0BUyZ019mc8uFXyOufgD4NjA@mail.gmail.com> (raw)
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
next reply other threads:[~2023-10-17 21:10 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-17 21:09 Alexander Shopov [this message]
2023-10-17 21:49 ` Is there any interest in localizing term delimiters in git messages? 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAP6f5Mmi=f4DPcFwfvEiJMdKMa0BUyZ019mc8uFXyOufgD4NjA@mail.gmail.com' \
--to=ash@kambanaria.org \
--cc=alessandro.menti@alessandromenti.it \
--cc=alexhenrie24@gmail.com \
--cc=arek_koz@o2.pl \
--cc=ark@cho.red \
--cc=avarab@gmail.com \
--cc=bagasdotme@gmail.com \
--cc=bitigchi@me.com \
--cc=christopher.diaz.riv@gmail.com \
--cc=cwryu@debian.org \
--cc=dacs.git@brilhante.top \
--cc=dyroneteng@gmail.com \
--cc=elongbug@gmail.com \
--cc=flashcode@flashtux.org \
--cc=franklin@goodhorse.idv.tw \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=insolor@gmail.com \
--cc=jmas@softcatala.org \
--cc=jn.avila@free.fr \
--cc=kate@kgthreads.com \
--cc=lilydjwg@gmail.com \
--cc=matthias.ruester@gmail.com \
--cc=me@angyi.io \
--cc=oldsharp@gmail.com \
--cc=pan93412@gmail.com \
--cc=pclouds@gmail.com \
--cc=peter@softwolves.pp.se \
--cc=phillip.szelat@gmail.com \
--cc=ralf.thielow@gmail.com \
--cc=uneedsihyeon@gmail.com \
--cc=vnwildman@gmail.com \
--cc=vyruss@hellug.gr \
--cc=worldhello.net@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).