Conversation
There was a problem hiding this comment.
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
gettextimports to all utility source files that didn't have them - Wraps
aboutattribute values in#[command()]macros withgettext()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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.