doc: Update translation generation instructions #31930

pull pablomartin4btc wants to merge 1 commits into bitcoin:master from pablomartin4btc:doc-translation-generation-followup-31731 changing 1 files +1 −1
  1. pablomartin4btc commented at 6:53 pm on February 21, 2025: member

    This is a follow-up of #31731.

    Technically this change fixes the preset configuration execution failure as it needs multiprocess to be enabled, so we disable it using -DWITH_MULTIPROCESS=OFF.

    This code will need to be updated by removing -DWITH_MULTIPROCESS=OFF in #31741.

  2. DrahtBot commented at 6:53 pm on February 21, 2025: contributor

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    Code Coverage & Benchmarks

    For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/31930.

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK ryanofsky

    If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

  3. DrahtBot added the label Docs on Feb 21, 2025
  4. fanquake requested review from hebasto on Feb 25, 2025
  5. ryanofsky commented at 1:45 pm on February 26, 2025: contributor

    Reviewing ba3bb09a12d77b467aec8833e316ee4b5e45ee75

    IMO, it would be simpler and more consistent to just update instructions like:

    0-cmake --preset dev-mode -DWITH_USDT=OFF
    1+cmake --preset dev-mode -DWITH_USDT=OFF -DWITH_MULTIPROCESS=OFF
    

    It is true that files in src/ipc/ may contained translated _() strings in the future, but I don’t think they do right now. In the longer term, the suggestion to use depends should not be needed, because #31741 should allow easily building src/ipc/ code without depends. #31741 also removes the WITH_MULTIPROCESS option and replaces it with an ENABLE_IPC option, and #31802 replaces depends MULTIPROCESS option with a NO_MULTIPROCESS options, so these instructions will need to be updated in the future anyway, and I think it would be best to keep them simple and not involve the depends system if not needed.

  6. pablomartin4btc force-pushed on Feb 26, 2025
  7. pablomartin4btc commented at 5:22 pm on February 26, 2025: member

    Updates:

    • Addressed @ryanofsky’s feedback and updated the code with his suggestion (Thanks for the review!).
  8. doc: Update translation generation instructions
    This is a follow-up of #31731.
    
    Technically this change fixes the preset configuration
    execution failure as it needs multiprocess to be enabled,
    so we disable it using -DWITH_MULTIPROCESS=OFF.
    
    This code will need to be updated in PRs #31741 and #31802.
    75d5d235a6
  9. pablomartin4btc force-pushed on Feb 26, 2025
  10. ryanofsky commented at 7:22 pm on February 26, 2025: contributor
    Code review ACK 75d5d235a6b5eb6b960be0c5e6e181460a1ac5e6. Looks good as a temporary fix and I think after #31741 we should be able to drop the extra argument.
  11. ryanofsky approved
  12. pablomartin4btc commented at 10:12 pm on February 26, 2025: member

    I think after #31741 we should be able to drop the extra argument.

    I thought we’d need to replace it by -DENABLE_IPC=OFF (as it will be ON in CMakePresets.json) and I was getting errors of missing config files (CapnProtoConfig.cmake & capnproto-config.cmake) when I run the instructions in #31741, but the problem was that I needed to install the Cap’n Proto for multiprocess (as in the documentation), so your statement is correct, I’m updating this PR’s description accordingly. Thanks!

  13. fanquake merged this on Feb 27, 2025
  14. fanquake closed this on Feb 27, 2025


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2025-03-31 09:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me