]> git.ipfire.org Git - thirdparty/git.git/commit - strbuf.h
l10n: localizable upload progress messages
authorDimitriy Ryazantcev <dimitriy.ryazantcev@gmail.com>
Tue, 2 Jul 2019 18:22:48 +0000 (21:22 +0300)
committerJunio C Hamano <gitster@pobox.com>
Tue, 2 Jul 2019 19:18:49 +0000 (12:18 -0700)
commit8f354a1faedba64daf5442c12cbc605441bb60b0
treec8ce80e82e5b1ba5529bf14a678a98f8a87fa2b6
parent8dca754b1e874719a732bc9ab7b0e14b21b1bc10
l10n: localizable upload progress messages

Currenly the data rate in throughput_string(...) method is
output by simple strbuf_humanise_bytes(...) call and '/s' append.
But for proper translation of such string the translator needs
full context.

Add strbuf_humanise_rate(...) method to properly print out
localizable version of data rate ('3.5 MiB/s' etc) with full context.

Strings with the units in strbuf_humanise_bytes(...) are marked
for translation.

Signed-off-by: Dimitriy Ryazantcev <dimitriy.ryazantcev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
progress.c
strbuf.c
strbuf.h