Re: [PATCH v5 4/5] pack-bitmap.c: retrieve missing i18n translations
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Jun 28, 2022, 17:28 UTC
- Message-ID
- <CAPig+cR9XL3dRuRrH9kCrqUqu5HwAJstgkp9eTJVBZ0TBZ+Wjw@mail.gmail.com>
- In-Reply-To
- <220628.86sfnpf96x.gmgdl@evledraar.gmail.com>
On Tue, Jun 28, 2022 at 5:13 AM Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:
> On Tue, Jun 28 2022, Teng Long wrote:
> > if (bitmap_equals(result, tdata.base))
> > - fprintf(stderr, "OK!\n");
> > + fprintf(stderr, _("OK!\n"));As a minor additional bit of help, you can use fprintf_ln() from strbuf.h which will automatically output the trailing "\n":
frpintf_ln(stderr, _("OK!"));(Aside: Use of fprintf() here is a bit odd since there are no formatting directives in the argument, thus fputs() would have been a better choice, but that's a cleanup for another day and a different patch series, probably.)