Skip to content

Conversation

@jgarzik
Copy link
Contributor

@jgarzik jgarzik commented Dec 12, 2025

Merge of #403

@jgarzik jgarzik requested a review from Copilot December 12, 2025 00:55
@jgarzik jgarzik self-assigned this Dec 12, 2025
@jgarzik jgarzik added the enhancement New feature or request label Dec 12, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR merges #403, which adds xgettext functionality to extract translatable strings from source code and generates .pot (Portable Object Template) files for internationalization. The PR also includes locale file generation for multiple languages and updates build tooling.

Key changes:

  • Implements a new xgettext utility in Rust that extracts gettext calls from Rust source files
  • Generates .po template files for 6 languages (ru, pt, ja, hi, es, bn) with 1246 message entries each
  • Updates build system with a Makefile for locale file generation and management

Reviewed changes

Copilot reviewed 24 out of 26 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
i18n/xgettext.rs New xgettext implementation for extracting translatable strings from Rust code
i18n/tests/xgettext/* Comprehensive test suite for xgettext functionality
locale/*/LC_MESSAGES/posixutils-rs.po Generated locale template files for 6 languages
process/timeout.rs Changed em dash (—) to regular hyphen (-) in help text
i18n/iconv.rs Changed em dash (—) to regular hyphen (-) in help text
i18n/Cargo.toml Added dependencies for xgettext (proc-macro2, quote, syn)
Makefile New build system for locale file generation
.gitignore Added locale build artifacts to gitignore

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jgarzik jgarzik merged commit a4dcbed into main Dec 12, 2025
10 checks passed
@jgarzik jgarzik deleted the xgettext-merge branch December 12, 2025 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants