]> git.ipfire.org Git - thirdparty/git.git/commit - transport-helper.c
Update messages in preparation for i18n
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sat, 21 Jul 2018 07:49:19 +0000 (09:49 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Jul 2018 18:19:09 +0000 (11:19 -0700)
commit1a07e59c3e269418f3f5d186d166bf5ab5db6667
treeaf7144a561d023b0d095c6c5463d00fe05248be6
parente3331758f12da22f4103eec7efe1b5304a9be5e9
Update messages in preparation for i18n

Many messages will be marked for translation in the following
commits. This commit updates some of them to be more consistent and
reduce diff noise in those commits. Changes are

- keep the first letter of die(), error() and warning() in lowercase
- no full stop in die(), error() or warning() if it's single sentence
  messages
- indentation
- some messages are turned to BUG(), or prefixed with "BUG:" and will
  not be marked for i18n
- some messages are improved to give more information
- some messages are broken down by sentence to be i18n friendly
  (on the same token, combine multiple warning() into one big string)
- the trailing \n is converted to printf_ln if possible, or deleted
  if not redundant
- errno_errno() is used instead of explicit strerror()

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
30 files changed:
archive-zip.c
builtin/blame.c
builtin/checkout.c
builtin/commit.c
builtin/config.c
builtin/fast-export.c
builtin/fmt-merge-msg.c
builtin/grep.c
builtin/log.c
builtin/merge.c
builtin/pack-objects.c
builtin/replace.c
builtin/rm.c
config.c
connect.c
convert.c
diff.c
dir.c
pkt-line.c
reflog-walk.c
refs.c
refspec.c
sequencer.c
sha1-file.c
t/t1400-update-ref.sh
t/t3005-ls-files-relative.sh
t/t5801-remote-helpers.sh
t/t7063-status-untracked-cache.sh
transport-helper.c
transport.c