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
Feb 6, 2018, 07:32 UTC
Message-ID
<CAPig+cSOgNfz+cYdcvsbbaf74RB0QNnmqLs9Ld9xdmarMaqzEQ@mail.gmail.com>
In-Reply-To
<20180206061537.2573-2-ash@kambanaria.org>
On Tue, Feb 6, 2018 at 1:15 AM, Alexander Shopov <ash@kambanaria.org> wrote:
Show 14 quoted lines
> Small changes in messages to fit the style and typography of rest
> Reuse already translated messages if possible
> Do not translate messages aimed at developers of git
> Fix unit tests depending on the original string
>
> Signed-off-by: Alexander Shopov <ash@kambanaria.org>
> ---
> diff --git a/t/t0002-gitfile.sh b/t/t0002-gitfile.sh
> @@ -31,7 +31,7 @@ test_expect_success 'bad setup: invalid .git file format' '
>                 echo "git rev-parse accepted an invalid .git file"
>                 false
>         fi &&
> -       if ! grep "Invalid gitfile format" .err
> +       if ! grep "invalid gitfile format" .err

Since these strings can now be translated, you'll probably need to use 'test_i18ngrep' rather than 'grep'. (See test_i18ngrep in t/test-lib.sh.)

Show 23 quoted lines
>         then
>                 echo "git rev-parse returned wrong error"
>                 false
> @@ -45,7 +45,7 @@ test_expect_success 'bad setup: invalid .git file path' '
>                 echo "git rev-parse accepted an invalid .git file path"
>                 false
>         fi &&
> -       if ! grep "Not a git repository" .err
> +       if ! grep "not a git repository" .err
>         then
>                 echo "git rev-parse returned wrong error"
>                 false
> diff --git a/t/t0008-ignores.sh b/t/t0008-ignores.sh
> index d27f438bf..5743b482f 100755
> --- a/t/t0008-ignores.sh
> +++ b/t/t0008-ignores.sh
> @@ -307,7 +307,7 @@ test_expect_success_multi 'needs work tree' '' '
>                 cd .git &&
>                 test_check_ignore "foo" 128
>         ) &&
> -       stderr_contains "fatal: This operation must be run in a work tree"
> +       stderr_contains "fatal: this operation must be run in a work tree"
>  '
Previous: Alexander ShopovNext: Jeff King
Message 8 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.