• Re: Documentation for Package Maintainers regarding Translations (was:

    From Helge Kreutzmann@21:1/5 to All on Sat Mar 22 19:40:01 2025
    XPost: linux.debian.maint.i18n

    This is a MIME-formatted message. If you see this text it means that your E-mail software does not support MIME-formatted messages.

    Hello Marc,
    Am Wed, Mar 19, 2025 at 09:44:47AM +0100 schrieb Marc Haber:
    tl;dr: New Wiki Page https://wiki.debian.org/I18n/ForPackageMaintainers, please review

    I just did it. I usually updated it right away, but at one or two
    points it is more like a discussion. And due to my changes some
    redundancy is included, but I think this is more helpful during
    development, you can streamline it of course in the next step(s).

    If you have any questions on my changes it is probably best to discuss
    this on list. Please keep me (or -i18n) in CC, as I'm not subscribed
    to -devel.

    Thanks.

    Greetings

    Helge
    --
    Dr. Helge Kreutzmann debian@helgefjell.de
    Dipl.-Phys. http://www.helgefjell.de/debian.php
    64bit GNU powered gpg signed mail preferred
    Help keep free software "libre": http://www.ffii.de/

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEbZZfteMW0gNUynuwQbqlJmgq5nAFAmffAlQACgkQQbqlJmgq 5nCcNw/8DsTxALCE7UhUZie5fy/lJVy+veS1KD4SMvNqPSQqnqR23Ge67cXsMQBk HyFwde04wRfrXQiSE6vdHlRkrokKb4COkm9sgT3A7XIp4lkiJ6jANUwmNZJru2iV 2wP4f7z+Iu5pnnC0r/+8RJsMYHMfIDWbQh8WBm6CxDfb0JeD2h5HOwVBEdlzfpx1 B3dRtZbbVhEH++lgZNjb3TBjb5oyxtjhoFaE29ixnySdb6exOWssGnbdfpS8gWWl wLpO7LaL8jI3TzKct6s3csDfrnCDPxGdH1wKAcpQFjbIub24cwxi0M44cHKMbDpD L+gYkir3GfxK7XE3sPxlFfXiZuQEK+E4ZOtAv4oXJegcnRiz58iBC9eTLD70iY6C +GFT3HUy3Qv7YBV4a5OF/JpFNO8JLWuRIuNXd+DeZnW3pw9di3Yrh46AYH9j7QZh aUFvOUMadQ6fiiIWADMgmtnpTv+MXJTaB7lAd2fdZ8aXJBg4AZhfsZlYCnAa2wbK p0qcye9/ZxtszveYZrs8YfYnstcaulsiBSlcrK9bgnBUJ63TfvmHwtzf0TVTj8ud 8XHF2UK5Qc3wkl5hmpTGgzy9dy3nYaah4P4x6dU
  • From Marc Haber@21:1/5 to Helge Kreutzmann on Mon Mar 24 18:00:01 2025
    XPost: linux.debian.maint.i18n

    On Sat, Mar 22, 2025 at 06:32:54PM +0000, Helge Kreutzmann wrote:
    Am Wed, Mar 19, 2025 at 09:44:47AM +0100 schrieb Marc Haber:
    tl;dr: New Wiki Page https://wiki.debian.org/I18n/ForPackageMaintainers,
    please review

    I just did it. I usually updated it right away, but at one or two
    points it is more like a discussion. And due to my changes some
    redundancy is included, but I think this is more helpful during
    development, you can streamline it of course in the next step(s).

    I appreciate your help. Thank you very much.

    If you have any questions on my changes it is probably best to discuss
    this on list. Please keep me (or -i18n) in CC, as I'm not subscribed
    to -devel.

    I think the only matter that needs discussion is whether and when to
    commit updated PO files:

    Me:
    It is currently not clear how to make sure that a package maintainer
    does not forget these updates without creating lots of useless commits
    with new PO files that only differ in line number and date stamp
    comments.

    You:
    Using no line numbers reduced this problem. Updated time stamps are no
    worry for translators (they seldomly look at them). And they do not care
    for commits - they look at master or similar or on the web pages
    mentioned above and take what they find. So the most important part is
    to keep this current. If you need this for your VCS, you can add code in
    your build system to discard po(t) file updates which only change in the
    date stamp.

    My questions:
    "Using no line numbers" => invoke msgmerge with --no-location?
    "Web pages mentioned above" => I don't see web pages being mentioned.
    That needs a name or a link
    "Add code in your build system to discard po(t) that only change in the
    date stamp" => that would mak ethe source package and the tag in the VCS diverge. I don't like that at all.

    Greetings
    Marc


    -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Helge Kreutzmann@21:1/5 to All on Mon Mar 24 19:40:02 2025
    XPost: linux.debian.maint.i18n

    This is a MIME-formatted message. If you see this text it means that your E-mail software does not support MIME-formatted messages.

    Hello Marc,
    Am Mon, Mar 24, 2025 at 05:49:40PM +0100 schrieb Marc Haber:
    On Sat, Mar 22, 2025 at 06:32:54PM +0000, Helge Kreutzmann wrote:
    Am Wed, Mar 19, 2025 at 09:44:47AM +0100 schrieb Marc Haber:
    If you have any questions on my changes it is probably best to discuss
    this on list. Please keep me (or -i18n) in CC, as I'm not subscribed
    to -devel.

    I think the only matter that needs discussion is whether and when to commit updated PO files:

    Me:
    It is currently not clear how to make sure that a package maintainer does
    not forget these updates without creating lots of useless commits with new
    PO files that only differ in line number and date stamp comments.

    You:
    Using no line numbers reduced this problem. Updated time stamps are no worry for translators (they seldomly look at them). And they do not care for commits - they look at master or similar or on the web pages mentioned above and take what they find. So the most important part is to keep this current. If you need this for your VCS, you can add code in your build system to discard po(t) file updates which only change in the date stamp.

    My questions:
    "Using no line numbers" => invoke msgmerge with --no-location?

    Yes.

    "Web pages mentioned above" => I don't see web pages being mentioned. That needs a name or a link

    I meant the references to the Debian status pages, the link I inserted
    further above: https://www.debian.org/international/l10n/

    Please reword this to make it more clear.

    "Add code in your build system to discard po(t) that only change in the date stamp" => that would mak ethe source package and the tag in the VCS diverge. I don't like that at all.

    This I don't understand.

    At some stage you update the POT files. Then you run a (git) commit,
    to place the updated files in your repository.

    In manpages-l10n Tobias added code to detect, if only the time stamp
    changed. If so, the time stamp is reverted to the previous value, and
    a "git commit" is a noop. Then also the po files are left alone.

    This "only" saves you a commit in this corner case.

    It is not meant to diverge version, because in the end the po(t) files
    in your package should match the po(t) files in the repository.

    Greetings

    Helge

    --
    Dr. Helge Kreutzmann debian@helgefjell.de
    Dipl.-Phys. http://www.helgefjell.de/debian.php
    64bit GNU powered gpg signed mail preferred
    Help keep free software "libre": http://www.ffii.de/

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEbZZfteMW0gNUynuwQbqlJmgq5nAFAmfhpWkACgkQQbqlJmgq 5nBihBAAjbkSq4Q6RdtX2o2e/I92Jv+W3xK8tSMgj+qJTekPsmDJsGZYK1ArLNdr H243wgIg4WVbxCHaOlLb8HGtkJOrCCV5dbioMmFz4Rx6CPTeTloG427k3OzYvRea 18eC8Aar3BrsTBMq7Sq1t36g76trc8RJStJBmWarBeoDT93nt4MYj2pqT9dsuKYD nkiChxrZNi3FcKYa102OwtirHzh9lYXFSV4OG5NoIkSynf9Yv9EhCt61sEAsecdT INdcnpTcNNQgTLgG0b7BYGl2bkdv3gc8L9FSyjCLewyQ234O6i/lTRbjZavFLy0S W5KpKjSH+MWViAoI4aq2vu0W1GrBYrvU4UlQ8YZXMJPw2LcM9E+Y21gN0fCZZhDC 81m2GRjIay5xJY5cvRraqMRa4cn5Un1AGFsi68c+8fVoipicnQEmLBo3Gyo1pz0V ycEjCsJ2StcUxpjt20wJvwmXjpXOXblji5zrLRu+g2gyETS9w5MCKY0dsDkRrfHz RX8o3lJ4FnJM/aLz6gUcZb88jQZXznpCfFnvcnmdnSJLrGuYQHom+zH9OMpkYXGn /rSOSHUrcugLW0qaoDwDcuYz27ky+lZHiag5tDF
  • From Marc Haber@21:1/5 to Helge Kreutzmann on Tue Mar 25 15:30:01 2025
    XPost: linux.debian.maint.i18n

    On Mon, Mar 24, 2025 at 06:33:19PM +0000, Helge Kreutzmann wrote:
    Am Mon, Mar 24, 2025 at 05:49:40PM +0100 schrieb Marc Haber:
    "Using no line numbers" => invoke msgmerge with --no-location?

    Yes.

    "Web pages mentioned above" => I don't see web pages being mentioned. That >> needs a name or a link

    I meant the references to the Debian status pages, the link I inserted >further above: https://www.debian.org/international/l10n/

    Please reword this to make it more clear.

    Done.

    "Add code in your build system to discard po(t) that only change in the date >> stamp" => that would mak ethe source package and the tag in the VCS diverge. >> I don't like that at all.

    This I don't understand.

    At some stage you update the POT files. Then you run a (git) commit,
    to place the updated files in your repository.

    Yes, this should be a manual process, in my opinion.

    In manpages-l10n Tobias added code to detect, if only the time stamp
    changed. If so, the time stamp is reverted to the previous value, and
    a "git commit" is a noop. Then also the po files are left alone.

    That should be a feature of xgettext or the other tools that might write
    the POT files: Don't regenerate the file if the only change is the time
    stamp. Since xgettext is unlikely to change¹

    This "only" saves you a commit in this corner case.

    It is not meant to diverge version, because in the end the po(t) files
    in your package should match the po(t) files in the repository.

    The problem ist when POT and PO files are regenerated (and actually
    change) in package build when you're doing an out-of-tree build.

    For example, I have export-dir=../build-area set in my gbp.conf. When
    building a package, gbp copies the current working copy (or exports the requested branch) to a temporary directory under ../build-area/ and does
    the actual build from there. The temporary build directory is then
    discarded, leaving the current working copy unchanged. When the build
    process regenerates POT and PO files, those changes never find their way
    back into your working copy, making the source package and the VCS
    diverge.

    That's why I believe that any point in the package build is the wrong
    place to regenerate PO and POT files. Either that, or we need to
    strongly discourage doing out-of-tree builds.

    Greetings
    Marc

    ¹ I tried to put some of the ideas that this discussion brought into
    xgettext / msgmerge bugs and they got rejected upstream quite quickly. I
    will refrain from wasting my time in this regard in the future.


    -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)