Recent commits to derivepassphrase.git (b21782f3bb249f1feba8e8255fde2cdc61d59f02) https://git.schokokeks.org/derivepassphrase.git/tree/b21782f3bb249f1feba8e8255fde2cdc61d59f02 Recent commits feed provided by GitList. Ensure a better deterministic message order in the PO template Make the PO template message order deterministic: sort by message class (labels, debug messages, info messages, warning messages, error messages), then by lexicographically by context, then lexicographically by enum name. While the PO template was already deterministic in this regard, the new message order is also the desired source code order. https://git.schokokeks.org/derivepassphrase.git/commit/b21782f3bb249f1feba8e8255fde2cdc61d59f02 software@the13thletter.info (Marco Ricci) Tue, 11 Feb 2025 23:01:00 +0100 b21782f3bb249f1feba8e8255fde2cdc61d59f02 Fix more minor CLI messages or translators comments https://git.schokokeks.org/derivepassphrase.git/commit/c4811b79831a18fe0bcf2a2fcce3cad8cbf79580 software@the13thletter.info (Marco Ricci) Tue, 11 Feb 2025 21:03:34 +0100 c4811b79831a18fe0bcf2a2fcce3cad8cbf79580 Reclassify some explanations as one-line descriptions They were previously not treated as such because they had proper punctuation and capitalization. https://git.schokokeks.org/derivepassphrase.git/commit/a04b6b0d27b35fe2f6c7590d33b1a9a1dac44159 software@the13thletter.info (Marco Ricci) Tue, 11 Feb 2025 21:03:34 +0100 a04b6b0d27b35fe2f6c7590d33b1a9a1dac44159 Capitalize and punctuate one-line help texts properly Use proper sentence structure, punctuation and capitalization even for one-line help texts. https://git.schokokeks.org/derivepassphrase.git/commit/93a87904a617fb6b2aafd1d16d55f01dbf10fcd2 software@the13thletter.info (Marco Ricci) Tue, 11 Feb 2025 21:03:34 +0100 93a87904a617fb6b2aafd1d16d55f01dbf10fcd2 In the translators comments, link the metavars in use For every message using a metavar, mention the message ID of the metavar in the translators comments. https://git.schokokeks.org/derivepassphrase.git/commit/fbbc4fda2ff615af999db9b35d9a41b836db9216 software@the13thletter.info (Marco Ricci) Tue, 11 Feb 2025 21:03:34 +0100 fbbc4fda2ff615af999db9b35d9a41b836db9216 Remove "str" format specifier from CLI messages It adds nothing, and it makes some PO editing software mis-highlight the entries. https://git.schokokeks.org/derivepassphrase.git/commit/812e7d52226e031699dca595961935d2708cd567 software@the13thletter.info (Marco Ricci) Tue, 11 Feb 2025 21:03:34 +0100 812e7d52226e031699dca595961935d2708cd567 Merge topic branch 'pipx-and-release-data-files' into master * t/pipx-and-release-data-files: Automatically check and build the translations on master via hatch-gettext Fix multiple small issues with the CLI messages Allow forcing the branch name on the automatic quality control script Make the manpages installable under pipx https://git.schokokeks.org/derivepassphrase.git/commit/0082382cfcce300acfebd5f907b2a26476366c47 software@the13thletter.info (Marco Ricci) Tue, 11 Feb 2025 20:14:05 +0100 0082382cfcce300acfebd5f907b2a26476366c47 Merge topic branch 'fix-notes-test' into master * t/fix-notes-test: Fix faulty notes usage test https://git.schokokeks.org/derivepassphrase.git/commit/4e800e27ab5b23ab8867bd5d74fdde3243a78833 software@the13thletter.info (Marco Ricci) Tue, 11 Feb 2025 18:26:05 +0100 4e800e27ab5b23ab8867bd5d74fdde3243a78833 Fix faulty notes usage test The test only ever really acts on the whitespace-trimmed notes, so write it as such. https://git.schokokeks.org/derivepassphrase.git/commit/3f9422dcc3ef734b315fc2f46287d6e617c2646f software@the13thletter.info (Marco Ricci) Tue, 11 Feb 2025 18:18:41 +0100 3f9422dcc3ef734b315fc2f46287d6e617c2646f Automatically check and build the translations on master via hatch-gettext Include the configuration for `hatch-gettext` to automatically build the translations during build time, and include them in the wheel. Further support a quality control check that tests the PO template for reproducability. The PO template generator now supports passing a specific build timestamp, and realistically, the reproducability check needs this timestamp to be specified (via `SOURCE_DATE_EPOCH`). Actually *using* these translations directly from the installed wheel is not yet supported, because it is actually somewhat difficult to use the `gettext` MO-finding machinery here directly: `gettext.find` requires the directories it searches to be on-disk directories, whereas the wheel installer does not guarantee that installed packages are present as files on the system (instead of, say, as a ZIP archive). The sanest way forward seems to be reimplementing `gettext.find` with support for `importlib.metadata.as_file`, and then constructing `gettext.GNUTranslations` objects directly. This would also be the correct time to introduce a new enum for all these automatically calculated platform-specific special locale directories. (TODO.) https://git.schokokeks.org/derivepassphrase.git/commit/4b517365513d843948b8ead9f155b6590989f22f software@the13thletter.info (Marco Ricci) Tue, 11 Feb 2025 16:30:37 +0100 4b517365513d843948b8ead9f155b6590989f22f