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

Re: [PATCH 1/5] Internationalization of git-gui

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 21, 2007, 21:28 UTC
Message-ID
<7vabtpv43d.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<200707212150.49351.stimming@tuhh.de>
Christian Stimming <stimming@tuhh.de> writes:
Show 25 quoted lines
>> There are two HUGE problems with that.
>>
>>  * Supporting many languages means looooong lines in that file.
>>    Translators for languages later on the line would have hard
>>    time updating or looking at that file.
>>
>>  * Mixed encodings.  What if next language wants its strings in
>>    UTF-8?  How would you have that and ISO-8859 on a same line?
>>
>> I would suggest having one glossary file per language.
>
> Agreed. I propose to throw away the "add glossary" patch and I'll resubmit, 
> this time in a separate po/glossary/ directory, where each language will get 
> a po file for the glossary. 
>
> As I've written in another thread: In the glossary for the gnucash project [1] 
> we've actually added an extra 
> directory and encourage translators to add an extra po file for their 
> glossary translations. However, the glossary of gnucash has more than 150 
> terms and many of them require to be defined clearly as well, as translators 
> would otherwise be unable to translate them concisely. In git-gui, the 
> glossary is 25 terms so far and I think the git documentation already 
> contains enough definitions of all of them. Nevertheless, maybe it would make 
> a better structure if the translations of the glossary are kept in a separate 
> po file for each language. 

Actually, I would even suggest that we should NOT have a separate glossary file at all, if gettext suite allows what I outline below.

How about having it as a part of header comment in each of the xx.po file?

The division of labor I think would make sense for message l10n process goes like this:

 - The software developer (primarily Shawn): responsible for
   marking messages subject to i18n;
 - The i18n coordinator (could be Shawn but anybody else can
   volunteer; as things stand, I think Christian and Johannes
   are doing this): responsible for running "make
   po/git-gui.pot; make update-po" from time to time in order to
   keep po/*.po in sync with the vocabulary.
   initially, populate "glossary" part in po/git-gui.pot;
   as needed, add entries "glossary" part in po/git-gui.pot, and
   (if possible) add corresponding placeholders to po/*.po;
 - Translators (one for each language): responsible for updating
   po/xx.po file;
   initially, start by copying po/git-gui.pot to create
   po/xx.po;
   maintainance of "glossary" part of po/xx.po could also be
   made this person's responsibility instead of i18n
   coordinator's.

This way, the translators do not have to be so familiar with the gettext toolchain nor even have to have gettext installed.

     
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 34 of 48 in “Re: [PATCH] Internationalization of git-gui”
  1. Brett SchwarzJul 19, 2007
  2. Shawn O. PearceJul 20, 2007
  3. Christian StimmingJul 20, 2007
  4. Shawn O. PearceJul 21, 2007
  5. Christian StimmingJul 21, 2007
  6. Shawn O. PearceJul 21, 2007
  7. Christian StimmingJul 21, 2007
  8. Christian StimmingJul 21, 2007
  9. Christian StimmingJul 21, 2007
  10. Christian StimmingJul 21, 2007
  11. Christian StimmingJul 21, 2007
  12. David KastrupJul 21, 2007
  13. Simon 'corecode' SchubertJul 21, 2007
  14. David KastrupJul 21, 2007
  15. Christian StimmingJul 21, 2007
  16. Christian StimmingJul 21, 2007
  17. David KastrupJul 21, 2007
  18. Christian StimmingJul 22, 2007
  19. Edgar ToernigJul 22, 2007
  20. Christian StimmingJul 23, 2007
  21. David KastrupJul 21, 2007
  22. Shawn O. PearceJul 22, 2007
  23. Junio C HamanoJul 22, 2007
  24. Christian StimmingJul 22, 2007
  25. Johannes SchindelinJul 22, 2007
  26. Christian StimmingJul 22, 2007
  27. Johannes SchindelinJul 22, 2007
  28. Shawn O. PearceJul 22, 2007
  29. Christian StimmingJul 22, 2007
  30. Johannes SchindelinJul 21, 2007
  31. Junio C HamanoJul 21, 2007
  32. Christian StimmingJul 21, 2007
  33. Johannes SchindelinJul 21, 2007
  34. Junio C HamanoJul 21, 2007
  35. Johannes SchindelinJul 21, 2007
  36. Christian StimmingJul 22, 2007
  37. Johannes SchindelinJul 22, 2007
  38. Add glossary that can be converted into a po file for each language.Christian Stimming, Jul 23, 2007
  39. Junio C HamanoJul 24, 2007
  40. Junio C HamanoJul 24, 2007
  41. Christian StimmingJul 24, 2007
  42. Johannes SchindelinJul 21, 2007
  43. Junio C HamanoJul 21, 2007
  44. Johannes SchindelinJul 21, 2007
  45. Shawn O. PearceJul 22, 2007
  46. Christian StimmingJul 23, 2007
  47. Shawn O. PearceJul 24, 2007
  48. Christian StimmingJul 20, 2007

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.