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

[PATCH] fetch-pack: add TRANSLATORS notice for packfile ready messages

From
Bagas Sanjaya <bagasdotme@gmail.com>
Date
Nov 14, 2021, 07:31 UTC
Message-ID
<20211114073143.84004-1-bagasdotme@gmail.com>

Two messages mention "... to be sent after 'ready'". The 'ready' string, however, is actually in part of packet stream, which shouldn't be translated. Because of lack of any notices, l10n teams treat it as ordinary string, which results to inconsistency across teams. That is, in `po/es.po` the string is translated:

``` msgid "expected packfile to be sent after 'ready'" msgstr "se esperaba que el packfile fuera enviado luego del 'listo'"

msgid "expected no other sections to be sent after no 'ready'" msgstr "se esperaba que ninguna otra sección fuera enviada luego del 'listo'" ```

whereas in `po/fr.po` and `po/de.po`, the string isn't translated:

``` msgid "expected packfile to be sent after 'ready'" msgstr "fichier paquet attendu à envoyer après 'ready'"

msgid "expected no other sections to be sent after no 'ready'" msgstr "aucune autre section attendue à envoyer après absence de 'ready'" ```

``` msgid "expected packfile to be sent after 'ready'" msgstr "Erwartete Versand einer Packdatei nach 'ready'."

msgid "expected no other sections to be sent after no 'ready'" msgstr "Erwartete keinen Versand einer anderen Sektion ohne 'ready'." ```

To avoid confusions, add TRANSLATORS notice.
Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
---
 fetch-pack.c | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/fetch-pack.c b/fetch-pack.c
index a9604f35a3..0cda8fc518 100644
--- a/fetch-pack.c
+++ b/fetch-pack.c
@@ -1410,8 +1410,12 @@ static int process_ack(struct fetch_negotiator *negotiator,
 	 * otherwise.
 	 */
 	if (*received_ready && reader->status != PACKET_READ_DELIM)
+		/* TRANSLATORS: 'ready' string is in part of packet stream.
+		   Leave it as is. */
 		die(_("expected packfile to be sent after 'ready'"));
 	if (!*received_ready && reader->status != PACKET_READ_FLUSH)
+		/* TRANSLATORS: 'ready' string is in part of packet stream.
+		   Leave it as is. */
 		die(_("expected no other sections to be sent after no 'ready'"));
 
 	return 0;

base-commit: 6c220937e2b26d85920bf2d38ff2464a0d57fd6b
-- 
An old man doll... just what I always wanted! - Clara
Next: Ævar Arnfjörð Bjarmason
Message 1 of 4 in “fetch-pack: add TRANSLATORS notice for packfile ready messages”
  1. fetch-pack: add TRANSLATORS notice for packfile ready messagesBagas Sanjaya, Nov 14, 2021
  2. Ævar Arnfjörð BjarmasonNov 14, 2021
  3. Bagas SanjayaNov 15, 2021
  4. Ævar Arnfjörð BjarmasonNov 15, 2021

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.