From patchwork Sun Oct 28 06:51:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Duy Nguyen X-Patchwork-Id: 10658491 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BFC6E174F for ; Sun, 28 Oct 2018 06:52:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AE5752980B for ; Sun, 28 Oct 2018 06:52:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A29E52A06D; Sun, 28 Oct 2018 06:52:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3CB972A0A7 for ; Sun, 28 Oct 2018 06:52:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727842AbeJ1Pf4 (ORCPT ); Sun, 28 Oct 2018 11:35:56 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:36492 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727809AbeJ1Pf4 (ORCPT ); Sun, 28 Oct 2018 11:35:56 -0400 Received: by mail-lf1-f65.google.com with SMTP id h192so3748226lfg.3 for ; Sat, 27 Oct 2018 23:52:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DiUkPgJkFW162qMzjcoH+DG1Fjj6dK6Xd3a/lHF4m1E=; b=ZyjxP6WpDMZD5ZjV5VrPsbcBqd3wYP4iTo8ccRSmb4O3LyWmFNs5hEud6MPK8CldbF TlOliRRNfhQbLklISu5k6qESktsGjYXflR76DCGyHKldg4LHGYV5janWs75jLaYbOM/B kPpsHYQTHRumT6HPZWuXOuude5QRnaU5M6htQXgpGcfQuYXgvnuneQ31ZN87bbdOlnvF 5pohXwCHx1MPHr4a2hnAb3NKR3vkSKFr1FhLT7AMu3tIwunAlyHwvh0PyNRkeN6ep0DK DPT9BeMl8l9Dr1qz/mgfCYcReOx1A+DDWiMcmsSOVMKg+pTRy5tBLirStuV2X/G9yx+h ErxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DiUkPgJkFW162qMzjcoH+DG1Fjj6dK6Xd3a/lHF4m1E=; b=Ll+u62L/CP6gV9zmCbF7Uyspmcb29P95STvqkVaJe018rF9OXMmJhg7kF5tHMuuwga mSDqaY2Qvgqigay6eYd5xP3qEcRRHpzbrMyP+XV3SGWGaf62JaLh4YwhfEWKeAim3xys Q2QFyMq2tX2pQujtT+thLNHn9nKZUGWiz3XDediOqLvGfeukxAoiFVAh5o+0Q+IZD6L8 veskN5z/wxmrXGXrzNtG9WXmseYGO0RSatahBps9Xp6KPBVZ3zhWXtJ0kSR9zJ10swBB uYpP97Oje3kyCJg3Tkc43ZsB2h9dEn6FxZv+MBPJyB4zW5fk/EzxUUugm5TnYK3z1ev6 LEpw== X-Gm-Message-State: AGRZ1gKjrqqGahtL15SZ11Cckz0cA5cBa3medPS+SAdiQj+LfLozSf2q z2krg8pFIursOHdqbg37/5vcvbjt X-Google-Smtp-Source: AJdET5eGTjS7rwXhP+exk+de5ViYWgkIJ+vZ7BbCF93NGGHoT+YnKIAilR2869MODxIOZWs8S858hQ== X-Received: by 2002:ac2:4257:: with SMTP id m23-v6mr5572064lfl.6.1540709531951; Sat, 27 Oct 2018 23:52:11 -0700 (PDT) Received: from localhost.localdomain (c80-216-12-205.bredband.comhem.se. [80.216.12.205]) by smtp.gmail.com with ESMTPSA id v23-v6sm148847ljd.70.2018.10.27.23.52.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 27 Oct 2018 23:52:11 -0700 (PDT) From: =?utf-8?b?Tmd1eeG7hW4gVGjDoWkgTmfhu41jIER1eQ==?= To: git@vger.kernel.org Cc: =?utf-8?b?Tmd1eeG7hW4gVGjDoWkgTmfhu41jIER1eQ==?= Subject: [PATCH 09/12] repack: mark more strings for translation Date: Sun, 28 Oct 2018 07:51:54 +0100 Message-Id: <20181028065157.26727-10-pclouds@gmail.com> X-Mailer: git-send-email 2.19.1.647.g708186aaf9 In-Reply-To: <20181028065157.26727-1-pclouds@gmail.com> References: <20181028065157.26727-1-pclouds@gmail.com> MIME-Version: 1.0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Nguyễn Thái Ngọc Duy --- builtin/repack.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/builtin/repack.c b/builtin/repack.c index c6a7943d5c..0af20fa0fc 100644 --- a/builtin/repack.c +++ b/builtin/repack.c @@ -197,7 +197,7 @@ static int write_oid(const struct object_id *oid, struct packed_git *pack, if (cmd->in == -1) { if (start_command(cmd)) - die("Could not start pack-objects to repack promisor objects"); + die(_("could not start pack-objects to repack promisor objects")); } xwrite(cmd->in, oid_to_hex(oid), GIT_SHA1_HEXSZ); @@ -236,7 +236,7 @@ static void repack_promisor_objects(const struct pack_objects_args *args, char *promisor_name; int fd; if (line.len != 40) - die("repack: Expecting 40 character sha1 lines only from pack-objects."); + die(_("repack: Expecting 40 character sha1 lines only from pack-objects.")); string_list_append(names, line.buf); /* @@ -247,13 +247,13 @@ static void repack_promisor_objects(const struct pack_objects_args *args, line.buf); fd = open(promisor_name, O_CREAT|O_EXCL|O_WRONLY, 0600); if (fd < 0) - die_errno("unable to create '%s'", promisor_name); + die_errno(("unable to create '%s'"), promisor_name); close(fd); free(promisor_name); } fclose(out); if (finish_command(&cmd)) - die("Could not finish pack-objects to repack promisor objects"); + die(_("could not finish pack-objects to repack promisor objects")); } #define ALL_INTO_ONE 1 @@ -408,7 +408,7 @@ int cmd_repack(int argc, const char **argv, const char *prefix) out = xfdopen(cmd.out, "r"); while (strbuf_getline_lf(&line, out) != EOF) { if (line.len != 40) - die("repack: Expecting 40 character sha1 lines only from pack-objects."); + die(_("repack: Expecting 40 character sha1 lines only from pack-objects")); string_list_append(&names, line.buf); } fclose(out); @@ -417,7 +417,7 @@ int cmd_repack(int argc, const char **argv, const char *prefix) return ret; if (!names.nr && !po_args.quiet) - printf("Nothing new to pack.\n"); + printf_ln(_("Nothing new to pack.")); /* * Ok we have prepared all new packfiles. @@ -477,13 +477,13 @@ int cmd_repack(int argc, const char **argv, const char *prefix) if (rollback_failure.nr) { int i; fprintf(stderr, - "WARNING: Some packs in use have been renamed by\n" - "WARNING: prefixing old- to their name, in order to\n" - "WARNING: replace them with the new version of the\n" - "WARNING: file. But the operation failed, and the\n" - "WARNING: attempt to rename them back to their\n" - "WARNING: original names also failed.\n" - "WARNING: Please rename them in %s manually:\n", packdir); + _("WARNING: Some packs in use have been renamed by\n" + "WARNING: prefixing old- to their name, in order to\n" + "WARNING: replace them with the new version of the\n" + "WARNING: file. But the operation failed, and the\n" + "WARNING: attempt to rename them back to their\n" + "WARNING: original names also failed.\n" + "WARNING: Please rename them in %s manually:\n"), packdir); for (i = 0; i < rollback_failure.nr; i++) fprintf(stderr, "WARNING: old-%s -> %s\n", rollback_failure.items[i].string,