i18n: follow-up for gettext domain feedback on phosh integration#173
Open
i18n: follow-up for gettext domain feedback on phosh integration#173
Conversation
|
On it |
Summary
Testing
|
samcday
commented
Feb 16, 2026
samcday
commented
Feb 16, 2026
|
On it |
|
Summary
Testing
|
Owner
Author
|
@codex so this is embarrassing but nothing is really building yet since the crate name appears to be made up. It's actually gettext-rs, I think? And so anyway I enabled your internet access so I promise you can try harder to produce a valid build. maybe don't end your turn until |
|
Summary
Testing
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Owner
Author
|
@codex flatten this back down to some sensible commits:
|
This comment has been minimized.
This comment has been minimized.
|
Codex couldn't complete this request. Try again later. |
Signed-off-by: Sam Day <me@samcday.com> Assisted-by: opencode:gpt-5.3-codex
Signed-off-by: Sam Day <me@samcday.com> Assisted-by: opencode:gpt-5.3-codex
Signed-off-by: Sam Day <me@samcday.com> Assisted-by: opencode:gpt-5.3-codex
aa57360 to
3cf90f8
Compare
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.







Motivation
phoshtranslations remain the default while adding a separate gettext domain for phrog-specific strings.phrogdomain per reviewer guidance to avoid mixing domains.Description
gettextrs = "0.7"toCargo.tomlto support gettext operations from Rust.GETTEXT_PACKAGE("phrog") andLOCALEDIR("/usr/share/locale") constants insrc/lib.rsfor shared i18n configuration.src/main.rsinitialize locale viagettextrs::setlocale, bind bothphoshandphrogdomains withgettextrs::bindtextdomain, and keepphoshas the activetextdomain, logging warnings on failure rather than failing startup.gettextrs::dgettext("phrog", "Password:")insrc/lockscreen.rs.Testing
cargo fmtsuccessfully to format the changes.cargo checkbut it failed in this environment due to a network/crates.io index error (CONNECT tunnel failed, response 403).Codex Task