git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 1/1] Mark messages for translations

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Jan 15, 2018, 09:58 UTC
Message-ID
<CAPig+cTm=bNqncS63DmN6Qi7GGkXcPv-wnKfNe=btgSM9YTPYg@mail.gmail.com>
In-Reply-To
<20180115054419.4112-2-ash@kambanaria.org>
On Mon, Jan 15, 2018 at 12:44 AM, Alexander Shopov <ash@kambanaria.org> wrote:
> Reuse already translated messages if possible
> Do not translate messages aimed at developers of git
A couple comments beyond those from Hannes...
Show 6 quoted lines
> Signed-off-by: Alexander Shopov <ash@kambanaria.org>
> ---
> diff --git a/git.c b/git.c
> @@ -5,11 +5,11 @@
>  const char git_usage_string[] =
> +       N_("git [--version] [--help] [-C <path>] [-c name=value]\n"

Since you're touching this, perhaps take the opportunity to fix `-c name=value` to say `-c <name>=<value>`?

Show 12 quoted lines
> +          "           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]\n"
> +          "           [-p | --paginate | --no-pager] [--no-replace-objects] [--bare]\n"
> +          "           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]\n"
> +          "           <command> [<args>]");
> diff --git a/setup.c b/setup.c
> @@ -525,19 +525,19 @@ void read_gitfile_error_die(int error_code, const char *path, const char *dir)
>         case READ_GITFILE_ERR_NOT_A_REPO:
> -               die("Not a git repository: %s", dir);
> +               die(_("Not a git repository: %s"), dir);
>         default:
> -               die("BUG: unknown error code");
> +               die(_("BUG: unknown error code"));

This last one is aimed at developers (indeed, "BUG" message should never been seen by end-users). I'd leave it untranslated.

>         }
>  }
Previous: Johannes SixtNext: Duy Nguyen
Message 4 of 20 in “Marked end user messages for translation”
  1. 0/1 Marked end user messages for translationAlexander Shopov, Jan 15, 2018
  2. 1/1 Mark messages for translationsAlexander Shopov, Jan 15, 2018
  3. Johannes SixtJan 15, 2018
  4. Eric SunshineJan 15, 2018
  5. Duy NguyenJan 15, 2018
  6. 0/1 Mark messages for translationsAlexander Shopov, Feb 6, 2018
  7. 1/1 Mark messages for translationsAlexander Shopov, Feb 6, 2018
  8. Eric SunshineFeb 6, 2018
  9. Jeff KingFeb 6, 2018
  10. 0/1 Mark messages for translationsAlexander Shopov, Feb 9, 2018
  11. 1/1 Mark messages for translationsAlexander Shopov, Feb 9, 2018
  12. Junio C HamanoFeb 9, 2018
  13. Junio C HamanoFeb 9, 2018
  14. Jeff KingFeb 9, 2018
  15. t0002: simplify error checkingJeff King, Feb 10, 2018
  16. Alexander ShopovFeb 12, 2018
  17. Jeff KingFeb 12, 2018
  18. 0/1 Mark messages for translationAlexander Shopov, Feb 13, 2018
  19. 1/1 Mark messages for translationsAlexander Shopov, Feb 13, 2018
  20. Alexander ShopovJan 15, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.