mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
l10n: port logname for translation + add french
This commit is contained in:
parent
c9f76d41a7
commit
d2c0746c39
3 changed files with 4 additions and 1 deletions
|
@ -1 +1,2 @@
|
||||||
logname-about = Print user's login name
|
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() {
|
match get_userlogin() {
|
||||||
Some(userlogin) => println!("{userlogin}"),
|
Some(userlogin) => println!("{userlogin}"),
|
||||||
None => show_error!("no login name"),
|
None => show_error!("{}", get_message("logname-error-no-login-name")),
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue