1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00

Merge pull request #8172 from sylvestre/l10n-logname

l10n: port logname for translation + add french
This commit is contained in:
Daniel Hofstetter 2025-06-14 10:29:33 +02:00 committed by GitHub
commit 8d6fb5fcb0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 1 deletions

View file

@ -1 +1,2 @@
logname-about = Print user's login name
logname-error-no-login-name = no login name

View file

@ -0,0 +1,2 @@
logname-about = Afficher le nom de connexion de l'utilisateur
logname-error-no-login-name = aucun nom de connexion

View file

@ -32,7 +32,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
match get_userlogin() {
Some(userlogin) => println!("{userlogin}"),
None => show_error!("no login name"),
None => show_error!("{}", get_message("logname-error-no-login-name")),
}
Ok(())