mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
Merge pull request #8172 from sylvestre/l10n-logname
l10n: port logname for translation + add french
This commit is contained in:
commit
8d6fb5fcb0
3 changed files with 4 additions and 1 deletions
|
@ -1 +1,2 @@
|
|||
logname-about = Print user's login name
|
||||
logname-error-no-login-name = no login name
|
||||
|
|
2
src/uu/logname/locales/fr-FR.ftl
Normal file
2
src/uu/logname/locales/fr-FR.ftl
Normal file
|
@ -0,0 +1,2 @@
|
|||
logname-about = Afficher le nom de connexion de l'utilisateur
|
||||
logname-error-no-login-name = aucun nom de connexion
|
|
@ -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(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue