Skip to content

Comments

Use gettext for all --help util summaries#453

Merged
jgarzik merged 1 commit intomainfrom
updates
Dec 13, 2025
Merged

Use gettext for all --help util summaries#453
jgarzik merged 1 commit intomainfrom
updates

Conversation

@jgarzik
Copy link
Contributor

@jgarzik jgarzik commented Dec 13, 2025

No description provided.

@jgarzik jgarzik requested a review from Copilot December 13, 2025 07:20
@jgarzik jgarzik self-assigned this Dec 13, 2025
@jgarzik jgarzik added enhancement New feature or request cleanup labels Dec 13, 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 pull request implements internationalization (i18n) support for all utility help text summaries by wrapping them with the gettext() function. The PR ensures that all --help output summaries can be translated into multiple languages.

Key Changes:

  • Adds gettext imports to all utility source files that didn't have them
  • Wraps about attribute values in #[command()] macros with gettext() calls
  • Updates documentation comments to standardize formatting (removes trailing periods, fixes capitalization, corrects punctuation)
  • Updates locale translation files (.po files) with all new translatable strings

Reviewed changes

Copilot reviewed 67 out of 67 changed files in this pull request and generated no comments.

Show a summary per file
File Description
xform/*.rs Added gettext imports and wrapped utility descriptions for uuencode, uudecode, uncompress, compress, and cksum
uucp/*.rs Added gettext support for uux, uustat, and uucp utilities; corrected "enquiry" to "inquiry"
users/*.rs Added gettext support for write, pwd, mesg, and id utilities
tree/*.rs Added gettext support for all file system utilities (unlink, touch, rmdir, rm, readlink, mv, mkfifo, mkdir, ls, ln, link, du, cp, chown, chmod, chgrp)
text/*.rs Added gettext support for all text processing utilities; standardized descriptions for uniq, cut, sort, and others
sys/*.rs Added gettext support for who, uname, and ps utilities
sccs/*.rs Added gettext support for sact and rmdel utilities
process/fuser.rs Added gettext support for fuser utility
pax/main.rs Added gettext support for pax utility
pathnames/realpath.rs Fixed double-hyphen formatting in description
make/src/main.rs Added documentation comment and gettext support
locale/**/posixutils-rs.po Updated all locale files (ru, pt, ja, hi, es, bn) with new translatable strings
dev/*.rs Added gettext support for strings, nm, ar utilities
calc/bc.rs Added gettext support for bc utility

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

@jgarzik jgarzik merged commit 108fe6a into main Dec 13, 2025
10 checks passed
@jgarzik jgarzik deleted the updates branch December 13, 2025 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant