Skip to content
Snippets Groups Projects
  1. Aug 01, 2017
    • Katsunori FUJIWARA's avatar
      i18n: make hggettext use original docstring to compute offset · 97ee669f1f6d
      Katsunori FUJIWARA authored
      Before this patch, hggettext uses __doc__ of each functions to compute
      offset of document text.
      
      But __doc__ of many functions is already modified by decorators in
      registrar (e.g. @templatekeyword adds ":NAME: " prefix to it), and
      hggettext can not find it out in original source.
      
      This causes many "unknown offset in ..." warning at "make update-pot",
      and leaving them might cause overlooking serious problems.
      
      This patch makes hggettext use original docstring, which decorators in
      registrar save into _origdoc, to compute offset.
      
      Even after this patch, there are still a few "unknown offset in ..."
      warning at "make update-pot" for specific reasons. These will be fixed
      later one by one.
      97ee669f1f6d
  2. Jun 15, 2017
  3. Aug 01, 2017
    • Katsunori FUJIWARA's avatar
      i18n: use actual filename, in which function is defined, for hg.pot · 16a175b3681e
      Katsunori FUJIWARA authored
      Before this patch, source filename for msgid in hg.pot file becomes
      incorrect, if a function is defined in file A, but detected in dict in
      file B,
      
      For example, almost all debug* commands are defined in
      debugcommands.py, but hggettext detects them in "table" of
      commands.py. Therefore, docstring fragments of debug* commands are
      marked as "defined in commands.py" in hg.pot file.
      
      This is serious problem for translation, because the cost to find out
      original location of texts increases very much.
      16a175b3681e
  4. Jun 29, 2017
  5. Jun 17, 2017
    • Matt Harbison's avatar
      i18n: drop a py25 conditional · a7310a477966
      Matt Harbison authored
      I'm not sure how to test this one.  `make update-pot` spews all kinds of
      warnings, though it did before this change too.
      a7310a477966
  6. Jun 02, 2017
  7. Jun 01, 2017
  8. May 31, 2017
  9. Apr 30, 2017
  10. Mar 02, 2017
  11. Mar 01, 2017
  12. Feb 10, 2017
    • Katsunori FUJIWARA's avatar
      i18n: update Report-Msgid-Bugs-To property of *.po files · 4acf569facef
      Katsunori FUJIWARA authored
      This patch replaces domain of mercurial-devel ML address by
      mercurial-scm.org for "Report-Msgid-Bugs-To" property of each *.po
      files.
      
      This avoids releasing 4.1.1 with invalid "Report-Msgid-Bugs-To"
      in *.mo file, if corresponded *.po file isn't msgmerge-ed with recent
      hg.pot by translator.
      
      These *.po files aren't covered by check-code.py pattern newly added
      in subsequent patch, because it ignores them.
      4acf569facef
  13. Feb 01, 2017
  14. Jan 04, 2017
  15. Dec 31, 2016
  16. Dec 01, 2016
  17. Nov 25, 2016
  18. Nov 28, 2016
  19. Nov 14, 2016
  20. Oct 17, 2016
  21. Oct 31, 2016
  22. Oct 23, 2016
  23. Oct 11, 2016
  24. Aug 31, 2016
  25. Jul 27, 2016
  26. Jul 31, 2016
  27. Jul 19, 2016
  28. Jul 03, 2016
  29. Jul 01, 2016
  30. May 12, 2016
  31. May 01, 2016
  32. Mar 01, 2016
  33. Feb 29, 2016
  34. Feb 11, 2016
    • Katsunori FUJIWARA's avatar
      i18n: calculate correct line number in source of messages to be translated · a1924bc6e267
      Katsunori FUJIWARA authored
      Before this patch, line number in source of the message to be
      translated is wrong in hg.pot, if corresponded message is placed after
      ".. DIRECTIVE::", because number of lines related to such directive
      isn't added to variable "delta", which holds number of untranslated
      lines in given text.
      
      This patch always adds "2" to "delta", because text block is split
      into translation units by "\n\n".
      a1924bc6e267
  35. Feb 03, 2016
  36. Feb 01, 2016
Loading